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.kew.preferences.web;
17  
18  import java.util.ArrayList;
19  import java.util.List;
20  
21   
22  public class PreferencesConstants {
23  
24      public static final class EmailNotificationPreferences {
25          public static final String NONE = "no";
26          public static final String DAILY= "daily";
27          public static final String WEEKLY= "weekly";
28          public static final String IMMEDIATE = "immediate";
29  
30          public static List<String> getEmailNotificationPreferences(){
31              List<String> emailNotifications = new ArrayList<String>();
32              emailNotifications.add(NONE);
33              emailNotifications.add(DAILY);
34              emailNotifications.add(WEEKLY);
35              emailNotifications.add(IMMEDIATE);
36              return emailNotifications;
37          }
38      }
39  
40      public static class DelegatorFilterValues {
41  	    public static final String SECONDARY_DELEGATORS_ONLY_ON_FILTER_PAGE = "Secondary Delegators only on Filter Page";
42  	    public static final String SECONDARY_DELEGATORS_ON_ACTION_LIST_PAGE = "Secondary Delegators on Action List Page";
43  	
44  	    public static List<String> getDelegatorFilterValues() {
45  		    List<String> delegatorFilterValues = new ArrayList<String>();
46  		    delegatorFilterValues.add(SECONDARY_DELEGATORS_ONLY_ON_FILTER_PAGE);
47  		    delegatorFilterValues.add(SECONDARY_DELEGATORS_ON_ACTION_LIST_PAGE);
48  		    return delegatorFilterValues;
49  	    }
50      }
51  
52      public static class PrimaryDelegateFilterValues {
53  	    public static final String PRIMARY_DELEGATES_ONLY_ON_FILTER_VALUES = "Primary Delegates only on Filter Page";
54  	    public static final String PRIMARY_DELEGATES_ON_ACTION_LIST_PAGE = "Primary Delegates on Action List Page";
55  
56  	    public static List<String> getPrimaryDelegateFilterValues() {
57  		    List<String> primaryDelegateFilterValues = new ArrayList<String>();
58  		    primaryDelegateFilterValues.add(PRIMARY_DELEGATES_ONLY_ON_FILTER_VALUES);
59  		    primaryDelegateFilterValues.add(PRIMARY_DELEGATES_ON_ACTION_LIST_PAGE);
60  		    return primaryDelegateFilterValues;
61  	    }
62      }
63  
64      public static class CheckBoxValues {
65      	public static final String YES = "yes";
66  	    public static final String NO = "no";
67  	
68  	    public static List<String> getCheckBoxValues() {
69  		    List<String> checkboxValues = new ArrayList<String>();
70      		checkboxValues.add(YES);
71  	    	checkboxValues.add(NO);
72  		    return checkboxValues;
73  	    }
74      }
75  
76      public static class PreferencesDocumentRouteStatusColors {
77  	    public static final String ORANGE = "orange";
78  	    public static final String RED = "red";
79  	    public static final String PURPLE = "purple";
80  	    public static final String BLUE = "blue";
81  	    public static final String GREEN = "green";
82  	    public static final String SLATE = "slate";
83  	    public static final String WHITE = "white";
84  	    public static final String PINK = "pink";
85  	    public static final String YELLOW = "yellow";
86  	    public static final String AQUA = "aqua";
87  	    public static final String TAN = "tan";
88  	
89      	public static List<String> getPreferencesDocumentRouteStatusColors() {
90  	    	List<String> colors = new ArrayList<String>();
91  		    colors.add(ORANGE);
92  		    colors.add(RED);
93  		    colors.add(PURPLE);
94  		    colors.add(BLUE);
95  		    colors.add(GREEN);
96  		    colors.add(SLATE);
97  		    colors.add(WHITE);
98  		    colors.add(PINK);
99  		    colors.add(YELLOW);
100 		    colors.add(AQUA);
101 		    colors.add(TAN);
102 		    return colors;
103 	    }
104     }
105 }