View Javadoc

1   /**
2    * Copyright 2005-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.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 		
119 		private KimMember() {
120 			throw new UnsupportedOperationException("do not call");
121 		}
122 	}
123 	
124 	public static final class RoleMember {
125 		public static final String ROLE_MEMBER_ID = "roleMemberId";
126 		public static final String ROLE_ID = "roleId";
127 		public static final String MEMBER_ID = "memberId";
128 		public static final String MEMBER_TYPE_CODE = "typeCode";
129 		public static final String ACTIVE_FROM_DATE = KimMember.ACTIVE_FROM_DATE;
130 		public static final String ACTIVE_TO_DATE = KimMember.ACTIVE_TO_DATE;
131 		
132 		private RoleMember() {
133 			throw new UnsupportedOperationException("do not call");
134 		}
135 	}
136 
137 	public static final class GroupMember {
138 		public static final String GROUP_MEMBER_ID = "id";
139 		public static final String GROUP_ID = "groupId";
140 		public static final String MEMBER_ID = "memberId";
141 		public static final String MEMBER_TYPE_CODE = KimMember.MEMBER_TYPE_CODE;
142 		public static final String ACTIVE_FROM_DATE = KimMember.ACTIVE_FROM_DATE;
143 		public static final String ACTIVE_TO_DATE = KimMember.ACTIVE_TO_DATE;
144 		
145 		private GroupMember() {
146 			throw new UnsupportedOperationException("do not call");
147 		}
148 	}
149 	
150 	public static final class DelegationMember {
151 		public static final String DELEGATION_MEMBER_ID = "delegationMemberId";
152 		public static final String DELEGATION_ID = Delegation.DELEGATION_ID;
153 		public static final String MEMBER_ID = "memberId";
154 		public static final String MEMBER_TYPE_CODE = "typeCode";
155 		public static final String ACTIVE_FROM_DATE = KimMember.ACTIVE_FROM_DATE;
156 		public static final String ACTIVE_TO_DATE = KimMember.ACTIVE_TO_DATE;
157 		
158 		private DelegationMember() {
159 			throw new UnsupportedOperationException("do not call");
160 		}
161 	}
162 	
163 	public static final class Delegation {
164 		public static final String ROLE_ID = "roleId";
165 		public static final String DELEGATION_ID = "delegationId";
166 		public static final String ACTIVE = KRADPropertyConstants.ACTIVE;
167 		
168 		private Delegation() {
169 			throw new UnsupportedOperationException("do not call");
170 		}
171 	}
172 	
173 	private KIMPropertyConstants() {
174 		throw new UnsupportedOperationException("do not call");
175 	}
176 }