Class OperationOptions
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Determines which attributes to retrieve duringSearchApiOp
andSyncApiOp
.static final String
An option to use withSearchApiOp
that specifies the container under which to perform the search.static final String
An option to specify whether aBatchApiOp
should abort processing on the first error encountered in the batch.static final String
An option to use withSearchApiOp
that specifies the requested page results page size.static final String
An option to use withSearchApiOp
that specifies an opaque cookie which is used by the connector to track its position in the set of query results.static final String
An option to use withSearchApiOp
that specifies the index within the result set of the first result which should be returned.static final String
An option to instruct a connector that batched operations must be executed in serial fashion where possible/applicable.static final String
An option that specifies an account under which to execute the script/operation.static final String
An option to use withScriptOnResourceApiOp
and possibly others that specifies a password under which to execute the script/operation.static final String
An option to use withSearchApiOp
(in conjunction withOP_CONTAINER
) that specifies how far beneath the specified container to search.static final String
An option to use withSearchApiOp
that specifies the sort keys which should be used for ordering theConnectorObject
returned by search request.static final String
An option to use withSearchApiOp
that specifies the policy used for calculating the total number of paged results.static final String
A value ofOP_SCOPE
that indicates to search for the specified container object itself.static final String
A value ofOP_SCOPE
that indicates to search for objects that the specified container directly contains.static final String
A value ofOP_SCOPE
that indicates to search for objects that the specified container directly or indirectly contains. -
Constructor Summary
ConstructorDescriptionOperationOptions
(Map<String, Object> operationOptions) Public only for serialization; please useOperationOptionsBuilder
. -
Method Summary
Modifier and TypeMethodDescriptionString[]
Get the string array of attribute names to return in the object.Convenience method that returnsOP_CONTAINER
.boolean
Returns the state of the failOnError option; defaults tofalse
.Returns a map of options.Returns the opaque cookie which is used by the Connector to track its position in the set of query results.Returns the index within the result set of the first result which should be returned.Returns the requested page results page size or0
if paged results are not required.boolean
Return the state of the allowParallel option; defaults tofalse
.Get the account to run the operation as..Get the password to run the operation as..getScope()
Convenience method that returnsOP_SCOPE
.SortKey[]
Returns the sort keys which should be used for ordering theConnectorObject
s returned by this search request.Returns theSearchResult.CountPolicy
used to calculateSearchResult.getTotalPagedResults()
.toString()
Add basic debugging of internal data.
-
Field Details
-
OP_SCOPE
An option to use withSearchApiOp
(in conjunction withOP_CONTAINER
) that specifies how far beneath the specified container to search. Must be one of the following values:- See Also:
-
SCOPE_OBJECT
A value ofOP_SCOPE
that indicates to search for the specified container object itself.- See Also:
-
SCOPE_ONE_LEVEL
A value ofOP_SCOPE
that indicates to search for objects that the specified container directly contains.- See Also:
-
SCOPE_SUBTREE
A value ofOP_SCOPE
that indicates to search for objects that the specified container directly or indirectly contains.- See Also:
-
OP_CONTAINER
An option to use withSearchApiOp
that specifies the container under which to perform the search. Must be of typeQualifiedUid
. Should be implemented for those object classes whoseObjectClassInfo.isContainer()
returns true.- See Also:
-
OP_RUN_AS_USER
An option that specifies an account under which to execute the script/operation. The specified account will appear to have performed any action that the script/operation performs.Check the javadoc for a particular connector to see whether that connector supports this option.
- See Also:
-
OP_RUN_WITH_PASSWORD
An option to use withScriptOnResourceApiOp
and possibly others that specifies a password under which to execute the script/operation.- See Also:
-
OP_ATTRIBUTES_TO_GET
Determines which attributes to retrieve duringSearchApiOp
andSyncApiOp
.This option overrides the default behavior, which is for the connector to return exactly the set of attributes that are identified as
returned by default
in the schema for that connector.This option allows a client application to request additional attributes that would not otherwise not be returned (generally because such attributes are more expensive for a connector to fetch and to format) and/or to request only a subset of the attributes that would normally be returned.
- See Also:
-
OP_PAGED_RESULTS_COOKIE
An option to use withSearchApiOp
that specifies an opaque cookie which is used by the connector to track its position in the set of query results.- Since:
- 1.4
- See Also:
-
OP_TOTAL_PAGED_RESULTS_POLICY
An option to use withSearchApiOp
that specifies the policy used for calculating the total number of paged results.- Since:
- 1.5
- See Also:
-
OP_PAGED_RESULTS_OFFSET
An option to use withSearchApiOp
that specifies the index within the result set of the first result which should be returned.- Since:
- 1.4
- See Also:
-
OP_PAGE_SIZE
An option to use withSearchApiOp
that specifies the requested page results page size.- Since:
- 1.4
- See Also:
-
OP_SORT_KEYS
An option to use withSearchApiOp
that specifies the sort keys which should be used for ordering theConnectorObject
returned by search request.- Since:
- 1.4
- See Also:
-
OP_FAIL_ON_ERROR
An option to specify whether aBatchApiOp
should abort processing on the first error encountered in the batch. Default behavior is to continue processing in spite of errors.- Since:
- 1.5
- See Also:
-
OP_REQUIRE_SERIAL
An option to instruct a connector that batched operations must be executed in serial fashion where possible/applicable. The default behavior should be to execute tasks in parallel for speed and efficiency. In either case the task id must be reflected in teh response for each task so they can be properly reordered.- Since:
- 1.5
- See Also:
-
-
Constructor Details
-
OperationOptions
Public only for serialization; please useOperationOptionsBuilder
.- Parameters:
operationOptions
- The options.
-
-
Method Details
-
getOptions
Returns a map of options. Each value in the map must be of a type that the framework can serialize. SeeObjectSerializerFactory
for a list of supported types.- Returns:
- A map of options.
-
toString
Add basic debugging of internal data. -
getScope
Convenience method that returnsOP_SCOPE
.- Returns:
- The value for
OP_SCOPE
.
-
getContainer
Convenience method that returnsOP_CONTAINER
.- Returns:
- The value for
OP_CONTAINER
.
-
getAttributesToGet
Get the string array of attribute names to return in the object. -
getRunAsUser
Get the account to run the operation as.. -
getRunWithPassword
Get the password to run the operation as.. -
getPagedResultsCookie
Returns the opaque cookie which is used by the Connector to track its position in the set of query results. Paged results will be enabled if and only if the page size is non-zero.The cookie must be
null
in the initial search request sent by the client. For subsequent search requests the client must include the cookie returned with the previous search result, until the resource provider returns anull
cookie indicating that the final page of results has been returned.- Returns:
- The opaque cookie which is used by the Connector to track its
position in the set of search results, or
null
if paged results are not requested (when the page size is 0), or if the first page of results is being requested (when the page size is non-zero). - Since:
- 1.4
- See Also:
-
getTotalPagedResultsPolicy
Returns theSearchResult.CountPolicy
used to calculateSearchResult.getTotalPagedResults()
.- Returns:
- The count policy.
- Since:
- 1.5
- See Also:
-
getPagedResultsOffset
Returns the index within the result set of the first result which should be returned. Paged results will be enabled if and only if the page size is non-zero. If the parameter is not present or a value less than 1 is specified then the page following the previous page returned will be returned. A value equal to or greater than 1 indicates that a specific page should be returned starting from the position specified.- Returns:
- The index within the result set of the first result which should be returned.
- Since:
- 1.4
- See Also:
-
getPageSize
Returns the requested page results page size or0
if paged results are not required. For all paged result requests other than the initial request, a cookie should be provided with the search request. SeegetPagedResultsCookie()
for more information.- Returns:
- The requested page results page size or
0
if paged results are not required. - Since:
- 1.4
- See Also:
-
getSortKeys
Returns the sort keys which should be used for ordering theConnectorObject
s returned by this search request.- Returns:
- The sort keys which should be used for ordering the
ConnectorObject
s returned by this search request (nevernull
). - Since:
- 1.4
-
getFailOnError
public boolean getFailOnError()Returns the state of the failOnError option; defaults tofalse
. -
getRequireSerial
public boolean getRequireSerial()Return the state of the allowParallel option; defaults tofalse
.
-