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
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilder to help construct the Read. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidallocateToResource(Resource.Builder resourceBuilder) Allocates the Read operation type to the given Resource Builder.static ReadfromAnnotation(Read read, ApiDescription descriptor, Class<?> relativeType) Builds a Read object from the data in the read annotation.static Read.Builderread()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:
allocateToResourcein 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
-