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 class
Operation.Builder<T extends Operation.Builder<T>>
Builder to help construct the Operation.
-
Constructor Summary
Constructors Modifier Constructor Description protected
Operation(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 void
allocateToResource(Resource.Builder resourceBuilder)
Allocates the operation by operation type to the given Resource Builder by calling the corresonding method by type.boolean
equals(Object o)
ApiError[]
getApiErrors()
Getter of the error array.LocalizableString
getDescription()
Getter of the description.Parameter[]
getParameters()
Getter of the parameters array.Stability
getStability()
Getter of Operation stability.String[]
getSupportedLocales()
Getter of the supported locales array.int
hashCode()
-
-
-
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
null
which 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
-
-