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
Nested ClassesModifier and TypeClassDescriptionstatic classOperation.Builder<T extends Operation.Builder<T>>Builder to help construct the Operation. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedOperation(Operation.Builder builder) Protected constructor of the Operation. -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voidallocateToResource(Resource.Builder resourceBuilder) Allocates the operation by operation type to the given Resource Builder by calling the corresonding method by type.booleanApiError[]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.inthashCode()
-
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
nullwhich 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
-