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
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
allocateToResource
(Resource.Builder resourceBuilder) Allocates the Create operation type to the given Resource Builder.static Create.Builder
create()
Creates a new builder for Create.boolean
static Create
fromAnnotation
(Create create, boolean instanceOperations, ApiDescription descriptor, Class<?> relativeType) Builds a Create object from the data in the annotation.getMode()
Getter of the mode.int
hashCode()
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:
true
if operation creates singleton resources andfalse
otherwise
-
create
Creates a new builder for Create.- Returns:
- New builder instance
-
allocateToResource
Allocates the Create operation type to the given Resource Builder.- Specified by:
allocateToResource
in 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()
-