001 /** 002 * Copyright 2004-2013 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 org.kuali.hr.core.KPMEConstants; 019 import org.kuali.hr.time.HrBusinessObject; 020 021 public class Location extends HrBusinessObject { 022 023 private static final long serialVersionUID = 9015089510044249197L; 024 025 public static final String CACHE_NAME = KPMEConstants.APPLICATION_NAMESPACE_CODE + "/" + "Location"; 026 027 private String hrLocationId; 028 private String location; 029 private String timezone; 030 private String description; 031 private String userPrincipalId; 032 private String history; 033 034 public String getHrLocationId() { 035 return hrLocationId; 036 } 037 038 public void setHrLocationId(String hrLocationId) { 039 this.hrLocationId = hrLocationId; 040 } 041 042 public String getLocation() { 043 return location; 044 } 045 046 public void setLocation(String location) { 047 this.location = location; 048 } 049 050 public String getTimezone() { 051 return timezone; 052 } 053 054 public void setTimezone(String timezone) { 055 this.timezone = timezone; 056 } 057 058 public String getDescription() { 059 return description; 060 } 061 062 public void setDescription(String description) { 063 this.description = description; 064 } 065 066 public String getUserPrincipalId() { 067 return userPrincipalId; 068 } 069 070 public void setUserPrincipalId(String userPrincipalId) { 071 this.userPrincipalId = userPrincipalId; 072 } 073 074 @Override 075 public String getUniqueKey() { 076 return location; 077 } 078 079 public String getHistory() { 080 return history; 081 } 082 083 public void setHistory(String history) { 084 this.history = history; 085 } 086 087 @Override 088 public String getId() { 089 return getHrLocationId(); 090 } 091 092 @Override 093 public void setId(String id) { 094 setHrLocationId(id); 095 } 096 097 }