Schnittstelle DynamicModelManager
- Alle Superschnittstellen:
- ModelManager,- Serializable
- Alle bekannten Implementierungsklassen:
- AbstractDynamicModelManager
Describes all the relationships between entities in the "Dynamic" model.
- Version:
- $Id$
- Autor:
- Eric Pugh, Ben Gidley
- 
FeldübersichtVon Schnittstelle geerbte Felder org.apache.fulcrum.security.ModelManagerROLE
- 
MethodenübersichtModifizierer und TypMethodeBeschreibungvoidaddDelegate(User delegator, User delegatee) Allow B to assumes A's roles, groups and permissionsvoidPuts a role into a group This method is used when adding a role to a group.voidgrant(Role role, Permission permission) Puts a permission in a role This method is used when adding a permission to a rolevoidPuts a user in a group.voidremoveDelegate(User delegator, User delegatee) Stop A having B's roles, groups and permissionsvoidRemove a role from a group This method is used when removeing a role to a group.voidrevoke(Role role, Permission permission) Removes a permission from a rolevoidRemoves a user from a groupvoidRevokes all roles and users from a Group This method is typically used when deleting a Group.voidrevokeAll(Permission permission) Revoke from a permission all roles This method is typically used when deleting a PermissionvoidRevokes all permissions from a Role.voidRevokes all roles from an User.
- 
Methodendetails- 
grantPuts a role into a group This method is used when adding a role to a group.- Parameter:
- group- the group to use
- role- the role that will join the group
- Löst aus:
- DataBackendException- if there was an error accessing the data backend.
- UnknownEntityException- if the group or role is not present.
 
- 
revokeRemove a role from a group This method is used when removeing a role to a group.- Parameter:
- group- the group to use
- role- the role that will join the group
- Löst aus:
- DataBackendException- if there was an error accessing the data backend.
- UnknownEntityException- if the group or role is not present.
 
- 
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 user or group is not present.
 
- 
grantPuts a user in a group. This method is used when adding a user to a group- Parameter:
- user- the User
- group- the Group
- Löst aus:
- DataBackendException- if there was an error accessing the data backend.
- UnknownEntityException- if the account is not present.
 
- 
revokeRemoves a user from a group- Parameter:
- user- the User
- group- the Group
- Löst aus:
- DataBackendException- if there was an error accessing the data backend.
- UnknownEntityException- if the user or group 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.
 
- 
revokeAllRevoke from a permission all roles This method is typically used when deleting a Permission- Parameter:
- permission- the Permission.
- Löst aus:
- DataBackendException- if there was an error accessing the data backend.
- UnknownEntityException- if the permission 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.
 
- 
addDelegatevoid addDelegate(User delegator, User delegatee) throws DataBackendException, UnknownEntityException Allow B to assumes A's roles, groups and permissions- Parameter:
- delegator- A
- delegatee- B
- Löst aus:
- DataBackendException- if there was an error accessing the data backend.
- UnknownEntityException- if the Group is not present.
 
- 
removeDelegatevoid removeDelegate(User delegator, User delegatee) throws DataBackendException, UnknownEntityException Stop A having B's roles, groups and permissions- Parameter:
- delegator- A
- delegatee- B
- Löst aus:
- DataBackendException- if there was an error accessing the data backend.
- UnknownEntityException- if the Group is not present.
 
 
-