java.lang.Object
org.apache.fulcrum.security.entity.impl.SecurityEntityImpl
org.apache.fulcrum.security.model.dynamic.entity.impl.DynamicRoleImpl
Alle implementierten Schnittstellen:
Serializable, Role, SecurityEntity, DynamicRole

public class DynamicRoleImpl extends SecurityEntityImpl implements DynamicRole
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: DynamicRole.java 437451 2006-08-27 20:20:44Z tv $
Autor:
Eric Pugh
Siehe auch:
  • Konstruktordetails

    • DynamicRoleImpl

      public DynamicRoleImpl()
  • Methodendetails

    • getPermissions

      public PermissionSet getPermissions()
      Get the permission that are part of this role
      Angegeben von:
      getPermissions in Schnittstelle DynamicRole
      Gibt zurück:
      a set of permissions
    • getPermissionsAsSet

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

      public void setPermissions(PermissionSet permissionSet)
      Set the permission that are part of this role
      Angegeben von:
      setPermissions in Schnittstelle DynamicRole
      Parameter:
      permissionSet - a set of permissions
    • setPermissionsAsSet

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

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

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

      public GroupSet getGroups()
      Get the groups this role belongs to
      Angegeben von:
      getGroups in Schnittstelle DynamicRole
      Gibt zurück:
      a set of groups
    • setGroups

      public void setGroups(GroupSet groupSet)
      Set the groups this role belongs to
      Angegeben von:
      setGroups in Schnittstelle DynamicRole
      Parameter:
      groupSet - the set of groups
    • removeGroup

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

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

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

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