|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.codehaus.plexus.logging.AbstractLogEnabled
org.codehaus.plexus.redback.role.DefaultRoleManager
public class DefaultRoleManager
RoleProfileManager:
| Field Summary |
|---|
| Fields inherited from interface org.codehaus.plexus.redback.role.RoleManager |
|---|
ROLE |
| Constructor Summary | |
|---|---|
DefaultRoleManager()
|
|
| 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)
create a role for the given roleName using the resource passed in for resolving the ${resource} expression |
RedbackRoleModel |
getModel()
get the blessed model, the current operating instructions for all things role management |
void |
initialize()
|
void |
loadApplication(ModelApplication app)
|
void |
loadRoleModel(RedbackRoleModel roleModel)
|
void |
loadRoleModel(java.net.URL resource)
load the model and create/verify operations, resources, etc exist and make static roles |
void |
removeTemplatedRole(java.lang.String templateId,
java.lang.String resource)
remove the role corresponding to the role using the resource passed in for resolving the ${resource} expression |
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)
update the role from templateId from oldResource to newResource NOTE: this requires removal and creation of the role since the jdo store does not tolerate renaming because of the use of the name as an identifier |
| Methods inherited from class org.codehaus.plexus.logging.AbstractLogEnabled |
|---|
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultRoleManager()
| Method Detail |
|---|
public void loadRoleModel(java.net.URL resource)
throws RoleManagerException
RoleManager
loadRoleModel in interface RoleManagerRoleManagerException
public void loadRoleModel(RedbackRoleModel roleModel)
throws RoleManagerException
loadRoleModel in interface RoleManagerRoleManagerException
public void loadApplication(ModelApplication app)
throws RoleManagerException
RoleManagerException
public void createTemplatedRole(java.lang.String templateId,
java.lang.String resource)
throws RoleManagerException
createTemplatedRole in interface RoleManagerRoleManagerException
public void removeTemplatedRole(java.lang.String templateId,
java.lang.String resource)
throws RoleManagerException
removeTemplatedRole in interface RoleManagerRoleManagerException
public void updateRole(java.lang.String templateId,
java.lang.String oldResource,
java.lang.String newResource)
throws RoleManagerException
updateRole in interface RoleManagerRoleManagerException
public void assignRole(java.lang.String roleId,
java.lang.String principal)
throws RoleManagerException
RoleManager
assignRole in interface RoleManagerRoleManagerException
public void assignTemplatedRole(java.lang.String templateId,
java.lang.String resource,
java.lang.String principal)
throws RoleManagerException
RoleManager
assignTemplatedRole in interface RoleManagerRoleManagerException
public void unassignRole(java.lang.String roleId,
java.lang.String principal)
throws RoleManagerException
RoleManager
unassignRole in interface RoleManagerRoleManagerException
public boolean roleExists(java.lang.String roleId)
throws RoleManagerException
RoleManager
roleExists in interface RoleManagerRoleManagerException
public boolean templatedRoleExists(java.lang.String templateId,
java.lang.String resource)
throws RoleManagerException
RoleManager
templatedRoleExists in interface RoleManagerRoleManagerException
public void initialize()
throws org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException
initialize in interface org.codehaus.plexus.personality.plexus.lifecycle.phase.Initializableorg.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationExceptionpublic RedbackRoleModel getModel()
RoleManager
getModel in interface RoleManager
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||