|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface RoleManager
This interface defines the methods used to manage Role instances. To can get a RoleManager instance by asking it at your SecurityManager.
SecurityManager,
JdbcSecurityManager,
Role| Method Summary | |
|---|---|
void |
deleteRole(Role role)
Delete, on the security system, the specified role. |
Role |
insertRole(java.lang.String roleName)
Insert a new role into the used security system. |
Role |
selectRoleById(int roleIdentifier)
Select the role with the identifier specified in parameter. |
Role |
selectRoleByName(java.lang.String roleName)
Select the role with the name specified in parameter. |
void |
updateRole(Role role)
Update the informations for this role (actually, only the role name). |
| Method Detail |
|---|
Role selectRoleById(int roleIdentifier)
throws SecurityManagerException
roleIdentifier - The identifier of the role to returns.
SecurityManagerException - Thrown if the searched role don't exists.
Role selectRoleByName(java.lang.String roleName)
throws SecurityManagerException
roleName - The name of the role to returns.
SecurityManagerException - Thrown if the searched role don't exists.
Role insertRole(java.lang.String roleName)
throws SecurityManagerException,
RoleAlreadyRegisteredException
roleName - The name of the new role.
SecurityManagerException - Thrown if the role cannot be inserted into the security system.
RoleAlreadyRegisteredException - Thrown if the specified role name already exists in the security system.
void updateRole(Role role)
throws SecurityManagerException
role - The role to update.
SecurityManagerException - Thrown if the role cannot be updated into the security system.
void deleteRole(Role role)
throws SecurityManagerException
role - The role to delete.
SecurityManagerException - Thrown if the specified role cannot be deleted from the seciry system.
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||