Class OperationOptionsBuilder
java.lang.Object
org.identityconnectors.framework.common.objects.OperationOptionsBuilder
Builder for 
OperationOptions.- 
Constructor Summary
ConstructorsConstructorDescriptionCreate a builder with an empty set of options.OperationOptionsBuilder(OperationOptions options) Create a builder from an existing set of options. - 
Method Summary
Modifier and TypeMethodDescriptionbuild()Creates theOperationOptions.static OperationOptionsBuildercreate()Create a builder with an empty set of options.Returns a mutable reference of the options map.setAttributesToGet(String... attrNames) Sets theOperationOptions.OP_ATTRIBUTES_TO_GEToption.setAttributesToGet(Collection<String> attrNames) Sets theOperationOptions.OP_ATTRIBUTES_TO_GEToption.setContainer(QualifiedUid container) Convenience method to setOperationOptions.OP_CONTAINERSets a given option and a value for that option.setPagedResultsCookie(String pagedResultsCookie) Convenience method to setOperationOptions.OP_PAGED_RESULTS_COOKIEsetPagedResultsOffset(Integer pagedResultsOffset) Convenience method to setOperationOptions.OP_PAGED_RESULTS_OFFSETsetPageSize(Integer pageSize) Convenience method to setOperationOptions.OP_PAGE_SIZEsetRunAsUser(String user) Set the run as user option.setRunWithPassword(GuardedString password) Set the run with password option.Convenience method to setOperationOptions.OP_SCOPEsetSortKeys(List<SortKey> sortKeys) Convenience method to setOperationOptions.OP_SORT_KEYSsetSortKeys(SortKey... sortKeys) Convenience method to setOperationOptions.OP_SORT_KEYSSets the policy for calculating the total number of paged results. 
- 
Constructor Details
- 
OperationOptionsBuilder
public OperationOptionsBuilder()Create a builder with an empty set of options. - 
OperationOptionsBuilder
Create a builder from an existing set of options.- Parameters:
 options- The existing set of options. Must not be null.
 
 - 
 - 
Method Details
- 
create
Create a builder with an empty set of options.- Returns:
 - new and empty builder
 - Since:
 - 1.5
 
 - 
setOption
Sets a given option and a value for that option.- Parameters:
 name- The name of the optionvalue- The value of the option. Must be one of the types that we can serialize. SeeObjectSerializerFactoryfor a list of supported types.
 - 
setAttributesToGet
Sets theOperationOptions.OP_ATTRIBUTES_TO_GEToption.- Parameters:
 attrNames- list ofAttributenames.
 - 
setAttributesToGet
Sets theOperationOptions.OP_ATTRIBUTES_TO_GEToption.- Parameters:
 attrNames- list ofAttributenames.
 - 
setRunWithPassword
Set the run with password option. - 
setRunAsUser
Set the run as user option. - 
setScope
Convenience method to setOperationOptions.OP_SCOPE- Parameters:
 scope- The scope. May not be null.- Returns:
 - A this reference to allow chaining
 
 - 
setContainer
Convenience method to setOperationOptions.OP_CONTAINER- Parameters:
 container- The container. May not be null.- Returns:
 - A this reference to allow chaining
 
 - 
setPagedResultsCookie
Convenience method to setOperationOptions.OP_PAGED_RESULTS_COOKIE- Parameters:
 pagedResultsCookie- The pagedResultsCookie. May not be null.- Returns:
 - A this reference to allow chaining
 - Since:
 - 1.4
 
 - 
setTotalPagedResultsPolicy
Sets the policy for calculating the total number of paged results. If no count policy is supplied or paged results are not requested a default ofSearchResult.CountPolicy.NONEwill be used. This will result in no count being performed and no overhead incurred.- Parameters:
 policy- The policy used to calculate total paged results- Returns:
 - A this reference to allow chaining
 - Since:
 - 1.5
 - See Also:
 
 - 
setPagedResultsOffset
Convenience method to setOperationOptions.OP_PAGED_RESULTS_OFFSET- Parameters:
 pagedResultsOffset- The pagedResultsOffset. May not be null.- Returns:
 - A this reference to allow chaining
 - Since:
 - 1.4
 
 - 
setPageSize
Convenience method to setOperationOptions.OP_PAGE_SIZE- Parameters:
 pageSize- The pageSize. May not be null.- Returns:
 - A this reference to allow chaining
 - Since:
 - 1.4
 
 - 
setSortKeys
Convenience method to setOperationOptions.OP_SORT_KEYS- Parameters:
 sortKeys- The sort keys. May not be null.- Returns:
 - A this reference to allow chaining
 - Since:
 - 1.4
 
 - 
setSortKeys
Convenience method to setOperationOptions.OP_SORT_KEYS- Parameters:
 sortKeys- The sort keys. May not be null.- Returns:
 - A this reference to allow chaining
 - Since:
 - 1.4
 
 - 
getOptions
Returns a mutable reference of the options map.- Returns:
 - A mutable reference of the options map.
 
 - 
build
Creates theOperationOptions.- Returns:
 - The newly-created 
OperationOptions 
 
 -