Class PermissionCheckResponse

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

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

This object represents the response for the content permission check API. If the user or group does not have permissions, the following errors may be returned: - Group does not have permission to the space - Group does not have permission to the content - User is not allowed to use Confluence - User does not have permission to the space - User does not have permission to the content - Anonymous users are not allowed to use Confluence - Anonymous user does not have permission to the space - Anonymous user does not have permission to the content

  • Field Details

  • Constructor Details

    • PermissionCheckResponse

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

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

      @Internal public PermissionCheckResponse(Boolean hasPermission, List<Map<String,Object>> errors, Map<String,Object> additionalLinks)
      Constructs a validated instance of PermissionCheckResponse.

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

      Parameters:
      hasPermission - hasPermission
      errors - errors
      additionalLinks - additionalLinks
  • Method Details

    • hasPermission

      public Boolean hasPermission()
      Fluent getter for hasPermission.
      Returns:
      hasPermission
    • hasPermission

      public PermissionCheckResponse hasPermission(Boolean hasPermission)
      Fluent setter for hasPermission.
      Parameters:
      hasPermission - hasPermission
      Returns:
      this
    • getHasPermission

      public Boolean getHasPermission()
      Gets the value of hasPermission.
      Returns:
      hasPermission
    • setHasPermission

      public void setHasPermission(Boolean hasPermission)
      Sets the value of hasPermission.
      Parameters:
      hasPermission - hasPermission
    • errors

      public List<Map<String,Object>> errors()
      Fluent getter for errors.
      Returns:
      errors
    • errors

      public PermissionCheckResponse errors(List<Map<String,Object>> errors)
      Fluent setter for errors.
      Parameters:
      errors - errors
      Returns:
      this
    • getErrors

      public List<Map<String,Object>> getErrors()
      Gets the value of errors.
      Returns:
      errors
    • setErrors

      public void setErrors(List<Map<String,Object>> errors)
      Sets the value of errors.
      Parameters:
      errors - errors
    • additionalLinks

      public Map<String,Object> additionalLinks()
      Fluent getter for additionalLinks.
      Returns:
      additionalLinks
    • additionalLinks

      public PermissionCheckResponse additionalLinks(Map<String,Object> additionalLinks)
      Fluent setter for additionalLinks.
      Parameters:
      additionalLinks - additionalLinks
      Returns:
      this
    • getAdditionalLinks

      public Map<String,Object> getAdditionalLinks()
      Gets the value of additionalLinks.
      Returns:
      additionalLinks
    • setAdditionalLinks

      public void setAdditionalLinks(Map<String,Object> additionalLinks)
      Sets the value of additionalLinks.
      Parameters:
      additionalLinks - additionalLinks
    • 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