001    /**
002     * Copyright 2004-2012 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.hr.location;
017    
018    import java.sql.Date;
019    import java.sql.Timestamp;
020    
021    import org.kuali.hr.core.KPMEConstants;
022    import org.kuali.hr.time.HrBusinessObject;
023    /**
024     * Represents a Location object
025     * 
026     *
027     */
028    public class Location extends HrBusinessObject {
029        public static final String CACHE_NAME = KPMEConstants.APPLICATION_NAMESPACE_CODE + "/" + "Location";
030            /**
031             * 
032             */
033            private static final long serialVersionUID = 1L;
034            private String hrLocationId;
035            private String location;
036            private String timezone;
037            private String description;
038            private String userPrincipalId;
039            private String history;
040    
041            public String getHrLocationId() {
042                    return hrLocationId;
043            }
044    
045            public void setHrLocationId(String hrLocationId) {
046                    this.hrLocationId = hrLocationId;
047            }
048    
049            public String getLocation() {
050                    return location;
051            }
052    
053            public void setLocation(String location) {
054                    this.location = location;
055            }
056    
057            public String getTimezone() {
058                    return timezone;
059            }
060    
061            public void setTimezone(String timezone) {
062                    this.timezone = timezone;
063            }
064    
065            public String getDescription() {
066                    return description;
067            }
068    
069            public void setDescription(String description) {
070                    this.description = description;
071            }
072    
073            public Date getEffectiveDate() {
074                    return effectiveDate;
075            }
076    
077            public void setEffectiveDate(Date effectiveDate) {
078                    this.effectiveDate = effectiveDate;
079            }
080    
081            public Timestamp getTimestamp() {
082                    return timestamp;
083            }
084    
085            public void setTimestamp(Timestamp timestamp) {
086                    this.timestamp = timestamp;
087            }
088    
089            public Boolean getActive() {
090                    return active;
091            }
092    
093            public void setActive(Boolean active) {
094                    this.active = active;
095            }
096    
097            public String getUserPrincipalId() {
098                    return userPrincipalId;
099            }
100    
101            public void setUserPrincipalId(String userPrincipalId) {
102                    this.userPrincipalId = userPrincipalId;
103            }
104    
105            @Override
106            public String getUniqueKey() {
107                    return location;
108            }
109    
110            public String getHistory() {
111                    return history;
112            }
113    
114            public void setHistory(String history) {
115                    this.history = history;
116            }
117            
118            @Override
119            public String getId() {
120                    return getHrLocationId();
121            }
122    
123            @Override
124            public void setId(String id) {
125                    setHrLocationId(id);
126            }
127    
128    }