View Javadoc

1   package org.gnomekr.potron.util;
2   
3   import net.sf.acegisecurity.GrantedAuthority;
4   import net.sf.acegisecurity.GrantedAuthorityImpl;
5   
6   /***
7    * PotronConstants.java
8    * @author Xavier Cho
9    * @version $Revision 1.1 $ $Date: 2005/07/12 10:03:01 $
10   */
11  public final class PotronConstants {
12  
13      public static final String SPRING_CONTEXT_URI = "applicationContext.xml";
14      public static final String ACEGI_CONTEXT_URI = "applicationContext-security.xml";
15  
16      public static final String BEAN_ID_USER_MANAGER = "userManager";
17      public static final String BEAN_ID_PROJECT_MANAGER = "projectManager";
18      public static final String BEAN_ID_TRANSLATION_MANAGER = "translationManager";
19  
20      public static final GrantedAuthority ROLE_USER = new GrantedAuthorityImpl(
21              "ROLE_USER");
22      public static final GrantedAuthority ROLE_ADMIN = new GrantedAuthorityImpl(
23              "ROLE_ADMIN");
24  
25      public static final String RESOURCE_NAME = "org.gnomekr.potron.resource.ApplicationResources";
26  
27      public static final String DEFAULT_FILE_ENCODING = "UTF-8";
28  
29      private PotronConstants() {
30      }
31  }