public class Request
extends java.lang.Object
Usually the target is a user account, but it could be a group or some other object managed by this connector.
| Modifier and Type | Class and Description |
|---|---|
static class |
Request.Operation
Operations specify what is to be done to the object.
|
| Constructor and Description |
|---|
Request() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Item item)
Add an item to the request.
|
java.lang.Object |
getArgument(java.lang.String name) |
java.util.Map<java.lang.String,java.lang.Object> |
getArguments() |
Request.Operation |
getEffectiveOperation() |
java.lang.String |
getId() |
java.util.List<Item> |
getItems() |
Request.Operation |
getOperation() |
java.lang.String |
getResource() |
Result |
getResult() |
java.util.List<Item> |
getSchemaItems() |
java.lang.String |
getString(java.lang.String name) |
java.util.List<Item> |
getSystemItems() |
java.lang.String |
getTrackingId() |
java.lang.String |
getType() |
void |
setArguments(java.util.Map<java.lang.String,java.lang.Object> args)
Set extended request-specific arguments for the connector.
|
void |
setId(java.lang.String id)
Set the unique identifier of the target object.
|
void |
setItems(java.util.List<Item> items)
Set the list of items to apply to the object.
|
void |
setOperation(Request.Operation op)
Set the operation to apply to the object.
|
void |
setResource(java.lang.String res)
Set the name of the resource owning the object.
|
void |
setResult(Result result)
Set the result of this request.
|
void |
setTrackingId(java.lang.String trackingId)
Set the trackingId of this request.
|
void |
setType(java.lang.String type)
Set the object type.
|
java.lang.String |
toJson() |
void |
toJson(JsonBuilder jb)
Render the Item as a JSON string for logging and debugging.
|
public void setType(java.lang.String type)
public java.lang.String getType()
public void setOperation(Request.Operation op)
public Request.Operation getOperation()
public void setResource(java.lang.String res)
public java.lang.String getResource()
public void setId(java.lang.String id)
public java.lang.String getId()
public void setItems(java.util.List<Item> items)
public java.util.List<Item> getItems()
public void setArguments(java.util.Map<java.lang.String,java.lang.Object> args)
public java.util.Map<java.lang.String,java.lang.Object> getArguments()
public void setResult(Result result)
public Result getResult()
public java.lang.String getTrackingId()
public void setTrackingId(java.lang.String trackingId)
public java.lang.Object getArgument(java.lang.String name)
public java.lang.String getString(java.lang.String name)
public Request.Operation getEffectiveOperation()
public void add(Item item)
public java.util.List<Item> getSchemaItems()
This is a convenience for connectors that do not process items one at a time and instead just like to convert them all to a Map and pass them along.
public java.util.List<Item> getSystemItems()
public void toJson(JsonBuilder jb)
public java.lang.String toJson()