public class Item
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Item.Operation
Operations describe how values should be applied when updating.
|
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String[] |
SecretAttributes
Item or argument names that can contain passwords that need to
be hidden.
|
| Constructor and Description |
|---|
Item() |
Item(java.lang.String name,
Item.Operation op,
java.lang.Object value) |
Item(java.lang.String name,
java.lang.Object value) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
getArgument(java.lang.String name) |
java.util.Map<java.lang.String,java.lang.Object> |
getArguments() |
boolean |
getBoolean() |
java.lang.String |
getCurrent()
Pseudo property accessor to return the optional current password
argument.
|
java.util.Date |
getExpiration()
Pseudo property accessor to return the optional password expiration
argument.
|
java.lang.String |
getName() |
Item.Operation |
getOperation() |
Result |
getResult() |
java.lang.String |
getScope() |
java.lang.String |
getString() |
java.lang.Object |
getValue() |
static Item |
remove(java.util.List<Item> items,
java.lang.String name)
Remove an item with the given name from a list if it exists.
|
void |
setArgument(java.lang.String name,
java.lang.Object value)
Set an extended connector argument.
|
void |
setArguments(java.util.Map<java.lang.String,java.lang.Object> args)
Set optional extended arguments for the connector.
|
void |
setName(java.lang.String s)
Set the name of the object attribute.
|
void |
setOperation(Item.Operation op)
Set the operation to apply to the attribute.
|
void |
setResult(Result result)
Set the result of this request.
|
void |
setScope(java.lang.String s)
Set the scope of the attribute request.
|
void |
setValue(java.lang.Object o)
Set the value to apply to the attribute.
|
boolean |
toBoolean(java.lang.Object o)
Coerce the object into a boolean value.
|
java.lang.String |
toJson() |
void |
toJson(JsonBuilder jb)
Render the Item as a JSON string for logging and debugging.
|
public static java.lang.String[] SecretAttributes
public Item()
public Item(java.lang.String name,
java.lang.Object value)
public Item(java.lang.String name,
Item.Operation op,
java.lang.Object value)
public void setScope(java.lang.String s)
public java.lang.String getScope()
public void setName(java.lang.String s)
public java.lang.String getName()
public void setOperation(Item.Operation op)
public Item.Operation getOperation()
public void setValue(java.lang.Object o)
public java.lang.Object getValue()
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 static Item remove(java.util.List<Item> items, java.lang.String name)
public boolean toBoolean(java.lang.Object o)
o - object to coerce to boolean valuepublic boolean getBoolean()
public java.lang.String getString()
public void setArgument(java.lang.String name,
java.lang.Object value)
public java.lang.Object getArgument(java.lang.String name)
name - name of the argument to returnpublic java.lang.String getCurrent()
public java.util.Date getExpiration()
public void toJson(JsonBuilder jb)
public java.lang.String toJson()