|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
This class represents a role played by the User associated with the current Session.
| Method Summary | |
Role |
create(java.lang.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(java.lang.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 |
public PermissionSet getPermissions()
throws java.lang.Exception
java.lang.Exception - A generic exception.public void setPermissions(PermissionSet permissionSet)
permissionSet - A PermissionSet.
public Role create(java.lang.String name)
throws TurbineSecurityException
name - The name of the new Role.
TurbineSecurityException - if the Role could not be created.
public void save()
throws TurbineSecurityException
TurbineSecurityException - if there is a problem while
saving data.
public void remove()
throws TurbineSecurityException
TurbineSecurityException - if the Role could not be removed.
public void rename(java.lang.String name)
throws TurbineSecurityException
name - The new Role name.
TurbineSecurityException - if the Role could not be renamed.
public void grant(Permission permission)
throws TurbineSecurityException
permission - A Permission.
TurbineSecurityException - if there is a problem while assigning
the Permission.
public void grant(PermissionSet permissionSet)
throws TurbineSecurityException
permissionSet - A PermissionSet.
TurbineSecurityException - if there is a problem while assigning
the Permissions.
public void revoke(Permission permission)
throws TurbineSecurityException
permission - A Permission.
TurbineSecurityException - if there is a problem while unassigning
the Permission.
public 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 | ||||||||||