|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Role
This class represents a role played by the User associated with the current Session.
| Method Summary | |
|---|---|
Role |
create(String name)
Creates a new Role in the system. |
PermissionSet |
getPermissions()
Returns the set of Permissions associated with this Role. |
void |
grant(Permission permission)
Grants a Permission to this Role. |
void |
grant(PermissionSet permissionSet)
Grants Permissions from a PermissionSet to this Role. |
void |
remove()
Removes a role from the system. |
void |
rename(String name)
Renames the role. |
void |
revoke(Permission permission)
Revokes a Permission from this Role. |
void |
revoke(PermissionSet permissionSet)
Revokes Permissions from a PermissionSet from this Role. |
void |
save()
Makes changes made to the Role attributes permanent. |
void |
setPermissions(PermissionSet permissionSet)
Sets the Permissions associated with this Role. |
| Methods inherited from interface org.apache.turbine.om.security.SecurityEntity |
|---|
getId, getIdAsObj, getName, setId, setName |
| Method Detail |
|---|
PermissionSet getPermissions()
throws Exception
Exception - A generic exception.void setPermissions(PermissionSet permissionSet)
permissionSet - A PermissionSet.
Role create(String name)
throws TurbineSecurityException
name - The name of the new Role.
TurbineSecurityException - if the Role could not be created.
void save()
throws TurbineSecurityException
TurbineSecurityException - if there is a problem while
saving data.
void remove()
throws TurbineSecurityException
TurbineSecurityException - if the Role could not be removed.
void rename(String name)
throws TurbineSecurityException
name - The new Role name.
TurbineSecurityException - if the Role could not be renamed.
void grant(Permission permission)
throws TurbineSecurityException
permission - A Permission.
TurbineSecurityException - if there is a problem while assigning
the Permission.
void grant(PermissionSet permissionSet)
throws TurbineSecurityException
permissionSet - A PermissionSet.
TurbineSecurityException - if there is a problem while assigning
the Permissions.
void revoke(Permission permission)
throws TurbineSecurityException
permission - A Permission.
TurbineSecurityException - if there is a problem while unassigning
the Permission.
void revoke(PermissionSet permissionSet)
throws TurbineSecurityException
permissionSet - A PermissionSet.
TurbineSecurityException - if there is a problem while unassigning
the Permissions.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||