001    /*
002     * Copyright 2011 The Kuali Foundation.
003     * 
004     * Licensed under the Educational Community License, Version 2.0 (the "License");
005     * you may not use this file except in compliance with the License.
006     * You may obtain a copy of the License at
007     * 
008     * http://www.opensource.org/licenses/ecl2.php
009     * 
010     * Unless required by applicable law or agreed to in writing, software
011     * distributed under the License is distributed on an "AS IS" BASIS,
012     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013     * See the License for the specific language governing permissions and
014     * limitations under the License.
015     */
016    package org.kuali.kfs.module.bc.businessobject;
017    
018    import java.util.LinkedHashMap;
019    
020    import org.kuali.kfs.sys.KFSConstants;
021    import org.kuali.rice.kns.bo.TransientBusinessObjectBase;
022    import org.kuali.rice.kns.util.KualiDecimal;
023    
024    /**
025     * Holds threshold settings for object code report selection screen.
026     */
027    public class BudgetConstructionReportThresholdSettings extends TransientBusinessObjectBase {
028        private boolean lockThreshold;
029        private boolean useThreshold;
030        private KualiDecimal thresholdPercent;
031        private boolean useGreaterThanOperator = true;
032    
033        /**
034         * Constructs a BudgetConstructionReportThresholdSettings.java.
035         */
036        public BudgetConstructionReportThresholdSettings() {
037            super();
038        }
039    
040        /**
041         * Gets the lockThreshold attribute.
042         * 
043         * @return Returns the lockThreshold.
044         */
045        public boolean isLockThreshold() {
046            return lockThreshold;
047        }
048    
049        /**
050         * Sets the lockThreshold attribute value.
051         * 
052         * @param lockThreshold The lockThreshold to set.
053         */
054        public void setLockThreshold(boolean lockThreshold) {
055            this.lockThreshold = lockThreshold;
056        }
057    
058        /**
059         * Gets the thresholdPercent attribute.
060         * 
061         * @return Returns the thresholdPercent.
062         */
063        public KualiDecimal getThresholdPercent() {
064            return thresholdPercent;
065        }
066    
067        /**
068         * Sets the thresholdPercent attribute value.
069         * 
070         * @param thresholdPercent The thresholdPercent to set.
071         */
072        public void setThresholdPercent(KualiDecimal thresholdPercent) {
073            this.thresholdPercent = thresholdPercent;
074        }
075    
076        /**
077         * Gets the useGreaterThanOperator attribute.
078         * 
079         * @return Returns the useGreaterThanOperator.
080         */
081        public boolean isUseGreaterThanOperator() {
082            return useGreaterThanOperator;
083        }
084    
085        /**
086         * Sets the useGreaterThanOperator attribute value.
087         * 
088         * @param useGreaterThanOperator The useGreaterThanOperator to set.
089         */
090        public void setUseGreaterThanOperator(boolean useGreaterThanOperator) {
091            this.useGreaterThanOperator = useGreaterThanOperator;
092        }
093    
094        /**
095         * Gets the useThreshold attribute.
096         * 
097         * @return Returns the useThreshold.
098         */
099        public boolean isUseThreshold() {
100            return useThreshold;
101        }
102    
103        /**
104         * Sets the useThreshold attribute value.
105         * 
106         * @param useThreshold The useThreshold to set.
107         */
108        public void setUseThreshold(boolean useThreshold) {
109            this.useThreshold = useThreshold;
110        }
111    
112        @Override
113        protected LinkedHashMap toStringMapper() {
114            LinkedHashMap m = new LinkedHashMap();
115            m.put("useThreshold", this.useThreshold);
116            m.put("thresholdPercent", this.thresholdPercent);
117            m.put("useGreaterThanOperator", this.useGreaterThanOperator);
118            return m;
119        }
120    
121    
122    }