Klasse TurbinePermissionImpl
java.lang.Object
org.apache.fulcrum.security.entity.impl.SecurityEntityImpl
org.apache.fulcrum.security.model.turbine.entity.impl.TurbinePermissionImpl
- Alle implementierten Schnittstellen:
Serializable
,Permission
,SecurityEntity
,TurbinePermission
Represents the "turbine" model where permissions are in a many to many
relationship to roles, roles are related to groups are related to users, all
in many to many relationships.
- Version:
- $Id: TurbinePermission.java 223081 2004-10-07 15:11:58Z epugh $
- Autor:
- Eric Pugh
- Siehe auch:
-
Konstruktorübersicht
Konstruktoren -
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 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
-
TurbinePermissionImpl
public TurbinePermissionImpl()
-
-
Methodendetails
-
getRoles
Get the roles that this permission belongs to- Angegeben von:
getRoles
in SchnittstelleTurbinePermission
- Gibt zurück:
- a set of roles
-
setRoles
Set the roles that this permission belongs to- Angegeben von:
setRoles
in SchnittstelleTurbinePermission
- Parameter:
roleSet
- a set of roles
-
addRole
Add a role to this permission- Angegeben von:
addRole
in SchnittstelleTurbinePermission
- Parameter:
role
- the role to add
-
removeRole
Remove a role from this permission- Angegeben von:
removeRole
in SchnittstelleTurbinePermission
- Parameter:
role
- the role to remove
-
setRolesAsSet
Set the roles that this permission belongs to as Set- Angegeben von:
setRolesAsSet
in SchnittstelleTurbinePermission
- Typparameter:
T
- Role- Parameter:
roles
- a set of roles
-
getRolesAsSet
Get the roles that this permission belongs to as Set- Angegeben von:
getRolesAsSet
in SchnittstelleTurbinePermission
- Typparameter:
T
-- Gibt zurück:
- a set of roles
-