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    
017    package org.kuali.kfs.module.ld.businessobject;
018    
019    import java.util.LinkedHashMap;
020    
021    import org.kuali.kfs.integration.ld.LaborLedgerPositionObjectGroup;
022    import org.kuali.rice.kns.bo.Inactivateable;
023    import org.kuali.rice.kns.bo.PersistableBusinessObjectBase;
024    
025    /**
026     * Labor business object for PositionObjectGroup
027     */
028    public class PositionObjectGroup extends PersistableBusinessObjectBase implements LaborLedgerPositionObjectGroup, Inactivateable {
029        private String positionObjectGroupCode;
030        private String positionObjectGroupName;
031        private boolean active;
032    
033        /**
034         * Default constructor.
035         */
036        public PositionObjectGroup() {
037    
038        }
039    
040        /**
041         * Gets the positionObjectGroupCode
042         * 
043         * @return Returns the positionObjectGroupCode
044         */
045        public String getPositionObjectGroupCode() {
046            return positionObjectGroupCode;
047        }
048    
049        /**
050         * Sets the positionObjectGroupCode
051         * 
052         * @param positionObjectGroupCode The positionObjectGroupCode to set.
053         */
054        public void setPositionObjectGroupCode(String positionObjectGroupCode) {
055            this.positionObjectGroupCode = positionObjectGroupCode;
056        }
057    
058        /**
059         * Gets the positionObjectGroupName
060         * 
061         * @return Returns the positionObjectGroupName
062         */
063        public String getPositionObjectGroupName() {
064            return positionObjectGroupName;
065        }
066    
067        /**
068         * Sets the positionObjectGroupName
069         * 
070         * @param positionObjectGroupName The positionObjectGroupName to set.
071         */
072        public void setPositionObjectGroupName(String positionObjectGroupName) {
073            this.positionObjectGroupName = positionObjectGroupName;
074        }
075    
076        /**
077         * Gets the active attribute.
078         * 
079         * @return Returns the active.
080         */
081        public boolean isActive() {
082            return active;
083        }
084    
085        /**
086         * Sets the active attribute value.
087         * 
088         * @param active The active to set.
089         */
090        public void setActive(boolean active) {
091            this.active = active;
092        }
093        
094        /**
095         * @see org.kuali.kfs.integration.ld.LaborLedgerPositionObjectGroup#getActive()
096         */
097        public boolean getActive() {
098            return active;
099        }
100    
101        /**
102         * construct the key list of the business object.
103         * 
104         * @see org.kuali.rice.kns.bo.BusinessObjectBase#toStringMapper()
105         */
106        protected LinkedHashMap toStringMapper() {
107            LinkedHashMap m = new LinkedHashMap();
108            m.put("positionObjectGroupCode", this.positionObjectGroupCode);
109            return m;
110        }
111    }