Class PermissionCheckResponse
java.lang.Object
io.github.primelib.confluence4j.rest.v1.models.PermissionCheckResponse
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 Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedProtected no-args constructor for use by serialization frameworks.PermissionCheckResponse(Boolean hasPermission, List<Map<String, Object>> errors, Map<String, Object> additionalLinks) Constructs a validated instance ofPermissionCheckResponse.Constructs a validated instance ofPermissionCheckResponse. -
Method Summary
Modifier and TypeMethodDescriptionFluent getter for additionalLinks.additionalLinks(Map<String, Object> additionalLinks) Fluent setter for additionalLinks.booleanerrors()Fluent getter for errors.Fluent setter for errors.Gets the value of additionalLinks.Gets the value of errors.Gets the value of hasPermission.inthashCode()Fluent getter for hasPermission.hasPermission(Boolean hasPermission) Fluent setter for hasPermission.voidsetAdditionalLinks(Map<String, Object> additionalLinks) Sets the value of additionalLinks.voidSets the value of errors.voidsetHasPermission(Boolean hasPermission) Sets the value of hasPermission.toString()
-
Field Details
-
hasPermission
-
errors
-
additionalLinks
-
-
Constructor Details
-
PermissionCheckResponse
Constructs a validated instance ofPermissionCheckResponse.- 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 ofPermissionCheckResponse.NOTE: This constructor is not considered stable and may change if the model is updated. Consider using
PermissionCheckResponse(Consumer)instead.- Parameters:
hasPermission- hasPermissionerrors- errorsadditionalLinks- additionalLinks
-
-
Method Details
-
hasPermission
-
hasPermission
Fluent setter for hasPermission.- Parameters:
hasPermission- hasPermission- Returns:
- this
-
getHasPermission
-
setHasPermission
Sets the value of hasPermission.- Parameters:
hasPermission- hasPermission
-
errors
-
errors
Fluent setter for errors.- Parameters:
errors- errors- Returns:
- this
-
getErrors
-
setErrors
-
additionalLinks
-
additionalLinks
Fluent setter for additionalLinks.- Parameters:
additionalLinks- additionalLinks- Returns:
- this
-
getAdditionalLinks
-
setAdditionalLinks
-
equals
-
hashCode
-
toString
-