Class PermissionSubject

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

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

The user or group that the permission applies to.

  • Field Details

    • type

      protected String type
    • identifier

      protected String identifier
      for `type=user`, identifier should be user's accountId or `anonymous` for anonymous users for `type=group`, identifier should be the groupId.
  • Constructor Details

    • PermissionSubject

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

      @Internal protected PermissionSubject()
      Protected no-args constructor for use by serialization frameworks.
    • PermissionSubject

      @Internal public PermissionSubject(String type, String identifier)
      Constructs a validated instance of PermissionSubject.

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

      Parameters:
      type - type
      identifier - for `type=user`, identifier should be user's accountId or `anonymous` for anonymous users for `type=group`, identifier should be the groupId.
  • Method Details

    • type

      public String type()
      Fluent getter for type.
      Returns:
      type
    • type

      public PermissionSubject type(String type)
      Fluent setter for type.
      Parameters:
      type - type
      Returns:
      this
    • getType

      public String getType()
      Gets the value of type.
      Returns:
      type
    • setType

      public void setType(String type)
      Sets the value of type.
      Parameters:
      type - type
    • identifier

      public String identifier()
      Fluent getter for identifier.

      for `type=user`, identifier should be user's accountId or `anonymous` for anonymous users for `type=group`, identifier should be the groupId.

      Returns:
      identifier
    • identifier

      public PermissionSubject identifier(String identifier)
      Fluent setter for identifier.

      for `type=user`, identifier should be user's accountId or `anonymous` for anonymous users for `type=group`, identifier should be the groupId.

      Parameters:
      identifier - identifier
      Returns:
      this
    • getIdentifier

      public String getIdentifier()
      Gets the value of identifier.

      for `type=user`, identifier should be user's accountId or `anonymous` for anonymous users for `type=group`, identifier should be the groupId.

      Returns:
      identifier
    • setIdentifier

      public void setIdentifier(String identifier)
      Sets the value of identifier.

      for `type=user`, identifier should be user's accountId or `anonymous` for anonymous users for `type=group`, identifier should be the groupId.

      Parameters:
      identifier - identifier
    • equals

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

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

      public String toString()
      Overrides:
      toString in class Object