View Javadoc
1   /**
2    * Copyright 2005-2015 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.rice.kim.impl;
17  
18  import org.kuali.rice.krad.util.KRADPropertyConstants;
19  
20  public final class KIMPropertyConstants {
21  
22  	public static final class Entity {
23  		public static final String ID = "id";
24          public static final String ENTITY_ID = "entityId";
25          public static final String ACTIVE = KRADPropertyConstants.ACTIVE;
26          public static final String ENTITY_TYPE_CODE = "entityTypeCode";
27  		
28  		private Entity() {
29  			throw new UnsupportedOperationException("do not call");
30  		}
31  	}
32  
33      public static final class Type {
34  		public static final String CODE = "code";
35  
36  		private Type() {
37  			throw new UnsupportedOperationException("do not call");
38  		}
39  	}
40  	
41  	public static final class Principal {
42  		public static final String PRINCIPAL_ID = "principalId";
43  		public static final String PRINCIPAL_NAME = "principalName";
44  		public static final String PASSWORD = "password";
45  		public static final String ACTIVE = KRADPropertyConstants.ACTIVE;
46  		
47  		private Principal() {
48  			throw new UnsupportedOperationException("do not call");
49  		}
50  	}
51  
52  	public static final class Person {
53  		public static final String ENTITY_ID = "entityId";
54  		public static final String PRINCIPAL_ID = Principal.PRINCIPAL_ID;
55  		public static final String PRINCIPAL_NAME = Principal.PRINCIPAL_NAME;
56  		public static final String FIRST_NAME = "firstName";
57  		public static final String MIDDLE_NAME = "middleName";
58  		public static final String LAST_NAME = "lastName";
59  		public static final String NAME = "name";
60  		public static final String EMAIL_ADDRESS = KRADPropertyConstants.EMAIL_ADDRESS;
61  		public static final String PHONE_NUMBER = "phoneNumber";
62  		public static final String ACTIVE = KRADPropertyConstants.ACTIVE;
63  		public static final String EMPLOYEE_ID = "employeeId";
64  		public static final String EMPLOYEE_STATUS_CODE = "employeeStatusCode";
65  		public static final String EMPLOYEE_TYPE_CODE = "employeeTypeCode";
66  		public static final String EXTERNAL_ID = "externalId";
67  		public static final String EXTERNAL_IDENTIFIER_TYPE_CODE = "externalIdentifierTypeCode";
68  		public static final String ADDRESS_LINE_1 = "line1";
69  		public static final String ADDRESS_LINE_2 = "line2";
70  		public static final String ADDRESS_LINE_3 = "line3";
71          public static final String CITY = "city";
72          public static final String STATE_CODE = KRADPropertyConstants.STATE_CODE;
73  		public static final String POSTAL_CODE = KRADPropertyConstants.POSTAL_CODE;
74  		public static final String COUNTRY_CODE = KRADPropertyConstants.COUNTY_CODE;
75  		public static final String CAMPUS_CODE = KRADPropertyConstants.CAMPUS_CODE;
76  		public static final String AFFILIATION_TYPE_CODE = "affiliationTypeCode";
77  		public static final String PRIMARY_DEPARTMENT_CODE = "primaryDepartmentCode";
78  		public static final String BASE_SALARY_AMOUNT = "baseSalaryAmount";
79  		
80  		private Person() {
81  			throw new UnsupportedOperationException("do not call");
82  		}
83  	}
84  	
85  	public static final class Group {
86  	    public static final String GROUP_ID = "id";
87          public static final String GROUP_NAME = "name";
88          
89  		private Group() {
90  			throw new UnsupportedOperationException("do not call");
91  		}
92  	}
93  	
94  	public static final class KimType {
95  	    public static final String KIM_TYPE_ID = "kimTypeId";
96  	    
97  		private KimType() {
98  			throw new UnsupportedOperationException("do not call");
99  		}
100 	}
101 	
102 	public static final class Role {
103 		public static final String ROLE_ID = "id";
104 		public static final String ROLE_NAME = "name";
105 	    public static final String KIM_TYPE_ID = KimType.KIM_TYPE_ID;
106 		public static final String ACTIVE = KRADPropertyConstants.ACTIVE;
107 		
108 		private Role() {
109 			throw new UnsupportedOperationException("do not call");
110 		}
111 	}
112 
113 	public static final class KimMember {
114 		public static final String MEMBER_ID = "id";
115 		public static final String MEMBER_TYPE_CODE = "typeCode";
116 		public static final String ACTIVE_FROM_DATE = "activeFromDate";
117 		public static final String ACTIVE_TO_DATE = "activeToDate";
118         public static final String ACTIVE_FROM_DATE_VALUE = "activeFromDateValue";
119         public static final String ACTIVE_TO_DATE_VALUE = "activeToDateValue";
120 		
121 		private KimMember() {
122 			throw new UnsupportedOperationException("do not call");
123 		}
124 	}
125 	
126 	public static final class RoleMember {
127 		public static final String ROLE_MEMBER_ID = "roleMemberId";
128 		public static final String ROLE_ID = "roleId";
129 		public static final String MEMBER_ID = "memberId";
130 		public static final String MEMBER_TYPE_CODE = "typeCode";
131 		public static final String ACTIVE_FROM_DATE = "activeFromDateValue";
132 		public static final String ACTIVE_TO_DATE = "activeToDateValue";
133 		
134 		private RoleMember() {
135 			throw new UnsupportedOperationException("do not call");
136 		}
137 	}
138 
139 	public static final class GroupMember {
140 		public static final String GROUP_MEMBER_ID = "id";
141 		public static final String GROUP_ID = "groupId";
142 		public static final String MEMBER_ID = "memberId";
143 		public static final String MEMBER_TYPE_CODE = KimMember.MEMBER_TYPE_CODE;
144 		public static final String ACTIVE_FROM_DATE = KimMember.ACTIVE_FROM_DATE;
145 		public static final String ACTIVE_TO_DATE = KimMember.ACTIVE_TO_DATE;
146 		
147 		private GroupMember() {
148 			throw new UnsupportedOperationException("do not call");
149 		}
150 	}
151 	
152 	public static final class DelegationMember {
153 		public static final String DELEGATION_MEMBER_ID = "delegationMemberId";
154 		public static final String DELEGATION_ID = Delegation.DELEGATION_ID;
155 		public static final String MEMBER_ID = "memberId";
156 		public static final String MEMBER_TYPE_CODE = "typeCode";
157 		public static final String ACTIVE_FROM_DATE = KimMember.ACTIVE_FROM_DATE;
158 		public static final String ACTIVE_TO_DATE = KimMember.ACTIVE_TO_DATE;
159 		
160 		private DelegationMember() {
161 			throw new UnsupportedOperationException("do not call");
162 		}
163 	}
164 	
165 	public static final class Delegation {
166 		public static final String ROLE_ID = "roleId";
167 		public static final String DELEGATION_ID = "delegationId";
168 		public static final String ACTIVE = KRADPropertyConstants.ACTIVE;
169 		
170 		private Delegation() {
171 			throw new UnsupportedOperationException("do not call");
172 		}
173 	}
174 	
175 	private KIMPropertyConstants() {
176 		throw new UnsupportedOperationException("do not call");
177 	}
178 }