View Javadoc

1   /**
2    * Copyright 2004-2012 The Kuali Foundation
3    *
4    * Licensed under the Educational Community License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    * http://www.opensource.org/licenses/ecl2.php
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  package org.kuali.hr.location;
17  
18  import java.sql.Date;
19  import java.sql.Timestamp;
20  
21  import org.kuali.hr.core.KPMEConstants;
22  import org.kuali.hr.time.HrBusinessObject;
23  /**
24   * Represents a Location object
25   * 
26   *
27   */
28  public class Location extends HrBusinessObject {
29      public static final String CACHE_NAME = KPMEConstants.APPLICATION_NAMESPACE_CODE + "/" + "Location";
30  	/**
31  	 * 
32  	 */
33  	private static final long serialVersionUID = 1L;
34  	private String hrLocationId;
35  	private String location;
36  	private String timezone;
37  	private String description;
38  	private String userPrincipalId;
39  	private String history;
40  
41  	public String getHrLocationId() {
42  		return hrLocationId;
43  	}
44  
45  	public void setHrLocationId(String hrLocationId) {
46  		this.hrLocationId = hrLocationId;
47  	}
48  
49  	public String getLocation() {
50  		return location;
51  	}
52  
53  	public void setLocation(String location) {
54  		this.location = location;
55  	}
56  
57  	public String getTimezone() {
58  		return timezone;
59  	}
60  
61  	public void setTimezone(String timezone) {
62  		this.timezone = timezone;
63  	}
64  
65  	public String getDescription() {
66  		return description;
67  	}
68  
69  	public void setDescription(String description) {
70  		this.description = description;
71  	}
72  
73  	public Date getEffectiveDate() {
74  		return effectiveDate;
75  	}
76  
77  	public void setEffectiveDate(Date effectiveDate) {
78  		this.effectiveDate = effectiveDate;
79  	}
80  
81  	public Timestamp getTimestamp() {
82  		return timestamp;
83  	}
84  
85  	public void setTimestamp(Timestamp timestamp) {
86  		this.timestamp = timestamp;
87  	}
88  
89  	public Boolean getActive() {
90  		return active;
91  	}
92  
93  	public void setActive(Boolean active) {
94  		this.active = active;
95  	}
96  
97  	public String getUserPrincipalId() {
98  		return userPrincipalId;
99  	}
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 }