Klasse DynamicPermissionImpl
java.lang.Object
org.apache.fulcrum.security.entity.impl.SecurityEntityImpl
org.apache.fulcrum.security.model.dynamic.entity.impl.DynamicPermissionImpl
- Alle implementierten Schnittstellen:
Serializable,Permission,SecurityEntity,DynamicPermission
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: DynamicPermission.java 223059 2004-07-07 16:49:09Z epugh $
- Autor:
- Eric Pugh
- Siehe auch:
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidAdd a role to this permissiongetRoles()Get the roles that this permission belongs toGet the roles that this permission belongs to as SetvoidremoveRole(Role role) Remove a role from this permissionvoidSet 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, toStringVon Klasse geerbte Methoden java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitVon Schnittstelle geerbte Methoden org.apache.fulcrum.security.entity.SecurityEntity
getId, getName, setId, setName
-
Konstruktordetails
-
DynamicPermissionImpl
public DynamicPermissionImpl()
-
-
Methodendetails
-
getRoles
Get the roles that this permission belongs to- Angegeben von:
getRolesin SchnittstelleDynamicPermission- Gibt zurück:
- a set of roles
-
setRoles
Set the roles that this permission belongs to- Angegeben von:
setRolesin SchnittstelleDynamicPermission- Parameter:
roleSet- a set of roles
-
addRole
Add a role to this permission- Angegeben von:
addRolein SchnittstelleDynamicPermission- Parameter:
role- the role to add
-
removeRole
Remove a role from this permission- Angegeben von:
removeRolein SchnittstelleDynamicPermission- Parameter:
role- the role to remove
-
setRolesAsSet
Set the roles that this permission belongs to as Set- Angegeben von:
setRolesAsSetin SchnittstelleDynamicPermission- Parameter:
roles- a set of roles
-
getRolesAsSet
Get the roles that this permission belongs to as Set- Angegeben von:
getRolesAsSetin SchnittstelleDynamicPermission- Gibt zurück:
- a set of roles
-