Schnittstelle TurbineModelManager
- Alle Superschnittstellen:
- ModelManager,- Serializable
- Alle bekannten Implementierungsklassen:
- AbstractTurbineModelManager
Describes all the relationships between entities in the "Turbine" model.
- Version:
- $Id$
- Autor:
- Eric Pugh
- 
Verschachtelte Klassen - ÜbersichtVerschachtelte KlassenModifizierer und TypSchnittstelleBeschreibungstatic enummay be used in implementations
- 
FeldübersichtFelderModifizierer und TypFeldBeschreibungstatic final Stringattribute where global group name could be setstatic final StringThe name of the global group, if no global group name is set in model managerVon Schnittstelle geerbte Felder org.apache.fulcrum.security.ModelManagerROLE
- 
MethodenübersichtModifizierer und TypMethodeBeschreibungProvides a reference to the Group object that represents the global group.voidgrant(Role role, Permission permission) Puts a permission in a role This method is used when adding a permission to a rolevoidGrant an User a Role in a Group.voidReplaces the assigned old Role to new role in the #global group for User user.voidrevoke(Role role, Permission permission) Removes a permission from a rolevoidRevoke a Role in a Group from an User.voidRevokes all roles and users from a Group.voidRevokes all permissions from a Role.voidRevokes by default all permissions from a Role and if flag is set all groups and users for this role This method is used when deleting a Role.voidRevokes all roles from an User.
- 
Felddetails- 
GLOBAL_GROUP_ATTR_NAMEattribute where global group name could be set- Siehe auch:
 
- 
GLOBAL_GROUP_NAMEThe name of the global group, if no global group name is set in model manager- Siehe auch:
 
 
- 
- 
Methodendetails- 
getGlobalGroupProvides a reference to the Group object that represents the global group.- Gibt zurück:
- A Group object that represents the global group.
- Löst aus:
- DataBackendException- generic exception
 
- 
getGlobalGroupNameString getGlobalGroupName()- Gibt zurück:
- the configured global group name, by default GLOBAL_GROUP_ATTR_NAME
 
- 
replacevoid replace(User user, Role oldRole, Role newRole) throws DataBackendException, UnknownEntityException Replaces the assigned old Role to new role in the #global group for User user.- Parameter:
- user- the User.
- oldRole- the old Role
- newRole- the new Role
- Löst aus:
- DataBackendException- generic exception
- UnknownEntityException- generic exception
 
- 
grantPuts a permission in a role This method is used when adding a permission to a role- Parameter:
- role- the Role.
- permission- the Permission
- Löst aus:
- DataBackendException- if there was an error accessing the data backend.
- UnknownEntityException- if the account is not present.
 
- 
revokeRemoves a permission from a role- Parameter:
- role- the Role.
- permission- the Permission
- Löst aus:
- DataBackendException- if there was an error accessing the data backend.
- UnknownEntityException- if the role or permission is not present.
 
- 
revokeAllRevokes all roles from an User. This method is typically used when deleting an account.- Parameter:
- user- the User.
- Löst aus:
- DataBackendException- if there was an error accessing the data backend.
- UnknownEntityException- if the account is not present.
 
- 
revokeAllRevokes all permissions from a Role. This method is typically used when deleting a Role.- Parameter:
- role- the Role
- Löst aus:
- DataBackendException- if there was an error accessing the data backend.
- UnknownEntityException- if the Role is not present.
 
- 
revokeAllRevokes all roles and users from a Group. This method is typically used when deleting a Group.- Parameter:
- group- the Group
- Löst aus:
- DataBackendException- if there was an error accessing the data backend.
- UnknownEntityException- if the Group is not present.
 
- 
grantGrant an User a Role in a Group.- Parameter:
- user- the user.
- group- the group.
- role- the role.
- Löst aus:
- DataBackendException- if there was an error accessing the data backend.
- UnknownEntityException- if user account, group or role is not present.
 
- 
revokeRevoke a Role in a Group from an User.- Parameter:
- user- the user.
- group- the group.
- role- the role.
- Löst aus:
- DataBackendException- if there was an error accessing the data backend.
- UnknownEntityException- if user account, group or role is not present.
 
- 
revokeAllvoid revokeAll(Role role, boolean cascadeDelete) throws DataBackendException, UnknownEntityException Revokes by default all permissions from a Role and if flag is set all groups and users for this role This method is used when deleting a Role.- Parameter:
- role- the Role
- cascadeDelete- if- trueremoves all groups and user for this role.
- Löst aus:
- DataBackendException- if there was an error accessing the data backend.
- UnknownEntityException- if the Role is not present.
 
 
-