View Javadoc

1   /*
2    * Copyright 2007-2008 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.kew.util;
17  
18  import java.util.HashSet;
19  import java.util.Set;
20  
21  import org.kuali.rice.core.util.JSTLConstants;
22  
23  /**
24   * This is a constants file used to describe KEW properties
25   *
26   * @author Kuali Rice Team (rice.collab@kuali.org)
27   *
28   */
29  public class KEWPropertyConstants extends JSTLConstants {
30  
31      private static final long serialVersionUID = 3866677900853284209L;
32  
33      // Constants used by Document Search and the document search results
34      public static final String DOC_SEARCH_RESULT_PROPERTY_NAME_ROUTE_HEADER_ID = "routeHeaderId";
35      public static final String DOC_SEARCH_RESULT_PROPERTY_NAME_DOC_TYPE_LABEL = "docTypeLabel";
36      public static final String DOC_SEARCH_RESULT_PROPERTY_NAME_DOCUMENT_TITLE = "documentTitle";
37      public static final String DOC_SEARCH_RESULT_PROPERTY_NAME_ROUTE_STATUS_DESC = "docRouteStatusCodeDesc";
38      public static final String DOC_SEARCH_RESULT_PROPERTY_NAME_INITIATOR = "initiator";
39      public static final String DOC_SEARCH_RESULT_PROPERTY_NAME_DATE_CREATED = "dateCreated";
40      public static final String DOC_SEARCH_RESULT_PROPERTY_NAME_ROUTE_LOG = "routeLog";
41      public static final String DOC_SEARCH_RESULT_PROPERTY_NAME_DOC_STATUS = "appDocStatus";
42      
43      // Constants used by DocumentTypeLookupableHelperServiceImpl
44      public static final String DOCUMENT_TYPE_ID = "documentTypeId";
45      public static final String NAME = "name";
46      public static final String DOC_TYP_LABEL = "label";
47      public static final String DOC_TYPE_PARENT_ID = "documentTypeId";
48      public static final String PARENT_DOC_TYPE_NAME = "parentDocType.name";
49      public static final String ACTIVE = "active";
50      public static final String BACK_LOCATION = "backLocation";
51      public static final String SERVICE_NAMESPACE = "serviceNamespace";
52      public static final String DOC_FORM_KEY = "docFormKey";
53  
54      //Constants used by RouteNode
55      public static final String ROUTE_NODE_ID = "routeNodeId";
56      public static final String ROUTE_NODE_INSTANCE_ID = "routeNodeInstanceId";
57      public static final String NODE_INSTANCE_ID = "nodeInstanceId";
58      public static final String DOCUMENT_ID = "documentId";
59      public static final String ROUTE_HEADER_ID = "routeHeaderId";
60      public static final String ROUTE_NODE_NAME = "routeNodeName";
61      public static final String PROCESS_ID = "processId";
62      public static final String COMPLETE = "complete";
63      public static final String FINAL_APPROVAL = "finalApprovalInd";
64      public static final String KEY = "key";
65      public static final String ROUTE_NODE_STATE_ID = "nodeStateId";
66      
67      
68      public static final Set<String> DOC_SEARCH_RESULT_PROPERTY_NAME_SET = new HashSet<String>();
69      static {
70          DOC_SEARCH_RESULT_PROPERTY_NAME_SET.add(DOC_SEARCH_RESULT_PROPERTY_NAME_ROUTE_HEADER_ID);
71          DOC_SEARCH_RESULT_PROPERTY_NAME_SET.add(DOC_SEARCH_RESULT_PROPERTY_NAME_DOC_TYPE_LABEL);
72          DOC_SEARCH_RESULT_PROPERTY_NAME_SET.add(DOC_SEARCH_RESULT_PROPERTY_NAME_DOCUMENT_TITLE);
73          DOC_SEARCH_RESULT_PROPERTY_NAME_SET.add(DOC_SEARCH_RESULT_PROPERTY_NAME_ROUTE_STATUS_DESC);
74          DOC_SEARCH_RESULT_PROPERTY_NAME_SET.add(DOC_SEARCH_RESULT_PROPERTY_NAME_DOC_STATUS);
75          DOC_SEARCH_RESULT_PROPERTY_NAME_SET.add(DOC_SEARCH_RESULT_PROPERTY_NAME_INITIATOR);
76          DOC_SEARCH_RESULT_PROPERTY_NAME_SET.add(DOC_SEARCH_RESULT_PROPERTY_NAME_DATE_CREATED);
77          DOC_SEARCH_RESULT_PROPERTY_NAME_SET.add(DOC_SEARCH_RESULT_PROPERTY_NAME_ROUTE_LOG);
78      }
79  
80  	// Name of the section in the xml file.
81  	public static final String PERSON_RESP_SECTION = "personResponsibilities";
82  	// Name of the section in the xml file.
83  	public static final String GROUP_RESP_SECTION = "groupResponsibilities";
84  	// Name of the section in the xml file.
85  	public static final String ROLE_RESP_SECTION = "roleResponsibilities";
86  	
87  	public static final Set<String> RESP_SECTION_NAME_SET = new HashSet<String>();
88  	static {
89  		RESP_SECTION_NAME_SET.add(PERSON_RESP_SECTION);
90  		RESP_SECTION_NAME_SET.add(GROUP_RESP_SECTION);
91  		RESP_SECTION_NAME_SET.add(ROLE_RESP_SECTION);
92  	}
93  }