|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface RoleManager
RoleProfileManager:
| Field Summary | |
|---|---|
static java.lang.String |
ROLE
|
| Method Summary | |
|---|---|
void |
assignRole(java.lang.String roleId,
java.lang.String principal)
Assigns the role indicated by the roleId to the given principal |
void |
assignTemplatedRole(java.lang.String templateId,
java.lang.String resource,
java.lang.String principal)
Assigns the templated role indicated by the templateId fails if the templated role has not been created |
void |
createTemplatedRole(java.lang.String templateId,
java.lang.String resource)
locate a role with the corresponding name and generate it with the given resource, ${resource} in the model will be replaced with this resource string, if this resource does not exist, it will be created. |
RedbackRoleModel |
getModel()
get the blessed model, the current operating instructions for all things role management |
void |
loadRoleModel(RedbackRoleModel model)
|
void |
loadRoleModel(java.net.URL resourceLocation)
load the model and create/verify operations, resources, etc exist and make static roles |
void |
removeTemplatedRole(java.lang.String templateId,
java.lang.String resource)
removes a role corresponding to the role Id that was manufactured with the given resource it also removes any user assignments for that role |
boolean |
roleExists(java.lang.String roleId)
true of a role exists with the given roleId |
boolean |
templatedRoleExists(java.lang.String templateId,
java.lang.String resource)
true of a role exists with the given roleId |
void |
unassignRole(java.lang.String roleId,
java.lang.String principal)
Unassigns the role indicated by the role id from the given principal |
void |
updateRole(java.lang.String templateId,
java.lang.String oldResource,
java.lang.String newResource)
allows for a role coming from a template to be renamed effectively swapping out the bits of it that were labeled with the oldResource with the newResource it also manages any user assignments for that role |
| Field Detail |
|---|
static final java.lang.String ROLE
| Method Detail |
|---|
void loadRoleModel(java.net.URL resourceLocation)
throws RoleManagerException
resourceLocation -
RoleManagerException
void loadRoleModel(RedbackRoleModel model)
throws RoleManagerException
RoleManagerException
void createTemplatedRole(java.lang.String templateId,
java.lang.String resource)
throws RoleManagerException
roleName - resource -
RoleManagerException
void removeTemplatedRole(java.lang.String templateId,
java.lang.String resource)
throws RoleManagerException
roleId - resource -
RoleManagerException
void updateRole(java.lang.String templateId,
java.lang.String oldResource,
java.lang.String newResource)
throws RoleManagerException
templateId - oldResource - newResource -
RoleManagerException
void assignRole(java.lang.String roleId,
java.lang.String principal)
throws RoleManagerException
roleId - principal -
RoleManagerException
void assignTemplatedRole(java.lang.String templateId,
java.lang.String resource,
java.lang.String principal)
throws RoleManagerException
templateId - resource - principal -
RoleManagerException
void unassignRole(java.lang.String roleId,
java.lang.String principal)
throws RoleManagerException
roleId - principal -
RoleManagerException
boolean roleExists(java.lang.String roleId)
throws RoleManagerException
roleId -
RoleManagerException
boolean templatedRoleExists(java.lang.String templateId,
java.lang.String resource)
throws RoleManagerException
roleId -
RoleManagerExceptionRedbackRoleModel getModel()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||