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.time.clock.location;
17  
18  import org.kuali.hr.time.HrBusinessObject;
19  
20  public class ClockLocationRuleIpAddress extends HrBusinessObject {
21  
22  	private static final long serialVersionUID = 1L;
23  	private String tkClockLocationRuleIpId;
24  	private String tkClockLocationRuleId;
25  	private String ipAddress;
26  	
27  	@Override
28  	public String getId() {
29  		return this.getTkClockLocationRuleIpId();
30  	}
31  
32  	@Override
33  	public void setId(String id) {
34  		this.setTkClockLocationRuleIpId(id);
35  	}
36  	@Override
37  	public String getUniqueKey() {
38  		String ipAddressKey = getTkClockLocationRuleIpId().toString()
39  			+"_"+ getTkClockLocationRuleId().toString() + "_" + getIpAddress();
40  		return ipAddressKey;
41  	}
42  
43  	public String getIpAddress() {
44  		return ipAddress;
45  	}
46  
47  	public void setIpAddress(String ipAddress) {
48  		this.ipAddress = ipAddress;
49  	}
50  
51  	public String getTkClockLocationRuleIpId() {
52  		return tkClockLocationRuleIpId;
53  	}
54  
55  	public void setTkClockLocationRuleIpId(String tkClockLocationRuleIpId) {
56  		this.tkClockLocationRuleIpId = tkClockLocationRuleIpId;
57  	}
58  
59  	public String getTkClockLocationRuleId() {
60  		return tkClockLocationRuleId;
61  	}
62  
63  	public void setTkClockLocationRuleId(String tkClockLocationRuleId) {
64  		this.tkClockLocationRuleId = tkClockLocationRuleId;
65  	}
66  
67  }