|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--org.jwarp.flow.security.RoleManager
This is a component of the flow manager modelling roles. Each user acts in a certain role if he does interact with the system. By now these roles can be modeled but no concrete functinoality is depending on it. But future releases probably will use that information.
| Field Summary | |
protected java.util.LinkedList |
roles
The list od currently defined roles. |
| Constructor Summary | |
RoleManager()
Constructs a new RoleManager. |
|
| Method Summary | |
void |
configure(org.jdom.Element config)
Pass the Configuration to the Configurable
class. |
IRole |
createRole(java.lang.String name,
java.lang.String description,
IWorkflowSystem system,
ITicket user)
This creates a new global role within the given workflow system. |
java.util.Iterator |
getGlobalRoles(IWorkflowSystem system,
ITicket user)
Return the global roles of a flow system. |
IRole |
getRole(int id,
ITicket user)
Getting a role given its internal id. |
java.util.Iterator |
getRoles(IWorkflowSystem system,
ITicket user)
Return all the roles valid for a model. |
IWorkflowSystem |
getWorkflowSystem()
|
void |
removeRole(IRole role,
ITicket user)
This method removes a role from the repository. |
java.util.Iterator |
searchRoles(java.lang.String name,
IWorkflowSystem system,
IWorkflowModel model,
IWorkflow flow,
int user,
ITicket admin)
Search roles. |
void |
setWorkflowSystem(IWorkflowSystem system)
|
void |
updateRole(int id,
java.lang.String newName,
java.lang.String description,
ITicket user)
Updates a role |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
protected java.util.LinkedList roles
| Constructor Detail |
public RoleManager()
| Method Detail |
public void configure(org.jdom.Element config)
IConfigurableConfiguration to the Configurable
class. This method must always be called after the constructor and before any other method.configure in interface IConfigurableorg.jwarp.service.configuration.IConfigurableconfiguration - the class configurations.
public java.util.Iterator getRoles(IWorkflowSystem system,
ITicket user)
throws java.lang.SecurityException
getRoles in interface IRoleManagermodel - The modeluser - The user ticketjava.lang.SecurityException - If access was denied.
public java.util.Iterator getGlobalRoles(IWorkflowSystem system,
ITicket user)
throws java.lang.SecurityException
system - The systemuser - The user ticketjava.lang.SecurityException - If access was denied.
public IRole createRole(java.lang.String name,
java.lang.String description,
IWorkflowSystem system,
ITicket user)
throws InitializationException,
java.lang.SecurityException
createRole in interface IRoleManagernewName - The name of the new roledescription - The roles descriptionsystem - The systemuser - The user ticketInitializationException - If the role could not be created.java.lang.SecurityException - If access was denied.
public void updateRole(int id,
java.lang.String newName,
java.lang.String description,
ITicket user)
throws NotFoundException,
java.lang.SecurityException
updateRole in interface IRoleManagerorg.jwarp.flow.security.IRoleManagerid - The roles idnewName - The new roles namedescription - The new roles descriptionuser - The user ticketjava.lang.SecurityException - If access was denied.NotFoundException - If the role could not be located.
public java.util.Iterator searchRoles(java.lang.String name,
IWorkflowSystem system,
IWorkflowModel model,
IWorkflow flow,
int user,
ITicket admin)
throws java.lang.SecurityException
searchRoles in interface IRoleManagerThe - role nameThe - corresponding workflowThe - user that can act in this roleThe - user who tries to perform the role search request
public IRole getRole(int id,
ITicket user)
throws java.lang.SecurityException
getRole in interface IRoleManagerid - The role's id
public void removeRole(IRole role,
ITicket user)
throws NotFoundException,
java.lang.SecurityException
removeRole in interface IRoleManagerrole - The role to be removedNotRFoundException - If the role passed could not be foundpublic void setWorkflowSystem(IWorkflowSystem system)
setWorkflowSystem in interface IWorkflowSystemAwarepublic IWorkflowSystem getWorkflowSystem()
getWorkflowSystem in interface IWorkflowSystemAware
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||