Class SpacePermission

java.lang.Object
io.github.primelib.confluence4j.rest.v1.models.SpacePermission

@Generated("io.github.primelib.primecodegen") public class SpacePermission extends Object
SpacePermission

This object represents a permission for given space. Permissions consist of at least one operation object with an accompanying subjects object. The following combinations of `operation` and `targetType` values are valid for the `operation` object: - 'create': 'page', 'blogpost', 'comment', 'attachment' - 'read': 'space' - 'delete': 'page', 'blogpost', 'comment', 'attachment' - 'export': 'space' - 'administer': 'space'

  • Field Details

    • id

      protected Long id
    • subjects

      protected Subjects subjects
      The users and/or groups that the permission applies to.
    • operation

      protected OperationCheckResult operation
      An operation and the target entity that it applies to, e.g. create page.
    • anonymousAccess

      protected Boolean anonymousAccess
      Grant anonymous users permission to use the operation.
    • unlicensedAccess

      protected Boolean unlicensedAccess
      Grants access to unlicensed users from JIRA Service Desk when used with the 'read space' operation.
  • Constructor Details

    • SpacePermission

      public SpacePermission(Consumer<SpacePermission> spec)
      Constructs a validated instance of SpacePermission.
      Parameters:
      spec - the specification to process
    • SpacePermission

      @Internal public SpacePermission(Long id, Subjects subjects, OperationCheckResult operation, Boolean anonymousAccess, Boolean unlicensedAccess)
      Constructs a validated instance of SpacePermission.

      NOTE: This constructor is not considered stable and may change if the model is updated. Consider using SpacePermission(Consumer) instead.

      Parameters:
      id - id
      subjects - The users and/or groups that the permission applies to.
      operation - An operation and the target entity that it applies to, e.g. create page.
      anonymousAccess - Grant anonymous users permission to use the operation.
      unlicensedAccess - Grants access to unlicensed users from JIRA Service Desk when used with the 'read space' operation.
    • SpacePermission

      protected SpacePermission()
  • Method Details

    • id

      public Long id()
    • subjects

      public Subjects subjects()
      The users and/or groups that the permission applies to.
    • operation

      public OperationCheckResult operation()
      An operation and the target entity that it applies to, e.g. create page.
    • anonymousAccess

      public Boolean anonymousAccess()
      Grant anonymous users permission to use the operation.
    • unlicensedAccess

      public Boolean unlicensedAccess()
      Grants access to unlicensed users from JIRA Service Desk when used with the 'read space' operation.
    • id

      public SpacePermission id(Long id)
      Returns:
      this.
    • subjects

      public SpacePermission subjects(Subjects subjects)
      The users and/or groups that the permission applies to.
      Returns:
      this.
    • operation

      public SpacePermission operation(OperationCheckResult operation)
      An operation and the target entity that it applies to, e.g. create page.
      Returns:
      this.
    • anonymousAccess

      public SpacePermission anonymousAccess(Boolean anonymousAccess)
      Grant anonymous users permission to use the operation.
      Returns:
      this.
    • unlicensedAccess

      public SpacePermission unlicensedAccess(Boolean unlicensedAccess)
      Grants access to unlicensed users from JIRA Service Desk when used with the 'read space' operation.
      Returns:
      this.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object