Class TurbinePermissionImpl

    • Constructor Detail

      • TurbinePermissionImpl

        public TurbinePermissionImpl()
    • Method Detail

      • getRoles

        public RoleSet getRoles()
        Get the roles that this permission belongs to
        Specified by:
        getRoles in interface TurbinePermission
        Returns:
        a set of roles
      • setRoles

        public void setRoles​(RoleSet roleSet)
        Set the roles that this permission belongs to
        Specified by:
        setRoles in interface TurbinePermission
        Parameters:
        roleSet - a set of roles
      • addRole

        public void addRole​(Role role)
        Add a role to this permission
        Specified by:
        addRole in interface TurbinePermission
        Parameters:
        role - the role to add
      • removeRole

        public void removeRole​(Role role)
        Remove a role from this permission
        Specified by:
        removeRole in interface TurbinePermission
        Parameters:
        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
        Specified by:
        setRolesAsSet in interface TurbinePermission
        Type Parameters:
        T - Role
        Parameters:
        roles - a set of roles
      • getRolesAsSet

        public <T extends RoleSet<T> getRolesAsSet()
        Get the roles that this permission belongs to as Set
        Specified by:
        getRolesAsSet in interface TurbinePermission
        Returns:
        a set of roles