View Javadoc

1   /*
2    * $Id: Globals.java 107 2004-10-17 15:41:47Z josem $
3    *
4    * Tarsis
5    * Copyright (C) 2002 Talika Open Source Group
6    *
7    * This program is free software; you can redistribute it and/or modify
8    * it under the terms of the GNU General Public License as published by
9    * the Free Software Foundation; either version 2 of the License, or
10   * (at your option) any later version.
11   *
12   * This program is distributed in the hope that it will be useful,
13   * but WITHOUT ANY WARRANTY; without even the implied warranty of
14   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15   * GNU General Public License for more details.
16   *
17   * You should have received a copy of the GNU General Public License
18   * along with this program; if not, write to the Free Software
19   * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
20   *
21   */
22  
23  package org.talika.tarsis;
24  
25  /**
26   * Global constants of framework.
27   *
28   * @author  Jose M. Palomar
29   * @version $Revision: 107 $
30   */
31  public final class Globals {
32  
33      // Project
34      /**
35       * Name of project.
36       */
37      public static final String PROJECT_NAME = "Tarsis";
38  
39      /**
40       * Version of project.
41       */
42      public static final String PROJECT_VERSION = "1.0-SNAPSHOT";
43  
44      /**
45       * Project info (name + version).
46       */
47      public static final String PROJECT_INFO = Globals.PROJECT_NAME + " " +
48                                                  Globals.PROJECT_VERSION;
49  
50      // Config
51      /**
52       * Default location of config file.
53       */
54      public static final String CONFIG_FILE = "/WEB-INF/tarsis-config.xml";
55  
56      // Controller Servlet
57      /**
58       * Default url for controller servlet.
59       */
60      public static final String CONTROLLER_SERVLET = "/ctrl";
61  
62      // Names Prefix
63      /**
64       * Attributes prefix.
65       */
66      public static final String NAME_PREFIX = "org.talika.tarsis.";
67  
68      // Context Attribute Names
69      /**
70       * Name for context attribute.
71       */
72      public static final String CONTEXT_ATTR             = NAME_PREFIX + "context";
73  
74      // Request Parameter Names
75      /**
76       * Name for command parameter.
77       */
78      public static final String COMMAND_NAME_PARAMETER   = NAME_PREFIX + "command";
79  
80      /**
81       * Name for syn token parameter.
82       */
83      public static final String SYNC_TOKEN_PARAMETER     = NAME_PREFIX + "sync_token";
84  
85      /**
86       * Name for ticket parameter.
87       */
88      public static final String TICKET_PARAMETER         = NAME_PREFIX + "ticket";
89  
90      /**
91       * Name for username parameter.
92       */
93      public static final String USERNAME_PARAMETER       = NAME_PREFIX + "username";
94  
95      /**
96       * Name for password parameter.
97       */
98      public static final String PASSWORD_PARAMETER       = NAME_PREFIX + "password";
99  
100     // Request Attribute Names
101     /**
102      * Name for ticket attribute.
103      */
104     public static final String TICKET_ATTR              = NAME_PREFIX + "ticket";
105 
106     // Session Attribute Names
107     /**
108      * Name for action session attribute.
109      */
110     public static final String ACTION_SESSION_ATTR      = NAME_PREFIX + "action_session";
111 
112     /**
113      * Name for security session attribute.
114      */
115     public static final String SECURITY_SESSION_ATTR    = NAME_PREFIX + "security_session";
116 
117     /**
118      * Name for login session attribute.
119      */
120     public static final String LOGIN_SESSION_ATTR       = NAME_PREFIX + "login_session";
121 
122     /**
123      * Name for history session attribute.
124      */
125     public static final String HISTORY_SESSION_ATTR     = NAME_PREFIX + "history_session";
126 
127     /**
128      * Name for sync token session attribute.
129      */
130     public static final String SYNC_TOKEN_ATTR          = NAME_PREFIX + "sync_token";
131 
132 }