View Javadoc
1   /**
2    * Copyright 2004-2014 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.kpme.pm.positionflag;
17  
18  import org.kuali.kpme.core.bo.HrBusinessObject;
19  import org.kuali.kpme.pm.api.positionflag.PositionFlagContract;
20  
21  import com.google.common.collect.ImmutableList;
22  public class PositionFlag extends HrBusinessObject implements PositionFlagContract {
23  	public static final ImmutableList<String> EQUAL_TO_FIELDS = new ImmutableList.Builder<String>()
24  												    .add("category")
25  												    .add("positionFlagName")
26  												    .build();
27  	
28  	private static final long serialVersionUID = 1L;
29  	
30  	private String pmPositionFlagId;
31  	private String category;
32  	private String positionFlagName;
33  	
34  	public String getPmPositionFlagId() {
35  		return pmPositionFlagId;
36  	}
37  	public void setPmPositionFlagId(String pmPositionFlagId) {
38  		this.pmPositionFlagId = pmPositionFlagId;
39  	}
40  	public String getCategory() {
41  		return category;
42  	}
43  	public void setCategory(String category) {
44  		this.category = category;
45  	}
46  	public String getPositionFlagName() {
47  		return positionFlagName;
48  	}
49  	public void setPositionFlagName(String positionFlagName) {
50  		this.positionFlagName = positionFlagName;
51  	}
52  	
53  	@Override
54  	public String getId() {
55  		return this.getPmPositionFlagId();
56  	}
57  	@Override
58  	public void setId(String id) {
59  		this.setPmPositionFlagId(id);
60  		
61  	}
62  	@Override
63  	protected String getUniqueKey() {
64  		return this.getCategory() + "_" + this.getPositionFlagName();
65  	}
66  	
67  }