|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This class represents a Group of Users in the system that are associated with specific entity or resource. The users belonging to the Group may have various Roles. The Permissions to perform actions upon the resource depend on the Roles in the Group that they are assigned.
Field Summary | |
static java.lang.String |
GLOBAL_GROUP_NAME
The name of the global group |
Method Summary | |
void |
grant(User user,
Role role)
Grants a Role in this Group to an User. |
void |
grant(User user,
RoleSet roleSet)
Grants Roles in this Group to an User. |
void |
remove()
Removes a group from the system. |
void |
rename(java.lang.String name)
Renames the role. |
void |
revoke(User user,
Role role)
Revokes a Role in this Group from an User. |
void |
revoke(User user,
RoleSet roleSet)
Revokes Roles in this group from an User. |
void |
save()
Makes changes made to the Group attributes permanent. |
Methods inherited from interface org.apache.turbine.om.security.SecurityEntity |
getId, getIdAsObj, getName, setId, setName |
Field Detail |
public static final java.lang.String GLOBAL_GROUP_NAME
Method Detail |
public void save() throws TurbineSecurityException
TurbineSecurityException
- if there is a problem while
saving data.public void remove() throws TurbineSecurityException
TurbineSecurityException
- if the Group could not be removed.public void rename(java.lang.String name) throws TurbineSecurityException
name
- The new Group name.
TurbineSecurityException
- if the Group could not be renamed.public void grant(User user, Role role) throws TurbineSecurityException
user
- An User.role
- A Role.
TurbineSecurityException
- if there is a problem while assigning
the Role.public void grant(User user, RoleSet roleSet) throws TurbineSecurityException
user
- An User.roleSet
- A RoleSet.
TurbineSecurityException
- if there is a problem while assigning
the Roles.public void revoke(User user, Role role) throws TurbineSecurityException
user
- An User.role
- A Role.
TurbineSecurityException
- if there is a problem while unassigning
the Role.public void revoke(User user, RoleSet roleSet) throws TurbineSecurityException
user
- An User.roleSet
- a RoleSet.
TurbineSecurityException
- if there is a problem while unassigning
the Roles.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |