public final class Action extends Operation implements Comparable<Action>
Modifier and Type | Class and Description |
---|---|
static class |
Action.Builder
Builder class for creating the Action.
|
Modifier and Type | Method and Description |
---|---|
static Action.Builder |
action()
Creates a new builder for Action.
|
protected void |
allocateToResource(Resource.Builder resourceBuilder)
Allocates the Action operation type to the given Resource Builder.
|
int |
compareTo(Action action)
Compares two strings lexicographically.
|
boolean |
equals(Object o) |
static Action |
fromAnnotation(Action action,
Method annotated,
ApiDescription descriptor,
Class<?> relativeType)
Builds an Action object using the data in the annotation.
|
String |
getName()
Getter of the ID.
|
Schema |
getRequest()
Getter of the request.
|
Schema |
getResponse()
Getter of the response.
|
int |
hashCode() |
getApiErrors, getDescription, getParameters, getStability, getSupportedLocales
public String getName()
public Schema getRequest()
public Schema getResponse()
public static Action.Builder action()
protected void allocateToResource(Resource.Builder resourceBuilder)
allocateToResource
in class Operation
resourceBuilder
- - Resource Builder to add the operationpublic static Action fromAnnotation(Action action, Method annotated, ApiDescription descriptor, Class<?> relativeType)
action
- The annotation that holds the data for the built object.annotated
- The action method.descriptor
- The root descriptor to add definitions to.relativeType
- The type relative to which schema resources should be resolved.public int compareTo(Action action)
compareTo
in interface Comparable<Action>
action
- Action to compare to0
if the argument string is equal to
this string; a value less than 0
if this string
is lexicographically less than the string argument; and a
value greater than 0
if this string is
lexicographically greater than the string argument.Copyright © 2010-2018, ForgeRock All Rights Reserved.