portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tay...@apache.org
Subject cvs commit: jakarta-jetspeed/src/java/org/apache/jetspeed/modules/actions/portlets/security SecurityConstants.java
Date Tue, 02 Jul 2002 01:20:59 GMT
taylor      2002/07/01 18:20:59

  Modified:    src/java/org/apache/jetspeed/modules/actions/portlets/security
                        SecurityConstants.java
  Log:
  Made the constants public as used in all modules for updates.
  
  Revision  Changes    Path
  1.4       +42 -42    jakarta-jetspeed/src/java/org/apache/jetspeed/modules/actions/portlets/security/SecurityConstants.java
  
  Index: SecurityConstants.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed/src/java/org/apache/jetspeed/modules/actions/portlets/security/SecurityConstants.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- SecurityConstants.java	11 Mar 2002 07:22:11 -0000	1.3
  +++ SecurityConstants.java	2 Jul 2002 01:20:59 -0000	1.4
  @@ -51,77 +51,77 @@
    * information on the Apache Software Foundation, please see
    * <http://www.apache.org/>.
    */
  - 
  +
   package org.apache.jetspeed.modules.actions.portlets.security;
   
   
   /**
    * This class contains all the common constants used between data entry forms and browsers
and actions
  - * 
  + *
    * @author <a href="mailto:taylor@apache.org">David Sean Taylor</a>
    * @version $Id$
    */
   public class SecurityConstants
   {
       // msg id - for error or information messages on data entry forms
  -    static final String PARAM_MSGID = "msgid";
  +    public static final String PARAM_MSGID = "msgid";
       // msg - the informational or form message in a form
  -    static final String PARAM_MSG = "msg";
  +    public static final String PARAM_MSG = "msg";
       // unique entity id - parameter passed between browser forms and update forms
  -    static final String PARAM_ENTITY_ID = "entityid";
  -    // username parameter 
  -    static final String PARAM_USERNAME = "username";
  +    public static final String PARAM_ENTITY_ID = "entityid";
  +    // username parameter
  +    public static final String PARAM_USERNAME = "username";
   
       // mode parameter
  -    static final String PARAM_MODE = "mode";
  +    public static final String PARAM_MODE = "mode";
       // update mode parameter
  -    static final String PARAM_MODE_UPDATE = "update";
  +    public static final String PARAM_MODE_UPDATE = "update";
       // delete mode parameter
  -    static final String PARAM_MODE_DELETE = "delete";
  +    public static final String PARAM_MODE_DELETE = "delete";
       // insert mode parameter
  -    static final String PARAM_MODE_INSERT = "insert";
  +    public static final String PARAM_MODE_INSERT = "insert";
   
       //
       // Context Constants
       //
  -    static final String CONTEXT_USER = "user";
  -    static final String CONTEXT_USERS = "users";
  -    static final String CONTEXT_ROLE = "role";
  -    static final String CONTEXT_ROLES = "roles";
  -    static final String CONTEXT_PERMISSION = "permission";
  -    static final String CONTEXT_PERMISSIONS = "permissions";
  -    static final String CONTEXT_GROUP = "group";
  -    static final String CONTEXT_GROUPS = "groups";
  -    static final String CONTEXT_SELECTED = "selected";
  +    public static final String CONTEXT_USER = "user";
  +    public static final String CONTEXT_USERS = "users";
  +    public static final String CONTEXT_ROLE = "role";
  +    public static final String CONTEXT_ROLES = "roles";
  +    public static final String CONTEXT_PERMISSION = "permission";
  +    public static final String CONTEXT_PERMISSIONS = "permissions";
  +    public static final String CONTEXT_GROUP = "group";
  +    public static final String CONTEXT_GROUPS = "groups";
  +    public static final String CONTEXT_SELECTED = "selected";
   
       // user browser pane id
  -    static final String PANEID_USER_BROWSER = "UserBrowser";
  +    public static final String PANEID_USER_BROWSER = "UserBrowser";
       // user form pane id
  -    static final String PANEID_USER_UPDATE = "UserForm";
  +    public static final String PANEID_USER_UPDATE = "UserForm";
       // role browser pane id
  -    static final String PANEID_ROLE_BROWSER = "RoleBrowser";
  +    public static final String PANEID_ROLE_BROWSER = "RoleBrowser";
       // role form pane id
  -    static final String PANEID_ROLE_UPDATE = "RoleForm";
  +    public static final String PANEID_ROLE_UPDATE = "RoleForm";
       // permission browser pane id
  -    static final String PANEID_PERMISSION_BROWSER = "PermissionBrowser";
  +    public static final String PANEID_PERMISSION_BROWSER = "PermissionBrowser";
       // permission form pane id
  -    static final String PANEID_PERMISSION_UPDATE = "PermissionForm";
  +    public static final String PANEID_PERMISSION_UPDATE = "PermissionForm";
       // group browser pane id
  -    static final String PANEID_GROUP_BROWSER = "GroupBrowser";
  +    public static final String PANEID_GROUP_BROWSER = "GroupBrowser";
       // group form pane id
  -    static final String PANEID_GROUP_UPDATE = "GroupForm";
  +    public static final String PANEID_GROUP_UPDATE = "GroupForm";
       // user role form pane id
  -    static final String PANEID_USERROLE_UPDATE = "UserRoleForm";
  +    public static final String PANEID_USERROLE_UPDATE = "UserRoleForm";
       // role permission form pane id
  -    static final String PANEID_ROLEPERMISSION_UPDATE = "PermissionBrowser";
  +    public static final String PANEID_ROLEPERMISSION_UPDATE = "PermissionBrowser";
   
  -    static final String PANE_NAME = "js_panename";
  +    public static final String PANE_NAME = "js_panename";
   
  -    // 
  +    //
       // Informational and Error Messages for Security Forms
  -    ///      
  -    static final String MESSAGES[] = 
  -    {        
  +    ///
  +    public static final String MESSAGES[] =
  +    {
           "Database Update Failure. Please report this error to your Database Administrator.",
           "Database Delete Failure. Please report this error to your Database Administrator.",
           "Invalid Entity Name. Please enter a valid entity name.",
  @@ -132,11 +132,11 @@
       //
       // indexes into messages
       //
  -    static final int MID_UPDATE_FAILED = 0;
  -    static final int MID_DELETE_FAILED = 1;
  -    static final int MID_INVALID_ENTITY_NAME = 2;
  -    static final int MID_ENTITY_ALREADY_EXISTS = 3;
  -    static final int MID_CANT_DELETE_CURRENT = 4;
  -    static final int MID_MISSING_PARAMETER = 5;
  +    public static final int MID_UPDATE_FAILED = 0;
  +    public static final int MID_DELETE_FAILED = 1;
  +    public static final int MID_INVALID_ENTITY_NAME = 2;
  +    public static final int MID_ENTITY_ALREADY_EXISTS = 3;
  +    public static final int MID_CANT_DELETE_CURRENT = 4;
  +    public static final int MID_MISSING_PARAMETER = 5;
   
   };
  
  
  

--
To unsubscribe, e-mail:   <mailto:jetspeed-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:jetspeed-dev-help@jakarta.apache.org>


Mime
View raw message