Class GetContentByIDRestrictionV1OperationSpec
java.lang.Object
io.github.primelib.confluence4j.rest.v1.operations.GetContentByIDRestrictionV1OperationSpec
@Generated("io.github.primelib.primecodegen")
public class GetContentByIDRestrictionV1OperationSpec
extends Object
GetContentByIDRestrictionV1
Returns the restrictions on a piece of content. **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic Booleanallows to disable validation of the spec, use with care! -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a validated instance ofGetContentByIDRestrictionV1OperationSpec. -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanexpand()A multi-value parameter indicating which properties of the content restrictions to expand.A multi-value parameter indicating which properties of the content restrictions to expand.inthashCode()@NonNull Stringid()The ID of the content to be queried for its restrictions.The ID of the content to be queried for its restrictions.@Nullable Integerlimit()The maximum number of users and the maximum number of groups, in the returned restrictions, to return per page.The maximum number of users and the maximum number of groups, in the returned restrictions, to return per page.@Nullable Integerstart()The starting index of the users and groups in the returned restrictions.The starting index of the users and groups in the returned restrictions.toString()voidvalidate()Validates the Spec, will throw a exception if required parameters are missing
-
Field Details
-
VALIDATION_ENABLED
allows to disable validation of the spec, use with care!
-
-
Constructor Details
-
GetContentByIDRestrictionV1OperationSpec
@Internal public GetContentByIDRestrictionV1OperationSpec(Consumer<GetContentByIDRestrictionV1OperationSpec> spec) Constructs a validated instance ofGetContentByIDRestrictionV1OperationSpec.- Parameters:
spec- the specification to process
-
-
Method Details
-
validate
public void validate()Validates the Spec, will throw a exception if required parameters are missing- Throws:
NullPointerException
-
id
The ID of the content to be queried for its restrictions. -
expand
A multi-value parameter indicating which properties of the content restrictions to expand. By default, the following objects are expanded: `restrictions.user`, `restrictions.group`. - `restrictions.user` returns the piece of content that the restrictions are applied to. - `restrictions.group` returns the piece of content that the restrictions are applied to. - `content` returns the piece of content that the restrictions are applied to. -
start
The starting index of the users and groups in the returned restrictions. -
limit
The maximum number of users and the maximum number of groups, in the returned restrictions, to return per page. Note, this may be restricted by fixed system limits. -
id
The ID of the content to be queried for its restrictions.- Returns:
this.
-
expand
A multi-value parameter indicating which properties of the content restrictions to expand. By default, the following objects are expanded: `restrictions.user`, `restrictions.group`. - `restrictions.user` returns the piece of content that the restrictions are applied to. - `restrictions.group` returns the piece of content that the restrictions are applied to. - `content` returns the piece of content that the restrictions are applied to.- Returns:
this.
-
start
The starting index of the users and groups in the returned restrictions.- Returns:
this.
-
limit
The maximum number of users and the maximum number of groups, in the returned restrictions, to return per page. Note, this may be restricted by fixed system limits.- Returns:
this.
-
equals
-
canEqual
-
hashCode
-
toString
-