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