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

public class DynamicPermissionImpl extends SecurityEntityImpl implements 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:
  • Konstruktordetails

    • DynamicPermissionImpl

      public DynamicPermissionImpl()
  • Methodendetails

    • getRoles

      public RoleSet getRoles()
      Get the roles that this permission belongs to
      Angegeben von:
      getRoles in Schnittstelle DynamicPermission
      Gibt zurück:
      a set of roles
    • setRoles

      public void setRoles(RoleSet roleSet)
      Set the roles that this permission belongs to
      Angegeben von:
      setRoles in Schnittstelle DynamicPermission
      Parameter:
      roleSet - a set of roles
    • addRole

      public void addRole(Role role)
      Add a role to this permission
      Angegeben von:
      addRole in Schnittstelle DynamicPermission
      Parameter:
      role - the role to add
    • removeRole

      public void removeRole(Role role)
      Remove a role from this permission
      Angegeben von:
      removeRole in Schnittstelle DynamicPermission
      Parameter:
      role - the role to remove
    • setRolesAsSet

      public <T extends Role> void setRolesAsSet(Set<T> roles)
      Set the roles that this permission belongs to as Set
      Angegeben von:
      setRolesAsSet in Schnittstelle DynamicPermission
      Parameter:
      roles - a set of roles
    • getRolesAsSet

      public <T extends Role> Set<T> getRolesAsSet()
      Get the roles that this permission belongs to as Set
      Angegeben von:
      getRolesAsSet in Schnittstelle DynamicPermission
      Gibt zurück:
      a set of roles