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 - Übersicht
Verschachtelte KlassenModifizierer und TypSchnittstelleBeschreibungstatic enum
may be used in implementations -
Feldübersicht
FelderModifizierer und TypFeldBeschreibungstatic final String
attribute where global group name could be setstatic final String
The name of the global group, if no global group name is set in model managerVon Schnittstelle geerbte Felder org.apache.fulcrum.security.ModelManager
ROLE
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungProvides a reference to the Group object that represents the global group.void
grant
(Role role, Permission permission) Puts a permission in a role This method is used when adding a permission to a rolevoid
Grant an User a Role in a Group.void
Replaces the assigned old Role to new role in the #global group for User user.void
revoke
(Role role, Permission permission) Removes a permission from a rolevoid
Revoke a Role in a Group from an User.void
Revokes all roles and users from a Group.void
Revokes all permissions from a Role.void
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.void
Revokes all roles from an User.
-
Felddetails
-
GLOBAL_GROUP_ATTR_NAME
attribute where global group name could be set- Siehe auch:
-
GLOBAL_GROUP_NAME
The name of the global group, if no global group name is set in model manager- Siehe auch:
-
-
Methodendetails
-
getGlobalGroup
Provides 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
-
getGlobalGroupName
String getGlobalGroupName()- Gibt zurück:
- the configured global group name, by default
GLOBAL_GROUP_ATTR_NAME
-
replace
void 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 RolenewRole
- the new Role- Löst aus:
DataBackendException
- generic exceptionUnknownEntityException
- generic exception
-
grant
Puts 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.
-
revoke
Removes 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.
-
revokeAll
Revokes 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.
-
revokeAll
Revokes 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.
-
revokeAll
Revokes 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.
-
grant
Grant 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.
-
revoke
Revoke 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.
-
revokeAll
void 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 RolecascadeDelete
- iftrue
removes 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.
-