Package org.forgerock.api.models
Class Operation
- java.lang.Object
-
- org.forgerock.api.models.Operation
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOperation.Builder<T extends Operation.Builder<T>>Builder to help construct the Operation.
-
Constructor Summary
Constructors Modifier Constructor Description protectedOperation(Operation.Builder builder)Protected constructor of the Operation.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract voidallocateToResource(Resource.Builder resourceBuilder)Allocates the operation by operation type to the given Resource Builder by calling the corresonding method by type.booleanequals(Object o)ApiError[]getApiErrors()Getter of the error array.LocalizableStringgetDescription()Getter of the description.Parameter[]getParameters()Getter of the parameters array.StabilitygetStability()Getter of Operation stability.String[]getSupportedLocales()Getter of the supported locales array.inthashCode()
-
-
-
Constructor Detail
-
Operation
protected Operation(Operation.Builder builder)
Protected constructor of the Operation.- Parameters:
builder- Operation Builder
-
-
Method Detail
-
getDescription
public LocalizableString getDescription()
Getter of the description.- Returns:
- Description
-
getSupportedLocales
public String[] getSupportedLocales()
Getter of the supported locales array.- Returns:
- Supported locales
-
getApiErrors
public ApiError[] getApiErrors()
Getter of the error array.- Returns:
- ApiError array
-
getParameters
public Parameter[] getParameters()
Getter of the parameters array.- Returns:
- Parameters
-
getStability
public Stability getStability()
Getter of Operation stability.- Returns:
- Stability or
nullwhich suggestsStability.STABLE(default).
-
allocateToResource
protected abstract void allocateToResource(Resource.Builder resourceBuilder)
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
-
-