View Javadoc

1   /**
2    * Copyright 2011 The Kuali Foundation Licensed under the Educational Community
3    * License, Version 2.0 (the "License"); you may not use this file except in
4    * compliance with the License. You may obtain a copy of the License at
5    * http://www.osedu.org/licenses/ECL-2.0 Unless required by applicable law or
6    * agreed to in writing, software distributed under the License is distributed
7    * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
8    * express or implied. See the License for the specific language governing
9    * permissions and limitations under the License.
10   */
11  package org.kuali.student.r2.core.constants;
12  
13  import org.kuali.student.r2.common.constants.CommonServiceConstants;
14  import org.kuali.student.r2.core.exemption.dto.ExemptionInfo;
15  import org.kuali.student.r2.core.exemption.dto.ExemptionRequestInfo;
16  
17  /**
18   * This class holds the constants used by the Exemption service.
19   * 
20   * @author nwright
21   */
22  public class ExemptionServiceConstants {
23  
24      /**
25       * Reference Object URI's
26       */
27      public static final String NAMESPACE = CommonServiceConstants.REF_OBJECT_URI_GLOBAL_PREFIX + "hold";
28      public static final String REF_OBJECT_URI_EXEMPTION = NAMESPACE + "/" + ExemptionInfo.class.getSimpleName();
29      public static final String REF_OBJECT_URI_EXEMPTION_REQUEST = NAMESPACE + "/" + ExemptionRequestInfo.class.getSimpleName();
30  
31      /**
32       * Exemption types
33       */
34      public static final String MILESTONE_DATE_EXEMPTION_TYPE_KEY = "kuali.exemption.type.process.check.milestone.date";
35      public static final String CHECK_EXEMPTION_TYPE_KEY = "kuali.exemption.type.process.check";
36      // public static final String EXTERNAL_EXEMPTION_TYPE_KEY =
37      // "kuali.exemption.type.external";
38      // public static final String HOLD_EXEMPTION_TYPE_KEY =
39      // "kuali.exemption.type.hold";
40      // public static final String LEARNING_RESULT_EXEMPTION_TYPE_KEY =
41      // "kuali.exemption.type.learning.result";
42      // public static final String MILESTONE_EXEMPTION_TYPE_KEY =
43      // "kuali.exemption.type.milestone";
44      // public static final String RESTRICTION_EXEMPTION_TYPE_KEY =
45      // "kuali.exemption.type.restriction";
46      // public static final String STATEMENT_EXEMPTION_TYPE_KEY =
47      // "kuali.exemption.type.statement";
48  
49      /**
50       * Exemption Request types
51       */
52      public static final String DATE_EXEMPTION_REQUEST_TYPE_KEY = "kuali.exemption.request.type.date";
53      // public static final String EXTERNAL_EXEMPTION_REQUEST_TYPE_KEY =
54      // "kuali.exemption.request.type.external";
55      public static final String GENERIC_EXEMPTION_REQUEST_TYPE_KEY = "kuali.exemption.request.type.generic";
56      // public static final String HOLD_EXEMPTION_REQUEST_TYPE_KEY =
57      // "kuali.exemption.request.type.hold";
58      // public static final String LEARNING_RESULT_EXEMPTION_REQUEST_TYPE_KEY =
59      // "kuali.exemption.request.type.learning.result";
60      // public static final String MILESTONE_EXEMPTION_REQUEST_TYPE_KEY =
61      // "kuali.exemption.request.type.milestone";
62      // public static final String RESTRICTION_EXEMPTION_REQUEST_TYPE_KEY =
63      // "kuali.exemption.request.type.restriction";
64      // public static final String STATEMENT_EXEMPTION_REQUEST_TYPE_KEY =
65      // "kuali.exemption.request.type.statement";
66  
67      /**
68       * States For Exemptions
69       */
70      public static final String EXEMPTION_PROCESS_KEY = "kuali.exemption.process";
71      public static final String EXEMPTION_ACTIVE_STATE_KEY = "kuali.exemption.state.active";
72      public static final String EXEMPTION_INACTIVE_STATE_KEY = "kuali.exemption.state.inactive";
73      public static final String[] EXEMPTION_PROCESS_KEYS = {EXEMPTION_ACTIVE_STATE_KEY, EXEMPTION_INACTIVE_STATE_KEY};
74  
75      /**
76       * States For Exemption Requests
77       */
78      public static final String EXEMPTION_REQUEST_PROCESS_KEY = "kuali.exemption.request.process";
79      public static final String EXEMPTION_REQUEST_REQUESTED_STATE_KEY = "kuali.exemption.request.state.requested";
80      public static final String EXEMPTION_REQUEST_CANCELED_STATE_KEY = "kuali.exemption.request.state.canceled";
81      public static final String EXEMPTION_REQUEST_APPROVED_STATE_KEY = "kuali.exemption.request.state.approved";
82      public static final String EXEMPTION_REQUEST_NOT_APPROVED_STATE_KEY = "kuali.exemption.request.state.not.approved";
83      public static final String[] EXEMPTION_REQUEST_PROCESS_KEYS = {EXEMPTION_REQUEST_REQUESTED_STATE_KEY, EXEMPTION_REQUEST_CANCELED_STATE_KEY, EXEMPTION_REQUEST_APPROVED_STATE_KEY,
84              EXEMPTION_REQUEST_NOT_APPROVED_STATE_KEY};
85  }