Package com.opencloud.rhino.security
Interface AccessControlManagementMBean
-
public interface AccessControlManagementMBean
-
-
Field Summary
Fields Modifier and Type Field Description static String
MBEAN_NAME
static String
OBJECT_NAME
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addPermissionsToRole(String role, String[]... permissions)
void
addRhinoPermissionMapping(String opcodePattern, String opcodeOperand, String rhinoPermissionCategory, String rhinoPermissionSubcategory)
boolean[]
checkMBeanPatternPermissions(String[][] mbeanPatternPermissions)
void
createRole(String role)
void
createRole(String role, String baseRole)
String[]
getAllPermissions()
boolean
getPermissionLogging()
String[][]
getPermissionMappings()
String[][]
getPermissionsForRole(String role, boolean allPermissions)
String[]
getRoles()
String[]
getRolesForCurrentUser()
void
removePermissionsFromRole(String role, String[]... permissions)
void
removeRhinoPermissionMapping(String opcodePattern, String opcodeOperand, String rhinoPermissionCategory, String rhinoPermissionSubcategory)
void
removeRole(String role)
void
setPermissionLogging(boolean onOff)
void
setRolePermissions(String role, String[]... permissions)
-
-
-
Field Detail
-
MBEAN_NAME
static final String MBEAN_NAME
- See Also:
- Constant Field Values
-
OBJECT_NAME
static final String OBJECT_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
getRoles
String[] getRoles() throws ConfigurationException
- Throws:
ConfigurationException
-
createRole
void createRole(String role) throws ConfigurationException, com.opencloud.util.exception.ValidationException
- Throws:
ConfigurationException
com.opencloud.util.exception.ValidationException
-
createRole
void createRole(String role, String baseRole) throws ConfigurationException, com.opencloud.util.exception.ValidationException
- Throws:
ConfigurationException
com.opencloud.util.exception.ValidationException
-
removeRole
void removeRole(String role) throws ConfigurationException, com.opencloud.util.exception.ValidationException
- Throws:
ConfigurationException
com.opencloud.util.exception.ValidationException
-
getRolesForCurrentUser
String[] getRolesForCurrentUser() throws ConfigurationException
- Throws:
ConfigurationException
-
getAllPermissions
String[] getAllPermissions() throws ConfigurationException
- Throws:
ConfigurationException
-
getPermissionsForRole
String[][] getPermissionsForRole(String role, boolean allPermissions) throws ConfigurationException
- Throws:
ConfigurationException
-
checkMBeanPatternPermissions
boolean[] checkMBeanPatternPermissions(String[][] mbeanPatternPermissions)
-
setRolePermissions
void setRolePermissions(String role, String[]... permissions) throws ConfigurationException, com.opencloud.util.exception.ValidationException
- Throws:
ConfigurationException
com.opencloud.util.exception.ValidationException
-
addPermissionsToRole
void addPermissionsToRole(String role, String[]... permissions) throws ConfigurationException, com.opencloud.util.exception.ValidationException
- Throws:
ConfigurationException
com.opencloud.util.exception.ValidationException
-
removePermissionsFromRole
void removePermissionsFromRole(String role, String[]... permissions) throws ConfigurationException, com.opencloud.util.exception.ValidationException
- Throws:
ConfigurationException
com.opencloud.util.exception.ValidationException
-
addRhinoPermissionMapping
void addRhinoPermissionMapping(String opcodePattern, String opcodeOperand, String rhinoPermissionCategory, String rhinoPermissionSubcategory) throws ConfigurationException, com.opencloud.util.exception.ValidationException
- Throws:
ConfigurationException
com.opencloud.util.exception.ValidationException
-
removeRhinoPermissionMapping
void removeRhinoPermissionMapping(String opcodePattern, String opcodeOperand, String rhinoPermissionCategory, String rhinoPermissionSubcategory) throws ConfigurationException, com.opencloud.util.exception.ValidationException
- Throws:
ConfigurationException
com.opencloud.util.exception.ValidationException
-
getPermissionMappings
String[][] getPermissionMappings() throws ConfigurationException
- Throws:
ConfigurationException
-
getPermissionLogging
boolean getPermissionLogging() throws ConfigurationException
- Throws:
ConfigurationException
-
setPermissionLogging
void setPermissionLogging(boolean onOff) throws ConfigurationException, com.opencloud.util.exception.ValidationException
- Throws:
ConfigurationException
com.opencloud.util.exception.ValidationException
-
-