View Javadoc

1   /**
2    * Copyright 2011 The Kuali Foundation 
3    *
4    * Licensed under the * Educational Community License, Version 2.0
5    * (the "License"); you may * not use this file except in compliance
6    * with the License. You may * obtain a copy of the License at
7    *
8    * http://www.osedu.org/licenses/ECL-2.0
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
13   * implied. See the License for the specific language governing
14   * permissions and limitations under the License.
15   */
16  
17  package org.kuali.student.r2.core.constants;
18  
19  import org.kuali.student.r2.common.constants.CommonServiceConstants;
20  import org.kuali.student.r2.core.organization.dto.OrgInfo;
21  import org.kuali.student.r2.core.organization.dto.OrgCodeInfo;
22  import org.kuali.student.r2.core.organization.dto.OrgHierarchyInfo;
23  import org.kuali.student.r2.core.organization.dto.OrgOrgRelationInfo;
24  import org.kuali.student.r2.core.organization.dto.OrgPersonRelationInfo;
25  import org.kuali.student.r2.core.organization.dto.OrgPositionRestrictionInfo;
26  
27  
28  /**
29   * This class holds the constants used by the organization service
30   *
31   * @author tom
32   */
33  public class OrganizationServiceConstants {
34  
35      /**
36       * Reference Object URIs
37       */
38      public static final String NAMESPACE = CommonServiceConstants.REF_OBJECT_URI_GLOBAL_PREFIX + "organization";
39      public static final String REF_OBJECT_URI_DEFAULT = NAMESPACE + "COMMON/DEFAULT";
40      public static final String REF_OBJECT_URI_ORG = NAMESPACE + "/" + OrgInfo.class.getSimpleName();
41      public static final String REF_OBJECT_URI_ORG_CODE = NAMESPACE + "/" + OrgCodeInfo.class.getSimpleName();
42      public static final String REF_OBJECT_URI_ORG_HIERARCHY = NAMESPACE + "/" + OrgHierarchyInfo.class.getSimpleName();
43      public static final String REF_OBJECT_URI_ORG_ORG_RELATION = NAMESPACE + "/" + OrgOrgRelationInfo.class.getSimpleName();
44      public static final String REF_OBJECT_URI_ORG_PERSON_RELATION = NAMESPACE + "/" + OrgPersonRelationInfo.class.getSimpleName();
45      public static final String REF_OBJECT_URI_ORG_POSITION_RESTRICTION = NAMESPACE + "/" + OrgPositionRestrictionInfo.class.getSimpleName();
46      public static final String SERVICE_NAME_LOCAL_PART = "OrganizationService";
47  
48      /**
49       * Organization types (https://wiki.kuali.org/display/STUDENT/Organization+Types#)
50       * KSENROLL-3877., KSENROLL-4436
51       */
52      public static final String ORGANIZATION_COLLEGE_TYPE_KEY = "kuali.org.College";
53      public static final String ORGANIZATION_DEPARTMENT_TYPE_KEY = "kuali.org.Department";
54      public static final String ORGANIZATION_DIVISION_TYPE_KEY = "kuali.org.Division";
55      public static final String ORGANIZATION_SENATE_TYPE_KEY = "kuali.org.Senate";
56      public static final String ORGANIZATION_PROGRAM_TYPE_KEY = "kuali.org.Program";
57      public static final String ORGANIZATION_SCHOOL_TYPE_KEY = "kuali.org.School";
58      public static final String ORGANIZATION_CENTER_TYPE_KEY = "kuali.org.Center";
59      public static final String ORGANIZATION_TESTING_SERVICE_TYPE_KEY = "kuali.org.TestingService";
60      public static final String ORGANIZATION_COMMITTEE_TYPE_KEY = "kuali.org.Committee";
61      public static final String ORGANIZATION_ADVISORY_GROUP_TYPE_KEY = "kuali.org.AdvisoryGroup";
62      public static final String ORGANIZATION_ACCREDITING_BODY_TYPE_KEY = "kuali.org.AccreditingBody";
63      public static final String ORGANIZATION_CAMPUS_TYPE_KEY = "kuali.org.Campus";
64      public static final String ORGANIZATION_ACADEMIC_INSTRUCTIONAL_RESEARCH_SUPPORT_TYPE_KEY = "kuali.org.AcademicInstructionalResearchSupport";
65      public static final String ORGANIZATION_ACADEMIC_ADMINISTRATIVE_SUPPORT_TYPE_KEY = "kuali.org.AcademicAdministrativeSupport";
66      public static final String ORGANIZATION_ACADEMIC_OUTREACH_TYPE_KEY = "kuali.org.AcademicOutreach";
67      public static final String ORGANIZATION_UNIVERSITY_SUPPORT_TYPE_KEY = "kuali.org.UniversitySupport";
68      public static final String ORGANIZATION_SUB_DEPARTMENT_TYPE_KEY = "kuali.org.SubDepartment";
69      public static final String ORGANIZATION_INSTITUTION_TYPE_KEY = "kuali.org.Institution";
70      public static final String ORGANIZATION_SUBJECT_CODE_TYPE_KEY = "kuali.org.SubjectCode"; // KSENROLL-5112
71  
72      /**
73       * Org-Org types (https://wiki.kuali.org/display/STUDENT/Organization+Service+Types+and+States)
74       * KSENROLL-5112
75       */
76      public static final String ORG_ORG_SUBJECT_CODE_TO_ORG_TYPE_KEY = "kuali.org.org.relation.type.subjectcode2org";
77  }