Schnittstelle TurbinePermission

Alle Superschnittstellen:
Permission, SecurityEntity, Serializable
Alle bekannten Implementierungsklassen:
TurbinePermissionImpl

public interface TurbinePermission extends Permission
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$
Autor:
Eric Pugh
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    void
    addRole(Role role)
    Add a role to this permission
    Get the roles that this permission belongs to
    <T extends Role>
    Set<T>
    Get the roles that this permission belongs to as Set
    void
    Remove a role from this permission
    void
    setRoles(RoleSet roleSet)
    Set the roles that this permission belongs to
    <T extends Role>
    void
    setRolesAsSet(Set<T> roles)
    Set the roles that this permission belongs to as Set

    Von 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

      void setRoles(RoleSet roleSet)
      Set the roles that this permission belongs to
      Parameter:
      roleSet - a set of roles
    • addRole

      void addRole(Role role)
      Add a role to this permission
      Parameter:
      role - the role to add
    • removeRole

      void removeRole(Role role)
      Remove a role from this permission
      Parameter:
      role - the role to remove
    • setRolesAsSet

      <T extends Role> void setRolesAsSet(Set<T> roles)
      Set the roles that this permission belongs to as Set
      Typparameter:
      T - Role
      Parameter:
      roles - a set of roles
    • getRolesAsSet

      <T extends Role> Set<T> getRolesAsSet()
      Get the roles that this permission belongs to as Set
      Typparameter:
      T -
      Gibt zurück:
      a set of roles