001    /**
002     * Copyright 2005-2013 The Kuali Foundation
003     *
004     * Licensed under the Educational Community License, Version 2.0 (the "License");
005     * you may not use this file except in compliance with the License.
006     * You may obtain a copy of the License at
007     *
008     * http://www.opensource.org/licenses/ecl2.php
009     *
010     * Unless required by applicable law or agreed to in writing, software
011     * distributed under the License is distributed on an "AS IS" BASIS,
012     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013     * See the License for the specific language governing permissions and
014     * limitations under the License.
015     */
016    package org.kuali.rice.kim.impl;
017    
018    import org.kuali.rice.krad.util.KRADPropertyConstants;
019    
020    public final class KIMPropertyConstants {
021    
022            public static final class Entity {
023                    public static final String ID = "id";
024            public static final String ENTITY_ID = "entityId";
025            public static final String ACTIVE = KRADPropertyConstants.ACTIVE;
026            public static final String ENTITY_TYPE_CODE = "entityTypeCode";
027                    
028                    private Entity() {
029                            throw new UnsupportedOperationException("do not call");
030                    }
031            }
032    
033        public static final class Type {
034                    public static final String CODE = "code";
035    
036                    private Type() {
037                            throw new UnsupportedOperationException("do not call");
038                    }
039            }
040            
041            public static final class Principal {
042                    public static final String PRINCIPAL_ID = "principalId";
043                    public static final String PRINCIPAL_NAME = "principalName";
044                    public static final String PASSWORD = "password";
045                    public static final String ACTIVE = KRADPropertyConstants.ACTIVE;
046                    
047                    private Principal() {
048                            throw new UnsupportedOperationException("do not call");
049                    }
050            }
051    
052            public static final class Person {
053                    public static final String ENTITY_ID = "entityId";
054                    public static final String PRINCIPAL_ID = Principal.PRINCIPAL_ID;
055                    public static final String PRINCIPAL_NAME = Principal.PRINCIPAL_NAME;
056                    public static final String FIRST_NAME = "firstName";
057                    public static final String MIDDLE_NAME = "middleName";
058                    public static final String LAST_NAME = "lastName";
059                    public static final String NAME = "name";
060                    public static final String EMAIL_ADDRESS = KRADPropertyConstants.EMAIL_ADDRESS;
061                    public static final String PHONE_NUMBER = "phoneNumber";
062                    public static final String ACTIVE = KRADPropertyConstants.ACTIVE;
063                    public static final String EMPLOYEE_ID = "employeeId";
064                    public static final String EMPLOYEE_STATUS_CODE = "employeeStatusCode";
065                    public static final String EMPLOYEE_TYPE_CODE = "employeeTypeCode";
066                    public static final String EXTERNAL_ID = "externalId";
067                    public static final String EXTERNAL_IDENTIFIER_TYPE_CODE = "externalIdentifierTypeCode";
068                    public static final String ADDRESS_LINE_1 = "line1";
069                    public static final String ADDRESS_LINE_2 = "line2";
070                    public static final String ADDRESS_LINE_3 = "line3";
071            public static final String CITY = "city";
072            public static final String STATE_CODE = KRADPropertyConstants.STATE_CODE;
073                    public static final String POSTAL_CODE = KRADPropertyConstants.POSTAL_CODE;
074                    public static final String COUNTRY_CODE = KRADPropertyConstants.COUNTY_CODE;
075                    public static final String CAMPUS_CODE = KRADPropertyConstants.CAMPUS_CODE;
076                    public static final String AFFILIATION_TYPE_CODE = "affiliationTypeCode";
077                    public static final String PRIMARY_DEPARTMENT_CODE = "primaryDepartmentCode";
078                    public static final String BASE_SALARY_AMOUNT = "baseSalaryAmount";
079                    
080                    private Person() {
081                            throw new UnsupportedOperationException("do not call");
082                    }
083            }
084            
085            public static final class Group {
086                public static final String GROUP_ID = "id";
087            public static final String GROUP_NAME = "name";
088            
089                    private Group() {
090                            throw new UnsupportedOperationException("do not call");
091                    }
092            }
093            
094            public static final class KimType {
095                public static final String KIM_TYPE_ID = "kimTypeId";
096                
097                    private KimType() {
098                            throw new UnsupportedOperationException("do not call");
099                    }
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    }