View Javadoc

1   /*
2    * Copyright 2011 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.osedu.org/licenses/ECL-2.0
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.student.kim.identity.mock;
17  
18  import org.kuali.student.r2.common.util.constants.KimIdentityServiceConstants;
19  
20  /**
21   * @author nwright
22   */
23  public enum EmployeeStatusEnum {
24  
25      ACTIVE(KimIdentityServiceConstants.ACTIVE_EMPLOYEE_STATUS_TYPE_KEY, "Active", true, "1"),
26      DECEASED(KimIdentityServiceConstants.DECEASED_EMPLOYEE_STATUS_TYPE_KEY, "Deceased", true, "99"),
27      LEAVE(KimIdentityServiceConstants.ON_NON_PAY_LEAVE_EMPLOYEE_STATUS_TYPE_KEY, "On Non-Pay Leave", true, "4"),
28      NOT_PROCESSED (KimIdentityServiceConstants.STATUS_NOT_YET_PROCESSED_EMPLOYEE_STATUS_TYPE_KEY, "Status Not Yet Processed", true, "3"),
29      PROCESSING(KimIdentityServiceConstants.PROCESSING_EMPLOYEE_STATUS_TYPE_KEY, "Processing", true, "2"),
30      RETIRED(KimIdentityServiceConstants.RETIRED_EMPLOYEE_STATUS_TYPE_KEY, "Retired", true, "10"),
31      TERMINATED(KimIdentityServiceConstants.TERMINATED_EMPLOYEE_STATUS_TYPE_KEY, "Terminated", true, "97");
32      private String code;
33      private String name;
34      private boolean active;
35      private String sort;
36  
37      private EmployeeStatusEnum(String code, String name, boolean active, String sort) {
38          this.code = code;
39          this.name = name;
40          this.active = active;
41          this.sort = sort;
42      }
43  
44      public boolean isActive() {
45          return active;
46      }
47  
48      public void setActive(boolean active) {
49          this.active = active;
50      }
51  
52      public String getCode() {
53          return code;
54      }
55  
56      public void setCode(String code) {
57          this.code = code;
58      }
59  
60      public String getName() {
61          return name;
62      }
63  
64      public void setName(String name) {
65          this.name = name;
66      }
67  
68      public String getSort() {
69          return sort;
70      }
71  
72      public void setSort(String sort) {
73          this.sort = sort;
74      }
75  }
76