1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
package org.kuali.rice.kim.api; |
17 | |
|
18 | |
import org.kuali.rice.core.api.CoreConstants; |
19 | |
import org.kuali.rice.core.api.membership.MemberType; |
20 | |
|
21 | |
import java.util.HashMap; |
22 | |
import java.util.Map; |
23 | |
|
24 | |
public final class KimConstants { |
25 | |
|
26 | |
public static final String KIM_MODULE_NAMESPACE = "KIM"; |
27 | |
|
28 | |
public static final String NAMESPACE_CODE = "KR-IDM"; |
29 | |
public static final String KIM_TYPE_DEFAULT_NAMESPACE = "KUALI"; |
30 | |
public static final String KIM_TYPE_DEFAULT_NAME = "Default"; |
31 | |
public static final String KIM_GROUP_DEFAULT_NAMESPACE_CODE = "KUALI"; |
32 | |
public static final String KIM_GROUP_WORKFLOW_NAMESPACE_CODE = "KR-WKFLW"; |
33 | |
public static final String RESTRICTED_DATA_MASK = "Xxxxxx"; |
34 | |
|
35 | |
public static final String KIM_PERSON_SERVICE = "personService"; |
36 | |
public static final String DEFAULT_KIM_TYPE_SERVICE = "kimTypeService"; |
37 | |
|
38 | |
|
39 | |
public static final String KIM_ATTRIBUTE_BOOLEAN_TRUE_STR_VALUE_DISPLAY = "Yes"; |
40 | |
public static final String KIM_ATTRIBUTE_BOOLEAN_FALSE_STR_VALUE_DISPLAY = "No"; |
41 | |
public static final String KIM_ATTRIBUTE_BOOLEAN_TRUE_STR_VALUE = "Y"; |
42 | |
public static final String KIM_ATTRIBUTE_BOOLEAN_FALSE_STR_VALUE = "N"; |
43 | |
|
44 | |
public static final class EntityTypes { |
45 | |
public static final String PERSON = "PERSON"; |
46 | |
public static final String SYSTEM = "SYSTEM"; |
47 | |
|
48 | 0 | private EntityTypes() { |
49 | 0 | throw new UnsupportedOperationException("do not call"); |
50 | |
} |
51 | |
} |
52 | |
|
53 | |
public static final class AddressTypes { |
54 | |
public static final String HOME = "HM"; |
55 | |
public static final String WORK = "WRK"; |
56 | |
public static final String OTHER= "OTH"; |
57 | |
|
58 | 0 | private AddressTypes() { |
59 | 0 | throw new UnsupportedOperationException("do not call"); |
60 | |
} |
61 | |
} |
62 | |
|
63 | |
public static final class NameTypes { |
64 | |
public static final String PREFERRED = "PRFR"; |
65 | |
public static final String PRIMARY = "PRM"; |
66 | |
public static final String OTHER= "OTH"; |
67 | |
|
68 | 0 | private NameTypes() { |
69 | 0 | throw new UnsupportedOperationException("do not call"); |
70 | |
} |
71 | |
} |
72 | |
|
73 | |
public static final class GenderChangeCodes { |
74 | |
public static final String MALE_TO_FEMALE = "ChangeFemale"; |
75 | |
public static final String FEMALE_TO_MALE = "ChangeMale"; |
76 | |
|
77 | 0 | private GenderChangeCodes() { |
78 | 0 | throw new UnsupportedOperationException("do not call"); |
79 | |
} |
80 | |
} |
81 | |
|
82 | |
public static final class PersonExternalIdentifierTypes { |
83 | |
public static final String TAX = "TAX"; |
84 | |
|
85 | 0 | private PersonExternalIdentifierTypes() { |
86 | 0 | throw new UnsupportedOperationException("do not call"); |
87 | |
} |
88 | |
} |
89 | |
public static final class PersonAffiliationTypes { |
90 | |
public static final String STAFF_AFFILIATION_TYPE = "STAFF"; |
91 | |
public static final String STUDENT_AFFILIATION_TYPE = "STUDENT"; |
92 | |
public static final String AFFILIATE_AFFILIATION_TYPE = "AFFILIATE"; |
93 | |
public static final String FACULTY_AFFILIATION_TYPE = "FACULTY"; |
94 | |
|
95 | 0 | private PersonAffiliationTypes() { |
96 | 0 | throw new UnsupportedOperationException("do not call"); |
97 | |
} |
98 | |
} |
99 | |
|
100 | |
public static final class PermissionTemplateNames { |
101 | |
public static final String FULL_UNMASK_FIELD = "Full Unmask Field"; |
102 | |
public static final String PARTIAL_UNMASK_FIELD = "Partial Unmask Field"; |
103 | |
public static final String VIEW_FIELD = "View Inquiry or Maintenance Document Field"; |
104 | |
public static final String MODIFY_FIELD = "Modify Maintenance Document Field"; |
105 | |
public static final String VIEW_SECTION = "View Inquiry or Maintenance Document Section"; |
106 | |
public static final String MODIFY_SECTION = "Modify Maintenance Document Section"; |
107 | |
public static final String CREATE_MAINTAIN_RECORDS = "Create / Maintain Record(s)"; |
108 | |
|
109 | |
public static final String EDIT_DOCUMENT = "Edit Document"; |
110 | |
public static final String COPY_DOCUMENT = "Copy Document"; |
111 | |
public static final String OPEN_DOCUMENT = "Open Document"; |
112 | |
public static final String TAKE_REQUESTED_ACTION = "Take Requested Action"; |
113 | |
public static final String INITIATE_DOCUMENT = "Initiate Document"; |
114 | |
public static final String BLANKET_APPROVE_DOCUMENT ="Blanket Approve Document"; |
115 | |
public static final String CANCEL_DOCUMENT ="Cancel Document"; |
116 | |
public static final String SAVE_DOCUMENT ="Save Document"; |
117 | |
public static final String ROUTE_DOCUMENT ="Route Document"; |
118 | |
public static final String APPROVE_DOCUMENT = "Approve Document"; |
119 | |
public static final String AD_HOC_REVIEW_DOCUMENT = "Ad Hoc Review Document"; |
120 | |
public static final String ADD_MESSAGE_TO_ROUTE_LOG = "Add Message to Route Log"; |
121 | |
|
122 | |
public static final String ADD_NOTE_ATTACHMENT = "Add Note / Attachment"; |
123 | |
public static final String VIEW_NOTE_ATTACHMENT = "View Note / Attachment"; |
124 | |
public static final String DELETE_NOTE_ATTACHMENT = "Delete Note / Attachment"; |
125 | |
|
126 | |
public static final String USE_TRANSACTIONAL_DOCUMENT = "Use Transactional Document"; |
127 | |
|
128 | |
public static final String POPULATE_GROUP = "Populate Group"; |
129 | |
public static final String ASSIGN_ROLE = "Assign Role"; |
130 | |
public static final String GRANT_PERMISSION = "Grant Permission"; |
131 | |
public static final String GRANT_RESPONSIBILITY = "Grant Responsibility"; |
132 | |
|
133 | |
public static final String LOOK_UP_RECORDS = "Look Up Records"; |
134 | |
public static final String INQUIRE_INTO_RECORDS = "Inquire Into Records"; |
135 | |
public static final String USE_SCREEN = "Use Screen"; |
136 | |
|
137 | |
public static final String PERFORM_CUSTOM_MAINTENANCE_DOCUMENT_FUNCTION ="Perform Custom Maintenance Document Function"; |
138 | |
public static final String MAINTAIN_SYSTEM_PARAMETER = "Maintain System Parameter"; |
139 | |
public static final String SEND_AD_HOC_REQUEST ="Send Ad Hoc Request"; |
140 | |
|
141 | 0 | private PermissionTemplateNames() { |
142 | 0 | throw new UnsupportedOperationException("do not call"); |
143 | |
} |
144 | |
} |
145 | |
|
146 | |
public final static class PermissionNames { |
147 | |
public static final String LOG_IN = "Log In Kuali Portal"; |
148 | |
public static final String ADMIN_PESSIMISTIC_LOCKING = "Administer Pessimistic Locking"; |
149 | |
public static final String OVERRIDE_ENTITY_PRIVACY_PREFERENCES = "Override Entity Privacy Preferences"; |
150 | |
public static final String MODIFY_ENTITY = "Modify Entity"; |
151 | |
public static final String ACCESS_LOCKED_MODULE = "Access Locked Module"; |
152 | |
|
153 | 0 | private PermissionNames() { |
154 | 0 | throw new UnsupportedOperationException("do not call"); |
155 | |
} |
156 | |
} |
157 | |
|
158 | |
public final static class KimUIConstants { |
159 | |
public static final String NAME_VALUE_SEPARATOR = " : "; |
160 | |
public static final String COMMA_SEPARATOR = ", "; |
161 | |
public static final String OR_OPERATOR = "|"; |
162 | |
public static final String URL_SEPARATOR = "/"; |
163 | |
public static final String PARAMETERIZED_URL_SEPARATOR = "%2F"; |
164 | |
public static final String KIM_URL_KEY = "kim.url"; |
165 | |
public static final String KIM_APPLICATION = "kim"; |
166 | |
public static final String MEMBER_ID_PREFIX = PrimaryKeyConstants.MEMBER_ID+"."; |
167 | |
public static final String MEMBER_NAME = "memberName"; |
168 | |
public static final String MEMBER_NAMESPACE_CODE = "memberNamespaceCode"; |
169 | |
public static final String MEMBER_TYPE_PRINCIPAL = "Principal"; |
170 | |
public static final String MEMBER_TYPE_GROUP = "Group"; |
171 | |
public static final String MEMBER_TYPE_ROLE = "Role"; |
172 | 0 | public static final Map<String, String> KIM_MEMBER_TYPES_MAP = getKimMemberTypesMap(); |
173 | |
private static Map<String, String> getKimMemberTypesMap() { |
174 | 0 | Map<String, String> kimDocumentActionsMap = new HashMap<String, String>(); |
175 | 0 | kimDocumentActionsMap.put(MemberType.PRINCIPAL.getCode(), MEMBER_TYPE_PRINCIPAL); |
176 | 0 | kimDocumentActionsMap.put(MemberType.GROUP.getCode(), MEMBER_TYPE_GROUP); |
177 | 0 | kimDocumentActionsMap.put(MemberType.ROLE.getCode(), MEMBER_TYPE_ROLE); |
178 | 0 | return kimDocumentActionsMap; |
179 | |
} |
180 | |
|
181 | |
public static final String KIM_ROLE_DOCUMENT_TYPE_NAME = "IdentityManagementRoleDocument"; |
182 | |
public static final String KIM_GROUP_DOCUMENT_TYPE_NAME = "IdentityManagementGroupDocument"; |
183 | |
public static final String KIM_PERSON_DOCUMENT_TYPE_NAME = "IdentityManagementPersonDocument"; |
184 | |
public static final String KIM_PERMISSION_DOCUMENT_TYPE_NAME = "IdentityManagementGenericPermissionMaintenanceDocument"; |
185 | |
public static final String KIM_REVIEW_RESPONSIBILITY_DOCUMENT_TYPE_NAME = "IdentityManagementReviewResponsibilityMaintenanceDocument"; |
186 | |
public static final String KIM_ROLE_DOCUMENT_SHORT_KEY = "IMRD"; |
187 | |
public static final String KIM_GROUP_DOCUMENT_SHORT_KEY = "IMGD"; |
188 | |
public static final String KIM_PERSON_DOCUMENT_SHORT_KEY = "IMPD"; |
189 | |
public static final String KIM_ROLE_DOCUMENT_ACTION = "identityManagementRoleDocument.do"; |
190 | |
public static final String KIM_ROLE_INQUIRY_ACTION = "identityManagementRoleInquiry.do"; |
191 | |
public static final String KIM_PERSON_DOCUMENT_ACTION = "identityManagementPersonDocument.do"; |
192 | |
public static final String KIM_PERSON_INQUIRY_ACTION = "identityManagementPersonInquiry.do"; |
193 | |
public static final String KIM_GROUP_DOCUMENT_ACTION = "identityManagementGroupDocument.do"; |
194 | |
public static final String KIM_GROUP_INQUIRY_ACTION = "identityManagementGroupInquiry.do"; |
195 | 0 | public static final Map<String, String> KIM_DOCUMENTS_ACTIONS_MAP = getDocumentActionsMap(); |
196 | |
private static Map<String, String> getDocumentActionsMap() { |
197 | 0 | Map<String, String> kimDocumentActionsMap = new HashMap<String, String>(); |
198 | 0 | kimDocumentActionsMap.put(KIM_ROLE_DOCUMENT_SHORT_KEY, KIM_ROLE_DOCUMENT_ACTION); |
199 | 0 | kimDocumentActionsMap.put(KIM_GROUP_DOCUMENT_SHORT_KEY, KIM_GROUP_DOCUMENT_ACTION); |
200 | 0 | kimDocumentActionsMap.put(KIM_PERSON_DOCUMENT_SHORT_KEY, KIM_PERSON_DOCUMENT_ACTION); |
201 | 0 | return kimDocumentActionsMap; |
202 | |
} |
203 | |
|
204 | 0 | public static final Map<String, String> KIM_DOCUMENT_TYPE_NAMES_MAP = getDocumentTypeNamesMap(); |
205 | |
private static Map<String, String> getDocumentTypeNamesMap() { |
206 | 0 | Map<String, String> kimDocumentTypeNamesMap = new HashMap<String, String>(); |
207 | 0 | kimDocumentTypeNamesMap.put(KIM_ROLE_DOCUMENT_SHORT_KEY, KIM_ROLE_DOCUMENT_TYPE_NAME); |
208 | 0 | kimDocumentTypeNamesMap.put(KIM_GROUP_DOCUMENT_SHORT_KEY, KIM_GROUP_DOCUMENT_TYPE_NAME); |
209 | 0 | kimDocumentTypeNamesMap.put(KIM_PERSON_DOCUMENT_SHORT_KEY, KIM_PERSON_DOCUMENT_TYPE_NAME); |
210 | 0 | return kimDocumentTypeNamesMap; |
211 | |
} |
212 | |
|
213 | |
public static final String DELEGATION_PRIMARY = "P"; |
214 | |
public static final String DELEGATION_SECONDARY = "S"; |
215 | |
public static final String DELEGATION_PRIMARY_LABEL = "Primary"; |
216 | |
public static final String DELEGATION_SECONDARY_LABEL = "Secondary"; |
217 | |
|
218 | 0 | public static final Map<String, String> DELEGATION_TYPES = getDelegationTypesMap(); |
219 | |
private static Map<String, String> getDelegationTypesMap() { |
220 | 0 | Map<String, String> delegationTypesMap = new HashMap<String, String>(); |
221 | 0 | delegationTypesMap.put(DELEGATION_PRIMARY, DELEGATION_PRIMARY_LABEL); |
222 | 0 | delegationTypesMap.put(DELEGATION_SECONDARY, DELEGATION_SECONDARY_LABEL); |
223 | 0 | return delegationTypesMap; |
224 | |
} |
225 | |
|
226 | |
public static final String ROLE_LOOKUPABLE_IMPL = "roleLookupable"; |
227 | |
public static final String KIM_DOCUMENT_ROLE_MEMBER_LOOKUPABLE_IMPL = "kimDocumentRoleMemberLookupable"; |
228 | |
public static final String ROLE_MEMBER_LOOKUPABLE_IMPL = "roleMemberImplLookupable"; |
229 | |
public static final String ROLE_MEMBERS_COLLECTION_NAME = "roleMembers"; |
230 | |
|
231 | 0 | private KimUIConstants() { |
232 | 0 | throw new UnsupportedOperationException("do not call"); |
233 | |
} |
234 | |
} |
235 | |
|
236 | |
public final static class PrimaryKeyConstants { |
237 | |
public static final String ENTITY_ID = "id"; |
238 | |
public static final String SUB_ENTITY_ID = "entityId"; |
239 | |
public static final String PRINCIPAL_ID = "principalId"; |
240 | |
public static final String ROLE_ID = "id"; |
241 | |
public static final String SUB_ROLE_ID = "roleId"; |
242 | |
public static final String GROUP_ID = "id"; |
243 | |
public static final String KIM_TYPE_ID = "id"; |
244 | |
public static final String RESPONSIBILITY_ID = "id"; |
245 | |
public static final String PERMISSION_ID = "id"; |
246 | |
public static final String DELEGATION_ID = "delegationId"; |
247 | |
public static final String MEMBER_ID = "memberId"; |
248 | |
public static final String DELEGATION_MEMBER_ID = "delegationMemberId"; |
249 | |
public static final String ROLE_MEMBER_ID = "roleMemberId"; |
250 | |
public static final String ROLE_RESPONSIBILITY_ID = "roleResponsibilityId"; |
251 | |
public static final String ROLE_RESPONSIBILITY_ACTION_ID = "roleResponsibilityActionId"; |
252 | |
public static final String KIM_PERMISSION_REQUIRED_ATTR_ID = "kimPermissionRequiredAttributeId"; |
253 | |
public static final String KIM_ATTRIBUTE_ID = "id"; |
254 | |
public static final String KIM_TYPE_CODE ="id"; |
255 | |
public static final String ID = "id"; |
256 | |
public static final String CODE = "code"; |
257 | |
|
258 | 0 | private PrimaryKeyConstants() { |
259 | 0 | throw new UnsupportedOperationException("do not call"); |
260 | |
} |
261 | |
} |
262 | |
|
263 | |
public final static class UniqueKeyConstants { |
264 | |
public static final String NAMESPACE_CODE = "namespaceCode"; |
265 | |
public static final String PRINCIPAL_NAME = "principalName"; |
266 | |
public static final String GROUP_NAME = "name"; |
267 | |
public static final String ROLE_NAME = "roleName"; |
268 | |
public static final String PERMISSION_NAME = "name"; |
269 | |
public static final String RESPONSIBILITY_NAME = "name"; |
270 | |
public static final String PERMISSION_TEMPLATE_NAME = "name"; |
271 | |
public static final String RESPONSIBILITY_TEMPLATE_NAME = "name"; |
272 | |
public static final String NAME = "name"; |
273 | |
|
274 | 0 | private UniqueKeyConstants() { |
275 | 0 | throw new UnsupportedOperationException("do not call"); |
276 | |
} |
277 | |
} |
278 | |
|
279 | |
public final static class SequenceNames { |
280 | |
public static final String KRIM_PRNCPL_ID_S = "KRIM_PRNCPL_ID_S"; |
281 | |
public static final String KRIM_ENTITY_ID_S = "KRIM_ENTITY_ID_S"; |
282 | |
public static final String KRIM_ROLE_ID_S = "KRIM_ROLE_ID_S"; |
283 | |
public static final String KRIM_GROUP_ID_S = "KRIM_GRP_ID_S"; |
284 | |
public static final String KRIM_ROLE_PERM_ID_S = "KRIM_ROLE_PERM_ID_S"; |
285 | |
public static final String KRIM_ROLE_RSP_ID_S = "KRIM_ROLE_RSP_ID_S"; |
286 | |
public static final String KRIM_ROLE_MBR_ID_S = "KRIM_ROLE_MBR_ID_S"; |
287 | |
public static final String KRIM_DLGN_MBR_ID_S = "KRIM_DLGN_MBR_ID_S"; |
288 | |
public static final String KRIM_ROLE_RSP_ACTN_ID_S = "KRIM_ROLE_RSP_ACTN_ID_S"; |
289 | |
public static final String KRIM_DLGN_ID_S = "KRIM_DLGN_ID_S"; |
290 | |
public static final String KRIM_PERM_ID_S = "KRIM_PERM_ID_S"; |
291 | |
public static final String KRIM_RSP_ID_S = "KRIM_RSP_ID_S"; |
292 | |
public static final String KRIM_ATTR_DATA_ID_S = "KRIM_ATTR_DATA_ID_S"; |
293 | |
|
294 | 0 | private SequenceNames() { |
295 | 0 | throw new UnsupportedOperationException("do not call"); |
296 | |
} |
297 | |
} |
298 | |
|
299 | 0 | public final static class AttributeConstants { |
300 | |
|
301 | |
public static final String PRINCIPAL_ID = "principalId"; |
302 | |
public static final String BUTTON_NAME = "buttonName"; |
303 | |
public static final String BEAN_NAME = "beanName"; |
304 | |
public static final String ACTION_CLASS = "actionClass"; |
305 | |
public static final String NAMESPACE_CODE = "namespaceCode"; |
306 | |
public static final String COMPONENT_NAME = "componentName"; |
307 | |
public static final String PROPERTY_NAME = "propertyName"; |
308 | |
public static final String EXISTING_RECORDS_ONLY = "existingRecordsOnly"; |
309 | |
public static final String CREATED_BY_SELF = "createdBySelf"; |
310 | |
public static final String CREATED_BY_SELF_ONLY = "createdBySelfOnly"; |
311 | |
public static final String ATTACHMENT_TYPE_CODE = "attachmentTypeCode"; |
312 | |
public static final String EDIT_MODE = "editMode"; |
313 | |
public static final String PARAMETER_NAME = "parameterName"; |
314 | |
public static final String CAMPUS_CODE = "campusCode"; |
315 | |
public static final String ACTION_REQUEST_CD = "actionRequestCd"; |
316 | |
public static final String ROUTE_STATUS_CODE = "routeStatusCode"; |
317 | |
public static final String ROUTE_NODE_NAME = "routeNodeName"; |
318 | |
public static final String ROLE_NAME = "roleName"; |
319 | |
public static final String PERMISSION_NAME = "permissionName"; |
320 | |
public static final String RESPONSIBILITY_NAME = "responsibilityName"; |
321 | |
public static final String GROUP_NAME = "groupName"; |
322 | |
public static final String REQUIRED = "required"; |
323 | |
public static final String ACTION_DETAILS_AT_ROLE_MEMBER_LEVEL = "actionDetailsAtRoleMemberLevel"; |
324 | |
public static final String DOCUMENT_NUMBER = "documentNumber"; |
325 | |
public static final String DOCUMENT_TYPE_NAME = "documentTypeName"; |
326 | |
public static final String SECTION_ID = "sectionId"; |
327 | |
public static final String KIM_TYPE_ID = PrimaryKeyConstants.KIM_TYPE_ID; |
328 | |
public static final String QUALIFIER_RESOLVER_PROVIDED_IDENTIFIER = "qualifierResolverProvidedIdentifier"; |
329 | |
} |
330 | |
|
331 | |
|
332 | |
|
333 | |
|
334 | |
|
335 | |
|
336 | |
|
337 | |
|
338 | |
|
339 | |
public final static class KimGroupMemberTypes { |
340 | |
|
341 | |
|
342 | |
|
343 | |
|
344 | 0 | public static final MemberType GROUP_MEMBER_TYPE = MemberType.GROUP; |
345 | |
|
346 | |
|
347 | |
|
348 | |
|
349 | 0 | public static final MemberType PRINCIPAL_MEMBER_TYPE = MemberType.PRINCIPAL; |
350 | |
|
351 | 0 | private KimGroupMemberTypes() { |
352 | 0 | throw new UnsupportedOperationException("do not call"); |
353 | |
} |
354 | |
} |
355 | |
|
356 | 0 | private KimConstants() { |
357 | 0 | throw new UnsupportedOperationException("do not call"); |
358 | |
} |
359 | |
|
360 | |
public final static String SERVICE_PATH_SOAP = "soap/" + Namespaces.MODULE_NAME + "/" + CoreConstants.Versions.VERSION_2_0; |
361 | |
|
362 | 0 | public final static class Namespaces { |
363 | |
public static final String MODULE_NAME = "kim"; |
364 | |
public static final String KIM_NAMESPACE_PREFIX = CoreConstants.Namespaces.ROOT_NAMESPACE_PREFIX + "/" + MODULE_NAME; |
365 | |
|
366 | |
public static final String KIM_NAMESPACE_2_0 = KIM_NAMESPACE_PREFIX + "/" + CoreConstants.Versions.VERSION_2_0; |
367 | |
} |
368 | |
|
369 | 0 | public static class ParameterKey { |
370 | |
public static final String SHOW_BLANK_QUALIFIERS = "KIM_SHOW_BLANK_QUALIFIERS"; |
371 | |
} |
372 | |
|
373 | |
} |