View Javadoc

1   package com.panogenesis;
2   
3   
4   /***
5    * Constant values used throughout the application.
6    *
7    * <p>
8    * <a href="Constants.java.html"><i>View Source</i></a>
9    * </p>
10   *
11   * @author <a href="mailto:matt@raibledesigns.com">Matt Raible</a>
12   */
13  public class Constants {
14      //~ Static fields/initializers =============================================
15  
16      /***
17       * The application scoped attribute for persistence engine and class that
18       * implements it
19       */
20      public static final String DAO_TYPE = "daoType";
21      public static final String DAO_TYPE_HIBERNATE = "hibernate";
22  
23      /*** Application scoped attribute for authentication url */
24      public static final String AUTH_URL = "authURL";
25  
26      /*** Application scoped attributes for SSL Switching */
27      public static final String HTTP_PORT = "httpPort";
28      public static final String HTTPS_PORT = "httpsPort";
29  
30      /*** The application scoped attribute for indicating a secure login */
31      public static final String SECURE_LOGIN = "secureLogin";
32  
33      /*** The encryption algorithm key to be used for passwords */
34      public static final String ENC_ALGORITHM = "algorithm";
35  
36      /*** A flag to indicate if passwords should be encrypted */
37      public static final String ENCRYPT_PASSWORD = "encryptPassword";
38  
39      /*** File separator from System properties */
40      public static final String FILE_SEP = System.getProperty("file.separator");
41  
42      /*** User home from System properties */
43      public static final String USER_HOME =
44          System.getProperty("user.home") + FILE_SEP;
45  
46      /***
47       * The session scope attribute under which the breadcrumb ArrayStack is
48       * stored
49       */
50      public static final String BREADCRUMB = "breadcrumbs";
51  
52      /***
53       * The session scope attribute under which the User object for the
54       * currently logged in user is stored.
55       */
56      public static final String USER_KEY = "currentUserForm";
57  
58      /***
59       * The request scope attribute under which an editable user form is stored
60       */
61      public static final String USER_EDIT_KEY = "userForm";
62  
63      /***
64       * The request scope attribute that holds the user list
65       */
66      public static final String USER_LIST = "userList";
67  
68      /***
69       * The request scope attribute for indicating a newly-registered user
70       */
71      public static final String REGISTERED = "registered";
72  
73      /***
74       * The name of the Administrator role, as specified in web.xml
75       */
76      public static final String ADMIN_ROLE = "admin";
77  
78      /***
79       * The name of the User role, as specified in web.xml
80       */
81      public static final String USER_ROLE = "tomcat";
82  
83      /***
84       * The name of the user's role list, a request-scoped attribute
85       * when adding/editing a user.
86       */
87      public static final String USER_ROLES = "userRoles";
88  	
89  
90      /***
91       * The name of the available roles list, a request-scoped attribute
92       * when adding/editing a user.
93       */
94      public static final String AVAILABLE_ROLES = "availableRoles";
95  	
96  
97      /***
98       * Name of cookie for "Remember Me" functionality.
99       */
100     public static final String LOGIN_COOKIE = "sessionId";
101 
102     /***
103      * The name of the configuration hashmap stored in application scope.
104      */
105     public static final String CONFIG = "appConfig";
106 
107     /***
108      * The request scope attribute that holds the project form.
109      */
110     public static final String PROJECT_KEY = "projectForm";
111 	public static final String AVAILABLE_USERS = "availableUsers";
112 
113     /***
114      * The request scope attribute that holds the project list
115      */
116     public static final String PROJECT_LIST = "projectList";
117     
118     /***
119      * The name of the available project status list, a request-scoped attribute
120      * when adding/editing a project.
121      */
122     public static final String AVAILABLE_PROJECT_STATUSES = "availableProjectStatuses";
123 
124     /***
125      * The request scope attribute that holds the projectStatus form.
126      */
127     public static final String PROJECTSTATUS_KEY = "projectStatusForm";
128 
129     /***
130      * The request scope attribute that holds the projectStatus list
131      */
132     public static final String PROJECTSTATUS_LIST = "projectStatusList";
133     /***
134      * The request scope attribute that holds the issue form.
135      */
136     public static final String ISSUE_KEY = "issueForm";
137 
138     /***
139      * The request scope attribute that holds the issue list
140      */
141     public static final String ISSUE_LIST = "issueList";
142     /***
143      * The request scope attribute that holds the severity form.
144      */
145     public static final String SEVERITY_KEY = "severityForm";
146 
147     /***
148      * The request scope attribute that holds the severity list
149      */
150     public static final String SEVERITY_LIST = "severityList";
151     /***
152      * The request scope attribute that holds the issueSeverity form.
153      */
154     public static final String ISSUESEVERITY_KEY = "issueSeverityForm";
155 
156     /***
157      * The request scope attribute that holds the issueSeverity list
158      */
159     public static final String ISSUESEVERITY_LIST = "issueSeverityList";
160     /***
161      * The request scope attribute that holds the issueStatus form.
162      */
163     public static final String ISSUESTATUS_KEY = "issueStatusForm";
164 
165     /***
166      * The request scope attribute that holds the issueStatus list
167      */
168     public static final String ISSUESTATUS_LIST = "issueStatusList";
169     
170     public static final String AVAILABLE_ISSUE_STATUSES = "availableIssueStatuses";
171     public static final String AVAILABLE_ISSUE_SEVERITIES ="availableIssueSeverities";
172     /***
173      * The request scope attribute that holds the issueResolution form.
174      */
175     public static final String ISSUERESOLUTION_KEY = "issueResolutionForm";
176 
177     /***
178      * The request scope attribute that holds the issueResolution list
179      */
180     public static final String ISSUERESOLUTION_LIST = "issueResolutionList";
181     public static final String AVAILABLE_ISSUE_RESOLUTIONS ="availableIssueResolutions";
182     /***
183      * The request scope attribute that holds the component form.
184      */
185     public static final String COMPONENT_KEY = "componentForm";
186 
187     /***
188      * The request scope attribute that holds the component list
189      */
190     public static final String COMPONENT_LIST = "componentList";
191  
192     /***
193      * The request scope attribute that holds the projectVersion form.
194      */
195     public static final String PROJECTVERSION_KEY = "projectVersionForm";
196 
197     /***
198      * The request scope attribute that holds the projectVersion list
199      */
200     public static final String PROJECTVERSION_LIST = "projectVersionList";
201     /***
202      * The request scope attribute that holds the issueHistory form.
203      */
204     public static final String ISSUEHISTORY_KEY = "issueHistoryForm";
205 
206     /***
207      * The request scope attribute that holds the issueHistory list
208      */
209     public static final String ISSUEHISTORY_LIST = "issueHistoryList";
210 }