Schnittstelle DynamicPermission
- Alle Superschnittstellen:
Permission
,SecurityEntity
,Serializable
- Alle bekannten Implementierungsklassen:
DynamicPermissionImpl
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$
- Autor:
- Eric Pugh
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoid
Add a role to this permissiongetRoles()
Get the roles that this permission belongs toGet the roles that this permission belongs to as Setvoid
removeRole
(Role role) Remove a role from this permissionvoid
Set the roles that this permission belongs to<T extends Role>
voidsetRolesAsSet
(Set<T> roles) Set the roles that this permission belongs to as SetVon Schnittstelle geerbte Methoden org.apache.fulcrum.security.entity.SecurityEntity
getId, getName, setId, setName
-
Methodendetails
-
getRoles
RoleSet getRoles()Get the roles that this permission belongs to- Gibt zurück:
- a set of roles
-
setRoles
Set the roles that this permission belongs to- Parameter:
roleSet
- a set of roles
-
addRole
Add a role to this permission- Parameter:
role
- the role to add
-
removeRole
Remove a role from this permission- Parameter:
role
- the role to remove
-
setRolesAsSet
Set the roles that this permission belongs to as Set- Parameter:
roles
- a set of roles
-
getRolesAsSet
Get the roles that this permission belongs to as Set- Gibt zurück:
- a set of roles
-