1 16 17 package org.apache.jetspeed.modules.actions.portlets.security; 18 19 20 26 public class SecurityConstants 27 { 28 public static final String PARAM_MSGID = "msgid"; 30 public static final String PARAM_MSG = "msg"; 32 public static final String PARAM_ENTITY_ID = "entityid"; 34 public static final String PARAM_USERNAME = "username"; 36 37 public static final String PARAM_MODE = "mode"; 39 public static final String PARAM_MODE_UPDATE = "update"; 41 public static final String PARAM_MODE_DELETE = "delete"; 43 public static final String PARAM_MODE_INSERT = "insert"; 45 46 public static final String CONTEXT_USER = "user"; 50 public static final String CONTEXT_USERS = "users"; 51 public static final String CONTEXT_ROLE = "role"; 52 public static final String CONTEXT_ROLES = "roles"; 53 public static final String CONTEXT_PERMISSION = "permission"; 54 public static final String CONTEXT_PERMISSIONS = "permissions"; 55 public static final String CONTEXT_GROUP = "group"; 56 public static final String CONTEXT_GROUPS = "groups"; 57 public static final String CONTEXT_SELECTED = "selected"; 58 public static final String CONTEXT_ROLES_SELECTED = "roles_selected"; 59 public static final String CONTEXT_GROUPS_SELECTED = "groups_selected"; 60 public static final String CONTEXT_GROUPS_ROLES = "userGroupRoles"; 61 62 public static final String PANEID_USER_BROWSER = "UserBrowser"; 64 public static final String PANEID_USER_UPDATE = "UserForm"; 66 public static final String PANEID_ROLE_BROWSER = "RoleBrowser"; 68 public static final String PANEID_ROLE_UPDATE = "RoleForm"; 70 public static final String PANEID_PERMISSION_BROWSER = "PermissionBrowser"; 72 public static final String PANEID_PERMISSION_UPDATE = "PermissionForm"; 74 public static final String PANEID_GROUP_BROWSER = "GroupBrowser"; 76 public static final String PANEID_GROUP_UPDATE = "GroupForm"; 78 public static final String PANEID_USERROLE_UPDATE = "UserRoleForm"; 80 public static final String PANEID_ROLEPERMISSION_UPDATE = "PermissionBrowser"; 82 83 public static final String PANE_NAME = "js_panename"; 84 85 public static final String MESSAGES[] = 89 { 90 "Database Update Failure. Please report this error to your Database Administrator.", 91 "Database Delete Failure. Please report this error to your Database Administrator.", 92 "Invalid Entity Name. Please enter a valid entity name.", 93 "Entity Name Already Exists. Please choose another unique, identifying name.", 94 "Deletion not allowed. You are trying to delete the currently logged on user.", 95 "Missing Parameter. Cannot process Security form." 96 }; 97 public static final int MID_UPDATE_FAILED = 0; 101 public static final int MID_DELETE_FAILED = 1; 102 public static final int MID_INVALID_ENTITY_NAME = 2; 103 public static final int MID_ENTITY_ALREADY_EXISTS = 3; 104 public static final int MID_CANT_DELETE_CURRENT = 4; 105 public static final int MID_MISSING_PARAMETER = 5; 106 107 }; 108 | Popular Tags |