Package org.forgerock.api.models
Class Create
java.lang.Object
org.forgerock.api.models.Operation
org.forgerock.api.models.Create
Class that represents the Create Operation type in API descriptor.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionprotected voidallocateToResource(Resource.Builder resourceBuilder) Allocates the Create operation type to the given Resource Builder.static Create.Buildercreate()Creates a new builder for Create.booleanstatic CreatefromAnnotation(Create create, boolean instanceOperations, ApiDescription descriptor, Class<?> relativeType) Builds a Create object from the data in the annotation.getMode()Getter of the mode.inthashCode()Informs if operation creates singleton resources.Methods inherited from class org.forgerock.api.models.Operation
getApiErrors, getDescription, getParameters, getStability, getSupportedLocales
-
Method Details
-
getMode
Getter of the mode.- Returns:
- Mode
-
isSingleton
Informs if operation creates singleton resources.- Returns:
trueif operation creates singleton resources andfalseotherwise
-
create
Creates a new builder for Create.- Returns:
- New builder instance
-
allocateToResource
Allocates the Create operation type to the given Resource Builder.- Specified by:
allocateToResourcein classOperation- Parameters:
resourceBuilder- - Resource Builder to add the operation
-
fromAnnotation
public static Create fromAnnotation(Create create, boolean instanceOperations, ApiDescription descriptor, Class<?> relativeType) Builds a Create object from the data in the annotation.- Parameters:
create- Create annotation that holds the datainstanceOperations- True if the resource is performing instance operations.descriptor- The root descriptor to add definitions to.relativeType- The type relative to which schema resources should be resolved.- Returns:
- Create instance
-
equals
-
hashCode
public int hashCode()
-