View Javadoc
1   /**
2    * Copyright 2005-2015 The Kuali Foundation
3    *
4    * Licensed under the Educational Community License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    * http://www.opensource.org/licenses/ecl2.php
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 implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  package org.kuali.rice.ken.api;
17  
18  import org.kuali.rice.core.api.CoreConstants;
19  
20  /**
21   * Names of services published on the bus 
22   * 
23   * @author Kuali Rice Team (rice.collab@kuali.org)
24   */
25  public final class KenApiConstants {
26      public static final String KENAPI_SERVICE = "KEN-KENAPIService";
27  
28      public final static String SERVICE_PATH_SOAP = "soap/" + Namespaces.MODULE_NAME + "/" + CoreConstants.Versions.VERSION_2_0;
29  
30  
31      public static final class Namespaces {
32          public static final String MODULE_NAME = "ken";
33  
34          public static final String KEN_NAMESPACE_PREFIX = CoreConstants.Namespaces.ROOT_NAMESPACE_PREFIX + "/ken";
35  
36          /**
37           * Namespace for the core module which is compatible with Kuali Rice 2.0.x.
38           */
39          public static final String KEN_NAMESPACE_2_0 = KEN_NAMESPACE_PREFIX + "/" + CoreConstants.Versions.VERSION_2_0;
40  
41          public static final String CODE = "KR-NTFCN";
42  
43          private Namespaces() {
44              throw new UnsupportedOperationException("do not call");
45          }
46      }
47  
48      public static final class ServiceNames {
49          public static final String SEND_NOTIFICATION_SERVICE = "sendNotificationService";
50      }
51  
52      public static final class NotificationConstants {
53  
54      }
55  
56      public static final class RESPONSE_STATUSES {
57          public static final String SUCCESS = "Success";
58          public static final String FAILURE = "Failure";
59  
60          private RESPONSE_STATUSES() {
61              throw new UnsupportedOperationException("do not call");
62          }
63      }
64  
65      public static final class KIMTypes {
66          public static final class Channel {
67              public static final String CHANNEL_ID = "Channel ID";
68  
69              private Channel() {
70                  throw new UnsupportedOperationException("do not call");
71              }
72          }
73  
74          private KIMTypes() {
75              throw new UnsupportedOperationException("do not call");
76          }
77      }
78  
79      public static final class Permissions {
80  
81          public static final String VIEW_NOTIFICATION = "View Notification";
82  
83          private Permissions() {
84              throw new UnsupportedOperationException("do not call");
85          }
86      }
87  
88      private KenApiConstants() {
89          throw new UnsupportedOperationException("do not call");
90      }
91  }