Class SpacePermissionCreate

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

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

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

    • subjects

      protected Subjects96Eb79 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

    • SpacePermissionCreate

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

      @Internal public SpacePermissionCreate(Subjects96Eb79 subjects, OperationCheckResult operation, Boolean anonymousAccess, Boolean unlicensedAccess)
      Constructs a validated instance of SpacePermissionCreate.

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

      Parameters:
      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.
    • SpacePermissionCreate

      protected SpacePermissionCreate()
  • Method Details

    • subjects

      public Subjects96Eb79 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.
    • subjects

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

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

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

      public SpacePermissionCreate 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