001/**
002 * Copyright 2005-2016 The Kuali Foundation
003 *
004 * Licensed under the Educational Community License, Version 2.0 (the "License");
005 * you may not use this file except in compliance with the License.
006 * You may obtain a copy of the License at
007 *
008 * http://www.opensource.org/licenses/ecl2.php
009 *
010 * Unless required by applicable law or agreed to in writing, software
011 * distributed under the License is distributed on an "AS IS" BASIS,
012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013 * See the License for the specific language governing permissions and
014 * limitations under the License.
015 */
016package org.kuali.rice.kew.preferences.web;
017
018import java.util.ArrayList;
019import java.util.List;
020
021 
022public class PreferencesConstants {
023
024    public static final class EmailNotificationPreferences {
025        public static final String NONE = "no";
026        public static final String DAILY= "daily";
027        public static final String WEEKLY= "weekly";
028        public static final String IMMEDIATE = "immediate";
029
030        public static List<String> getEmailNotificationPreferences(){
031            List<String> emailNotifications = new ArrayList<String>();
032            emailNotifications.add(NONE);
033            emailNotifications.add(DAILY);
034            emailNotifications.add(WEEKLY);
035            emailNotifications.add(IMMEDIATE);
036            return emailNotifications;
037        }
038    }
039
040    public static class DelegatorFilterValues {
041            public static final String SECONDARY_DELEGATORS_ONLY_ON_FILTER_PAGE = "Secondary Delegators only on Filter Page";
042            public static final String SECONDARY_DELEGATORS_ON_ACTION_LIST_PAGE = "Secondary Delegators on Action List Page";
043        
044            public static List<String> getDelegatorFilterValues() {
045                    List<String> delegatorFilterValues = new ArrayList<String>();
046                    delegatorFilterValues.add(SECONDARY_DELEGATORS_ONLY_ON_FILTER_PAGE);
047                    delegatorFilterValues.add(SECONDARY_DELEGATORS_ON_ACTION_LIST_PAGE);
048                    return delegatorFilterValues;
049            }
050    }
051
052    public static class PrimaryDelegateFilterValues {
053            public static final String PRIMARY_DELEGATES_ONLY_ON_FILTER_VALUES = "Primary Delegates only on Filter Page";
054            public static final String PRIMARY_DELEGATES_ON_ACTION_LIST_PAGE = "Primary Delegates on Action List Page";
055
056            public static List<String> getPrimaryDelegateFilterValues() {
057                    List<String> primaryDelegateFilterValues = new ArrayList<String>();
058                    primaryDelegateFilterValues.add(PRIMARY_DELEGATES_ONLY_ON_FILTER_VALUES);
059                    primaryDelegateFilterValues.add(PRIMARY_DELEGATES_ON_ACTION_LIST_PAGE);
060                    return primaryDelegateFilterValues;
061            }
062    }
063
064    public static class CheckBoxValues {
065        public static final String YES = "yes";
066            public static final String NO = "no";
067        
068            public static List<String> getCheckBoxValues() {
069                    List<String> checkboxValues = new ArrayList<String>();
070                checkboxValues.add(YES);
071                checkboxValues.add(NO);
072                    return checkboxValues;
073            }
074    }
075
076    public static class PreferencesDocumentRouteStatusColors {
077            public static final String ORANGE = "orange";
078            public static final String RED = "red";
079            public static final String PURPLE = "purple";
080            public static final String BLUE = "blue";
081            public static final String GREEN = "green";
082            public static final String SLATE = "slate";
083            public static final String WHITE = "white";
084            public static final String PINK = "pink";
085            public static final String YELLOW = "yellow";
086            public static final String AQUA = "aqua";
087            public static final String TAN = "tan";
088        
089        public static List<String> getPreferencesDocumentRouteStatusColors() {
090                List<String> colors = new ArrayList<String>();
091                    colors.add(ORANGE);
092                    colors.add(RED);
093                    colors.add(PURPLE);
094                    colors.add(BLUE);
095                    colors.add(GREEN);
096                    colors.add(SLATE);
097                    colors.add(WHITE);
098                    colors.add(PINK);
099                    colors.add(YELLOW);
100                    colors.add(AQUA);
101                    colors.add(TAN);
102                    return colors;
103            }
104    }
105}