|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
The role manager is the manager object which actually handles all role related stuff. Roles can created, removed and managed here. This class actually encapsulate the underlying communication to an actual implementation such as an EJB server containing the role definitions.
| Method Summary | |
IRole |
createRole(java.lang.String newName,
java.lang.String description,
IWorkflowSystem system,
ITicket user)
This creates a new global role within the given workflow system. |
IRole |
getRole(int id,
ITicket user)
Get a role. |
java.util.Iterator |
getRoles(IWorkflowSystem system,
ITicket user)
Return the global roles of a flow system. |
void |
removeRole(IRole role,
ITicket user)
Removes a role from the db. |
java.util.Iterator |
searchRoles(java.lang.String name,
IWorkflowSystem system,
IWorkflowModel model,
IWorkflow flow,
int user,
ITicket admin)
Search for roles. |
void |
updateRole(int id,
java.lang.String newName,
java.lang.String description,
ITicket user)
Update a roles value. |
| Methods inherited from interface org.jwarp.flow.IWorkflowSystemAware |
getWorkflowSystem, setWorkflowSystem |
| Methods inherited from interface org.jwarp.service.configuration.IConfigurable |
configure |
| Method Detail |
public java.util.Iterator getRoles(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 newName,
java.lang.String description,
IWorkflowSystem system,
ITicket user)
throws InitializationException,
java.lang.SecurityException
newName - 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
id - 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 void removeRole(IRole role,
ITicket user)
throws NotFoundException,
java.lang.SecurityException
role - The roleuser - The userNotFoundException - If the role could not be located.java.lang.SecurityException - If access was denied.
public IRole getRole(int id,
ITicket user)
throws java.lang.SecurityException
id - The role's id numberuser - The user ticketjava.lang.SecurityException - If access was denied.
public java.util.Iterator searchRoles(java.lang.String name,
IWorkflowSystem system,
IWorkflowModel model,
IWorkflow flow,
int user,
ITicket admin)
throws java.lang.SecurityException
name - The role's namesystem - The workflow systemmodel - The workflow modelflow - The workflowuser - Return the roles a user with the given id can act asadmin - The user ticketjava.lang.SecurityException - If access was denied.
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||