Interface LifeCyclePolicyAccessControlEntry


public interface LifeCyclePolicyAccessControlEntry
Represents a single access control entry for a LifeCyclePolicy
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    fromAccessControlEntry(org.opencastproject.security.api.AccessControlEntry accessControlEntry)
    Populates this entry from an AccessControlEntry
    Gets the action this entry allows or denies
    long
    Gets the entry's identifier
    Gets the role this entry applies to
    boolean
    Returns whether this entry allows or denies the action
    void
    setAction(String action)
    Sets the action this entry allows or denies
    void
    setAllow(boolean allow)
    Sets whether this entry allows or denies the action
    void
    setId(long id)
    Sets the entry's identifier
    void
    Sets the role this entry applies to
    org.opencastproject.security.api.AccessControlEntry
    Converts this entry to an AccessControlEntry
  • Method Details

    • getId

      long getId()
      Gets the entry's identifier
      Returns:
      the entry identifier
    • setId

      void setId(long id)
      Sets the entry's identifier
      Parameters:
      id - the entry identifier
    • isAllow

      boolean isAllow()
      Returns whether this entry allows or denies the action
      Returns:
      true if the action is allowed
    • setAllow

      void setAllow(boolean allow)
      Sets whether this entry allows or denies the action
      Parameters:
      allow - true if the action is allowed
    • getRole

      String getRole()
      Gets the role this entry applies to
      Returns:
      the role
    • setRole

      void setRole(String role)
      Sets the role this entry applies to
      Parameters:
      role - the role
    • getAction

      String getAction()
      Gets the action this entry allows or denies
      Returns:
      the action
    • setAction

      void setAction(String action)
      Sets the action this entry allows or denies
      Parameters:
      action - the action
    • toAccessControlEntry

      org.opencastproject.security.api.AccessControlEntry toAccessControlEntry()
      Converts this entry to an AccessControlEntry
      Returns:
      the converted access control entry
    • fromAccessControlEntry

      void fromAccessControlEntry(org.opencastproject.security.api.AccessControlEntry accessControlEntry)
      Populates this entry from an AccessControlEntry
      Parameters:
      accessControlEntry - the access control entry to populate from