001    /**
002     * Copyright 2005-2012 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                    
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 = "activeFromDateValue";
130                    public static final String ACTIVE_TO_DATE = "activeToDateValue";
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    }