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