001    /*
002     * Copyright 2011 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.osedu.org/licenses/ECL-2.0
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.student.kim.identity.mock;
017    
018    /**
019     * @author nwright
020     */
021    public class IdentityServiceConstants {
022    
023        /**
024         * Affiliation Types
025         */
026        public static final String STUDENT_AFFILIATION_TYPE_KEY = AffiliationTypeEnum.STUDENT.getCode();
027        public static final String FACULTY_AFFILIATION_TYPE_KEY = AffiliationTypeEnum.FACULTY.getCode();
028        public static final String STAFF_AFFILIATION_TYPE_KEY = AffiliationTypeEnum.STAFF.getCode();
029        public static final String AFFILIATE_AFFILIATION_TYPE_KEY = AffiliationTypeEnum.AFFILIATE.getCode();
030        /**
031         * Address Types
032         */
033        public static final String HOME_ADDRESS_TYPE_KEY = AddressTypeEnum.HOME.getCode();
034        public static final String WORK_ADDRESS_TYPE_KEY = AddressTypeEnum.WORK.getCode();
035        public static final String OTHER_ADDRESS_TYPE_KEY = AddressTypeEnum.OTHER.getCode();
036        /**
037         * Email Types
038         */
039        public static final String HOME_EMAIL_TYPE_KEY = EmailTypeEnum.HOME.getCode();
040        public static final String WORK_EMAIL_TYPE_KEY = EmailTypeEnum.WORK.getCode();
041        public static final String OTHER_EMAIL_TYPE_KEY = EmailTypeEnum.OTHER.getCode();
042        /**
043         * Phone Types
044         */
045        public static final String HOME_PHONE_TYPE_KEY = PhoneTypeEnum.HOME.getCode();
046        public static final String WORK_PHONE_TYPE_KEY = PhoneTypeEnum.WORK.getCode();
047        public static final String MOBILE_PHONE_TYPE_KEY = PhoneTypeEnum.MOBILE.getCode();
048        public static final String OTHER_PHONE_TYPE_KEY = PhoneTypeEnum.OTHER.getCode();
049        /**
050         * Search constants
051         */
052        public static final int BOUNDED_SEARCH_MAX_RESULTS = 100;
053        public static final String KIM_PERSON_FIRST_NAME = "names.firstName";
054        public static final String KIM_PERSON_MIDDLE_NAME = "names.middleName";
055        public static final String KIM_PERSON_LAST_NAME = "names.lastName";
056        public static final String KIM_PRINCIPALS_PRINCIPALNAME = "principals.principalName";
057        public static final String KIM_PRINCIPALS_PRINCIPALID = "principals.principalId";
058        public static final String KIM_PERSON_AFFILIATION_TYPE_CODE = "affiliationTypeCode";
059        public static final String[] SUPPORTED_SEARCH_FIELD_KEYS = {
060            KIM_PRINCIPALS_PRINCIPALNAME,
061            KIM_PRINCIPALS_PRINCIPALID,
062            KIM_PERSON_FIRST_NAME,
063            KIM_PERSON_MIDDLE_NAME,
064            KIM_PERSON_LAST_NAME,
065            KIM_PERSON_AFFILIATION_TYPE_CODE
066        };
067    }
068