Klasse DynamicRoleImpl
java.lang.Object
org.apache.fulcrum.security.entity.impl.SecurityEntityImpl
org.apache.fulcrum.security.model.dynamic.entity.impl.DynamicRoleImpl
- Alle implementierten Schnittstellen:
Serializable
,Role
,SecurityEntity
,DynamicRole
Represents the "simple" model where permissions are related to roles, roles
are related to groups and groups are related to users, all in many to many
relationships.
- Version:
- $Id: DynamicRole.java 437451 2006-08-27 20:20:44Z tv $
- Autor:
- Eric Pugh
- Siehe auch:
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoid
This method should only be used by a RoleManager.void
addPermission
(Permission permission) This method should only be used by a RoleManager.Get the groups this role belongs toGet the groups this role belongs to as a SetGet the permission that are part of this role<T extends Permission>
Set<T>Get the permission that are part of this role as Setvoid
removeGroup
(Group group) This method should only be used by a RoleManager.void
removePermission
(Permission permission) This method should only be used by a RoleManager.void
Set the groups this role belongs to<T extends Group>
voidsetGroupsAsSet
(Set<T> groups) Set the groups this role belongs to as a Setvoid
setPermissions
(PermissionSet permissionSet) Set the permission that are part of this role<T extends Permission>
voidsetPermissionsAsSet
(Set<T> permissions) Set the permission that are part of this role as SetVon Klasse geerbte Methoden org.apache.fulcrum.security.entity.impl.SecurityEntityImpl
equals, getId, getName, hashCode, setId, setName, toString
Von Klasse geerbte Methoden java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Von Schnittstelle geerbte Methoden org.apache.fulcrum.security.entity.SecurityEntity
getId, getName, setId, setName
-
Konstruktordetails
-
DynamicRoleImpl
public DynamicRoleImpl()
-
-
Methodendetails
-
getPermissions
Get the permission that are part of this role- Angegeben von:
getPermissions
in SchnittstelleDynamicRole
- Gibt zurück:
- a set of permissions
-
getPermissionsAsSet
Get the permission that are part of this role as Set- Angegeben von:
getPermissionsAsSet
in SchnittstelleDynamicRole
- Gibt zurück:
- a set of permissions
-
setPermissions
Set the permission that are part of this role- Angegeben von:
setPermissions
in SchnittstelleDynamicRole
- Parameter:
permissionSet
- a set of permissions
-
setPermissionsAsSet
Set the permission that are part of this role as Set- Angegeben von:
setPermissionsAsSet
in SchnittstelleDynamicRole
- Parameter:
permissions
- a set of permissions
-
addPermission
This method should only be used by a RoleManager. Not directly.- Angegeben von:
addPermission
in SchnittstelleDynamicRole
- Parameter:
permission
- the Permission to add
-
removePermission
This method should only be used by a RoleManager. Not directly.- Angegeben von:
removePermission
in SchnittstelleDynamicRole
- Parameter:
permission
- the Permission to remove
-
getGroups
Get the groups this role belongs to- Angegeben von:
getGroups
in SchnittstelleDynamicRole
- Gibt zurück:
- a set of groups
-
setGroups
Set the groups this role belongs to- Angegeben von:
setGroups
in SchnittstelleDynamicRole
- Parameter:
groupSet
- the set of groups
-
removeGroup
This method should only be used by a RoleManager. Not directly.- Angegeben von:
removeGroup
in SchnittstelleDynamicRole
- Parameter:
group
- the Group to remove
-
addGroup
This method should only be used by a RoleManager. Not directly.- Angegeben von:
addGroup
in SchnittstelleDynamicRole
- Parameter:
group
- the Group to add
-
setGroupsAsSet
Set the groups this role belongs to as a Set- Angegeben von:
setGroupsAsSet
in SchnittstelleDynamicRole
- Parameter:
groups
- the set of groups
-
getGroupsAsSet
Get the groups this role belongs to as a Set- Angegeben von:
getGroupsAsSet
in SchnittstelleDynamicRole
- Gibt zurück:
- a set of groups
-