Package org.forgerock.api.models
Class Operation
java.lang.Object
org.forgerock.api.models.Operation
Class that represents the Operation type in API descriptor.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Operation.Builder<T extends Operation.Builder<T>>
Builder to help construct the Operation. -
Constructor Summary
ModifierConstructorDescriptionprotected
Operation
(Operation.Builder builder) Protected constructor of the Operation. -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract void
allocateToResource
(Resource.Builder resourceBuilder) Allocates the operation by operation type to the given Resource Builder by calling the corresonding method by type.boolean
ApiError[]
Getter of the error array.Getter of the description.Getter of the parameters array.Getter of Operation stability.String[]
Getter of the supported locales array.int
hashCode()
-
Constructor Details
-
Operation
Protected constructor of the Operation.- Parameters:
builder
- Operation Builder
-
-
Method Details
-
getDescription
Getter of the description.- Returns:
- Description
-
getSupportedLocales
Getter of the supported locales array.- Returns:
- Supported locales
-
getApiErrors
Getter of the error array.- Returns:
- ApiError array
-
getParameters
Getter of the parameters array.- Returns:
- Parameters
-
getStability
Getter of Operation stability.- Returns:
- Stability or
null
which suggestsStability.STABLE
(default).
-
equals
-
hashCode
public int hashCode() -
allocateToResource
Allocates the operation by operation type to the given Resource Builder by calling the corresonding method by type.- Parameters:
resourceBuilder
- - Resource Builder to add the operation
-