001    /** =====================================================================       
002    *
003    *  File Name : $Id: FaultDatabaseConstants.java,v 1.7 2007/08/24 08:46:07 cb Exp $
004    *
005    *  Description
006    *  -----------
007    *
008    *  See javadoc comment 
009    * 
010    *  =====================================================================
011    *
012    *   @Author : Craige Bevil 
013    *             Control Software Group
014    *             Isaac Newton Group of Telescopes
015    *
016    *  =====================================================================
017    *
018    *     Modification Log
019    *
020    *     Vers         Date        Author       Reason
021    *     ----         ----        ------       ------
022    *      1                       C.Bevil      First Release
023    *
024    *     Commissioning Notes
025    *     -------------------
026    *
027    *     None
028    *     
029    *  =====================================================================
030    *
031    *     @Version   : $Id: FaultDatabaseConstants.java,v 1.7 2007/08/24 08:46:07 cb Exp $
032    *
033    *     @Author    : $Author: cb $
034    *
035    *     Header     : $Header: /opt/INGsrc/src/CVS/softproj/FaultDatabase/src/FaultDatabase/FaultDatabase/src/GWTApplication/client/FaultDatabaseConstants.java,v 1.7 2007/08/24 08:46:07 cb Exp $
036    *
037    *     Log        : $Log: FaultDatabaseConstants.java,v $
038    *     Log        : Revision 1.7  2007/08/24 08:46:07  cb
039    *     Log        : Added a comment
040    *     Log        :
041    *     Log        : Revision 1.6  2007/08/20 11:02:41  cb
042    *     Log        : Removed the constants which are associated with the search panel and
043    *     Log        : moved them into the search form
044    *     Log        :
045    *     Log        : Revision 1.5  2007/08/17 14:25:40  cb
046    *     Log        : More constants
047    *     Log        :
048    *     Log        : Revision 1.4  2007/08/02 12:22:55  cb
049    *     Log        : Modified to support the extra tabs in the quick view tab panel to
050    *     Log        : include the different groups of outstanding faults.
051    *     Log        :
052    *     Log        : Revision 1.3  2007/08/01 13:00:07  cb
053    *     Log        : First prototype after import
054    *     Log        :
055    *     Log        : Revision 1.2  2007/07/13 10:54:08  cb
056    *     Log        : Complete interface prototype
057    *     Log        :
058    *     Log        : Revision 1.1.1.1  2007/06/01 08:33:26  cb
059    *     Log        : Imported using TkCVS
060    *     Log        :
061    *
062    * =====================================================================*/
063    
064    package GWTApplication.client;
065    
066    public class FaultDatabaseConstants {
067    
068        public final static String DEFAULTPRIVILEDGE = "default";
069        public final static String INGUSERPRIVILEDGE = "ing";
070        public final static String ADMINPRIVILEDGE   = "admin";
071    
072        /**
073         * This is the cookie which is associated with the default printer
074         * for the user 
075         */
076        
077        public final static String FDBPRINTER  = "FaultDatabaseDefaultPrinter";
078        
079        public final static String DEFAULTUSER = "Unknown";
080        
081        /**
082         * The name of the cookie which will be used for holding the user id of the user 
083         */
084         
085        public final static String USERIDCOOKIE = "FDBUserID";
086        
087        /**
088         * The name of the cookie which will be used for holding the password of the user 
089         */
090         
091        public final static String PASSWORDCOOKIE = "FDBPassword";
092        
093        /**
094         * Cookie which is to remember if we are remember the password or not
095         */
096        
097        public final static String STOREPASSWORDCOOKIE = "FDBStorePassword";    
098        
099        /**
100         * Used by the {@link #STOREPASSWORDCOOKIE STOREPASSWORDCOOKIE} cookie to indicate that we always store the password/uid
101         */
102        
103        public final static String STORECREDENTIALS = "StoreCredentials";
104    
105        /**
106         * Used by the {@link #STOREPASSWORDCOOKIE STOREPASSWORDCOOKIE} cookie to indicate that we do not store the password/uid
107         */
108        
109        public final static String DONOTSTORECREDENTIALS = "DoNotStoreCredentials";
110    
111        /**
112         * This is the cookie to hold the preferred language of the interface 
113         */
114        
115        public final static String LANGUAGECOOKIE = "FDBLanguage";
116        
117        /**
118         * This is a constant which indicates a group of telescope
119         * operators
120         */
121        
122        public final static int TELESCOPEOPERATOR = 1;
123        
124        /**
125         * This is a constant which indicates a group of duty engineers
126         */
127        
128        public final static int DUTYENGINEERS = 2;
129    
130        /**
131         * This is a constant which indicates a group of support astronomers 
132         */
133        
134        public final static int SUPPORTASTRONOMERS = 3;
135               
136        /**
137         * This is the guest user 
138         */
139        
140        public final static String GUEST = "guest";
141    
142        /**
143         * This is the index in the tab panel for the fault comment tab
144         */
145        
146        public final static int COMMENTTAB = 0;
147    
148        /**
149         * This is the index in the tab panel for the fault solution tab
150         */
151        
152        public final static int SOLUTIONTAB = 1;
153    
154        /**
155         * This is the index in the tab panel for the fault workaround tab
156         */
157        
158        public final static int WORKAROUNDTAB = 2;
159        
160    }