|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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 . |
Map<String,Object> |
getOptions()
Returns a mutable reference of the options map. |
OperationOptionsBuilder |
setAttributesToGet(Collection<String> attrNames)
Sets the OperationOptions.OP_ATTRIBUTES_TO_GET option. |
OperationOptionsBuilder |
setAttributesToGet(String... attrNames)
Sets the OperationOptions.OP_ATTRIBUTES_TO_GET option. |
OperationOptionsBuilder |
setContainer(QualifiedUid container)
Convenience method to set OperationOptions.OP_CONTAINER |
OperationOptionsBuilder |
setOption(String name,
Object value)
Sets a given option and a value for that option. |
OperationOptionsBuilder |
setRunAsUser(String user)
Set the run as user option. |
OperationOptionsBuilder |
setRunWithPassword(GuardedString password)
Set the run with password option. |
OperationOptionsBuilder |
setScope(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(String name, 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(String... attrNames)
OperationOptions.OP_ATTRIBUTES_TO_GET
option.
attrNames
- list of Attribute
names.public OperationOptionsBuilder setAttributesToGet(Collection<String> attrNames)
OperationOptions.OP_ATTRIBUTES_TO_GET
option.
attrNames
- list of Attribute
names.public OperationOptionsBuilder setRunWithPassword(GuardedString password)
public OperationOptionsBuilder setRunAsUser(String user)
public OperationOptionsBuilder setScope(String scope)
OperationOptions.OP_SCOPE
scope
- The scope. May not be null.
public OperationOptionsBuilder setContainer(QualifiedUid container)
OperationOptions.OP_CONTAINER
container
- The container. May not be null.
public Map<String,Object> getOptions()
public OperationOptions build()
OperationOptions
.
OperationOptions
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |