Schnittstelle DynamicRole

Alle Superschnittstellen:
Role, SecurityEntity, Serializable
Alle bekannten Implementierungsklassen:
DynamicRoleImpl

public interface DynamicRole extends Role
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
  • Methodendetails

    • getPermissions

      PermissionSet getPermissions()
      Get the permission that are part of this role
      Gibt zurück:
      a set of permissions
    • getPermissionsAsSet

      <T extends Permission> Set<T> getPermissionsAsSet()
      Get the permission that are part of this role as Set
      Gibt zurück:
      a set of permissions
    • setPermissions

      void setPermissions(PermissionSet permissionSet)
      Set the permission that are part of this role
      Parameter:
      permissionSet - a set of permissions
    • setPermissionsAsSet

      <T extends Permission> void setPermissionsAsSet(Set<T> permissions)
      Set the permission that are part of this role as Set
      Parameter:
      permissions - a set of permissions
    • addPermission

      void addPermission(Permission permission)
      This method should only be used by a RoleManager. Not directly.
      Parameter:
      permission - the Permission to add
    • removePermission

      void removePermission(Permission permission)
      This method should only be used by a RoleManager. Not directly.
      Parameter:
      permission - the Permission to remove
    • getGroups

      GroupSet getGroups()
      Get the groups this role belongs to
      Gibt zurück:
      a set of groups
    • setGroups

      void setGroups(GroupSet groups)
      Set the groups this role belongs to
      Parameter:
      groups - the set of groups
    • removeGroup

      void removeGroup(Group group)
      This method should only be used by a RoleManager. Not directly.
      Parameter:
      group - the Group to remove
    • addGroup

      void addGroup(Group group)
      This method should only be used by a RoleManager. Not directly.
      Parameter:
      group - the Group to add
    • setGroupsAsSet

      <T extends Group> void setGroupsAsSet(Set<T> groups)
      Set the groups this role belongs to as a Set
      Parameter:
      groups - the set of groups
    • getGroupsAsSet

      <T extends Group> Set<T> getGroupsAsSet()
      Get the groups this role belongs to as a Set
      Gibt zurück:
      a set of groups