Package org.forgerock.api.models
Class Read
java.lang.Object
org.forgerock.api.models.Operation
org.forgerock.api.models.Read
Class that represents the Read Operation type in API descriptor.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Builder to help construct the Read. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
allocateToResource
(Resource.Builder resourceBuilder) Allocates the Read operation type to the given Resource Builder.static Read
fromAnnotation
(Read read, ApiDescription descriptor, Class<?> relativeType) Builds a Read object from the data in the read annotation.static Read.Builder
read()
Creates a new builder for Operation.Methods inherited from class org.forgerock.api.models.Operation
equals, getApiErrors, getDescription, getParameters, getStability, getSupportedLocales, hashCode
-
Method Details
-
read
Creates a new builder for Operation.- Returns:
- New builder instance
-
allocateToResource
Allocates the Read operation type to the given Resource Builder.- Specified by:
allocateToResource
in classOperation
- Parameters:
resourceBuilder
- - Resource Builder to add the operation
-
fromAnnotation
Builds a Read object from the data in the read annotation.- Parameters:
read
- Read annotation that holds the datadescriptor
- The root descriptor to add definitions to.relativeType
- The type relative to which schema resources should be resolved.- Returns:
- Read instance
-