|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
org.identityconnectors.framework.common.objects.OperationOptionsBuilder
public final class OperationOptionsBuilder
Builder for OperationOptions.
| Constructor Summary | |
|---|---|
OperationOptionsBuilder()Create a builder with an empty set of options. |
|
OperationOptionsBuilder(OperationOptions options)Create a builder from an existing set of options. |
|
| Method Summary | |
|---|---|
OperationOptions |
build()Creates the OperationOptions. |
java.util.Map<java.lang.String,java.lang.Object> |
getOptions()Returns a mutable reference of the options map. |
OperationOptionsBuilder |
setAttributesToGet(java.util.Collection<java.lang.String> attrNames)Sets the OperationOptions.OP_ATTRIBUTES_TO_GET option. |
OperationOptionsBuilder |
setAttributesToGet(java.lang.String... attrNames)Sets the OperationOptions.OP_ATTRIBUTES_TO_GET option. |
OperationOptionsBuilder |
setContainer(QualifiedUid container)Convenience method to set OperationOptions.OP_CONTAINER |
OperationOptionsBuilder |
setOption(java.lang.String name, java.lang.Object value)Sets a given option and a value for that option. |
OperationOptionsBuilder |
setRunAsUser(java.lang.String user)Set the run as user option. |
OperationOptionsBuilder |
setRunWithPassword(GuardedString password)Set the run with password option. |
OperationOptionsBuilder |
setScope(java.lang.String scope)Convenience method to set OperationOptions.OP_SCOPE |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OperationOptionsBuilder()
public OperationOptionsBuilder(OperationOptions options)
options - The existing set of options. Must not be null.| Method Detail |
|---|
public OperationOptionsBuilder setOption(java.lang.String name,
java.lang.Object value)
name - The name of the optionvalue - The value of the option. Must be one of the types that we can serialize. See ObjectSerializerFactory for a list of supported types.public OperationOptionsBuilder setAttributesToGet(java.lang.String... attrNames)
OperationOptions.OP_ATTRIBUTES_TO_GET option.attrNames - list of Attribute names.public OperationOptionsBuilder setAttributesToGet(java.util.Collection<java.lang.String> attrNames)
OperationOptions.OP_ATTRIBUTES_TO_GET option.attrNames - list of Attribute names.public OperationOptionsBuilder setRunWithPassword(GuardedString password)
public OperationOptionsBuilder setRunAsUser(java.lang.String user)
public OperationOptionsBuilder setScope(java.lang.String scope)
OperationOptions.OP_SCOPEscope - The scope. May not be null.public OperationOptionsBuilder setContainer(QualifiedUid container)
OperationOptions.OP_CONTAINERcontainer - The container. May not be null.public java.util.Map<java.lang.String,java.lang.Object> getOptions()
public OperationOptions build()
OperationOptions.OperationOptions
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||