View Javadoc

1   /**
2    * Copyright 2004-2013 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 org.kuali.hr.core.KPMEConstants;
19  import org.kuali.hr.time.HrBusinessObject;
20  
21  public class Location extends HrBusinessObject {
22  
23  	private static final long serialVersionUID = 9015089510044249197L;
24  
25  	public static final String CACHE_NAME = KPMEConstants.APPLICATION_NAMESPACE_CODE + "/" + "Location";
26  
27  	private String hrLocationId;
28  	private String location;
29  	private String timezone;
30  	private String description;
31  	private String userPrincipalId;
32  	private String history;
33  
34  	public String getHrLocationId() {
35  		return hrLocationId;
36  	}
37  
38  	public void setHrLocationId(String hrLocationId) {
39  		this.hrLocationId = hrLocationId;
40  	}
41  
42  	public String getLocation() {
43  		return location;
44  	}
45  
46  	public void setLocation(String location) {
47  		this.location = location;
48  	}
49  
50  	public String getTimezone() {
51  		return timezone;
52  	}
53  
54  	public void setTimezone(String timezone) {
55  		this.timezone = timezone;
56  	}
57  
58  	public String getDescription() {
59  		return description;
60  	}
61  
62  	public void setDescription(String description) {
63  		this.description = description;
64  	}
65  
66  	public String getUserPrincipalId() {
67  		return userPrincipalId;
68  	}
69  
70  	public void setUserPrincipalId(String userPrincipalId) {
71  		this.userPrincipalId = userPrincipalId;
72  	}
73  
74  	@Override
75  	public String getUniqueKey() {
76  		return location;
77  	}
78  
79  	public String getHistory() {
80  		return history;
81  	}
82  
83  	public void setHistory(String history) {
84  		this.history = history;
85  	}
86  	
87  	@Override
88  	public String getId() {
89  		return getHrLocationId();
90  	}
91  
92  	@Override
93  	public void setId(String id) {
94  		setHrLocationId(id);
95  	}
96  
97  }