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übersicht
Von Schnittstelle geerbte Felder org.apache.fulcrum.security.ModelManager
ROLE -
Methodenübersicht
Modifizierer 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
-
grant
Puts a role into a group This method is used when adding a role to a group.- Parameter:
group- the group to userole- 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.
-
revoke
Remove a role from a group This method is used when removeing a role to a group.- Parameter:
group- the group to userole- 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.
-
grant
Puts a permission in a role This method is used when adding a permission to a role- Parameter:
role- the Rolepermission- 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 Rolepermission- the Permission- Löst aus:
DataBackendException- if there was an error accessing the data backend.UnknownEntityException- if the user or group is not present.
-
grant
Puts a user in a group. This method is used when adding a user to a group- Parameter:
user- the Usergroup- the Group- Löst aus:
DataBackendException- if there was an error accessing the data backend.UnknownEntityException- if the account is not present.
-
revoke
Removes a user from a group- Parameter:
user- the Usergroup- the Group- Löst aus:
DataBackendException- if there was an error accessing the data backend.UnknownEntityException- if the user or group 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
Revoke 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.
-
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.
-
addDelegate
void addDelegate(User delegator, User delegatee) throws DataBackendException, UnknownEntityException Allow B to assumes A's roles, groups and permissions- Parameter:
delegator- Adelegatee- B- Löst aus:
DataBackendException- if there was an error accessing the data backend.UnknownEntityException- if the Group is not present.
-
removeDelegate
void removeDelegate(User delegator, User delegatee) throws DataBackendException, UnknownEntityException Stop A having B's roles, groups and permissions- Parameter:
delegator- Adelegatee- B- Löst aus:
DataBackendException- if there was an error accessing the data backend.UnknownEntityException- if the Group is not present.
-