All Implemented Interfaces:
Serializable, Role, SecurityEntity, TurbineRole, TurbineUserGroupRoleEntity

public class TurbineRoleImpl extends AbstractTurbineSecurityEntityImpl implements TurbineRole
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: TurbineRole.java 437451 2006-08-27 20:20:44Z tv $
Author:
Eric Pugh
See Also:
  • Constructor Details

    • TurbineRoleImpl

      public TurbineRoleImpl()
  • Method Details

    • getPermissions

      public PermissionSet getPermissions()
      Get the permission that are part of this role
      Specified by:
      getPermissions in interface TurbineRole
      Returns:
      a set of permissions
    • getPermissionsAsSet

      public <T extends Permission> Set<T> getPermissionsAsSet()
      Get the permission that are part of this role as Set
      Specified by:
      getPermissionsAsSet in interface TurbineRole
      Returns:
      a set of permissions
    • setPermissions

      public void setPermissions(PermissionSet permissionSet)
      Set the permission that are part of this role
      Specified by:
      setPermissions in interface TurbineRole
      Parameters:
      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
      Specified by:
      setPermissionsAsSet in interface TurbineRole
      Type Parameters:
      T - Permission
      Parameters:
      permissions - a set of permissions
    • addPermission

      public void addPermission(Permission permission)
      This method should only be used by a RoleManager. Not directly.
      Specified by:
      addPermission in interface TurbineRole
      Parameters:
      permission - the permission to add
    • removePermission

      public void removePermission(Permission permission)
      This method should only be used by a RoleManager. Not directly.
      Specified by:
      removePermission in interface TurbineRole
      Parameters:
      permission - the permission to remove