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