Interface Connector
-
- All Known Implementing Classes:
ConnectorFacadeProxy
,CSVStreamConnector
public interface Connector
Entry point for making requests on underlying connector bundles.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Uid
authenticate(String username, String password, OperationOptions options)
Authenticate user on a connector instance.Uid
create(ObjectClass objectClass, Set<Attribute> attrs, OperationOptions options, AtomicReference<Boolean> propagationAttempted)
Create user, group or any object on a connector instance.void
delete(ObjectClass objectClass, Uid uid, OperationOptions options, AtomicReference<Boolean> propagationAttempted)
Delete user, group or any object on a connector instance.void
dispose()
Dispose of any resources associated with connector instance.default void
filteredReconciliation(ObjectClass objectClass, ReconFilterBuilder filterBuilder, SyncResultsHandler handler, OperationOptions options)
Fetches remote objects (for use during filtered reconciliation).default void
fullReconciliation(ObjectClass objectClass, SyncResultsHandler handler, OperationOptions options)
Fetches all remote objects (for use during full reconciliation).ConnInstance
getConnInstance()
Getter for active connector instance.SyncToken
getLatestSyncToken(ObjectClass objectClass)
Read latest sync token from a connector instance.ConnectorObject
getObject(ObjectClass objectClass, Attribute connObjectKey, boolean ignoreCaseMatch, OperationOptions options)
Get remote object.Set<ObjectClassInfo>
getObjectClassInfo()
Builds metadata description of ConnIdObjectClass
.default SearchResult
search(ObjectClass objectClass, Filter filter, SearchResultsHandler handler, int pageSize, String pagedResultsCookie, List<OrderByClause> orderBy, OperationOptions options)
Search for remote objects.SearchResult
search(ObjectClass objectClass, Filter filter, SearchResultsHandler handler, OperationOptions options)
Search for remote objects.void
sync(ObjectClass objectClass, SyncToken token, SyncResultsHandler handler, OperationOptions options)
Sync remote objects from a connector instance.void
test()
Check connection.Uid
update(ObjectClass objectClass, Uid uid, Set<Attribute> attrs, OperationOptions options, AtomicReference<Boolean> propagationAttempted)
Update user, group or any object on a connector instance.Set<AttributeDelta>
updateDelta(ObjectClass objectClass, Uid uid, Set<AttributeDelta> modifications, OperationOptions options, AtomicReference<Boolean> propagationAttempted)
Partial update user, group or any object on a connector instance.void
validate()
Validate connector instance.
-
-
-
Method Detail
-
authenticate
Uid authenticate(String username, String password, OperationOptions options)
Authenticate user on a connector instance.- Parameters:
username
- the name based credential for authenticationpassword
- the password based credential for authenticationoptions
- ConnId's OperationOptions- Returns:
- Uid of the account that was used to authenticate
-
create
Uid create(ObjectClass objectClass, Set<Attribute> attrs, OperationOptions options, AtomicReference<Boolean> propagationAttempted)
Create user, group or any object on a connector instance.- Parameters:
objectClass
- ConnId's object classattrs
- attributes for creationoptions
- ConnId's OperationOptionspropagationAttempted
- if creation is actually performed (based on connector instance's capabilities)- Returns:
- Uid for created object
-
update
Uid update(ObjectClass objectClass, Uid uid, Set<Attribute> attrs, OperationOptions options, AtomicReference<Boolean> propagationAttempted)
Update user, group or any object on a connector instance.- Parameters:
objectClass
- ConnId's object classuid
- remote identifierattrs
- attributes for updateoptions
- ConnId's OperationOptionspropagationAttempted
- if creation is actually performed (based on connector instance's capabilities)- Returns:
- Uid for updated object
-
updateDelta
Set<AttributeDelta> updateDelta(ObjectClass objectClass, Uid uid, Set<AttributeDelta> modifications, OperationOptions options, AtomicReference<Boolean> propagationAttempted)
Partial update user, group or any object on a connector instance.- Parameters:
objectClass
- ConnId's object classuid
- remote identifiermodifications
- attribute modifications to applyoptions
- ConnId's OperationOptionspropagationAttempted
- if creation is actually performed (based on connector instance's capabilities)- Returns:
- the applied modifications
-
delete
void delete(ObjectClass objectClass, Uid uid, OperationOptions options, AtomicReference<Boolean> propagationAttempted)
Delete user, group or any object on a connector instance.- Parameters:
objectClass
- ConnId's object classuid
- user to be deletedoptions
- ConnId's OperationOptionspropagationAttempted
- if deletion is actually performed (based on connector instance's capabilities)
-
fullReconciliation
default void fullReconciliation(ObjectClass objectClass, SyncResultsHandler handler, OperationOptions options)
Fetches all remote objects (for use during full reconciliation).- Parameters:
objectClass
- ConnId's object class.handler
- to be used to handle deltas.options
- ConnId's OperationOptions.
-
filteredReconciliation
default void filteredReconciliation(ObjectClass objectClass, ReconFilterBuilder filterBuilder, SyncResultsHandler handler, OperationOptions options)
Fetches remote objects (for use during filtered reconciliation).- Parameters:
objectClass
- ConnId's object class.filterBuilder
- reconciliation filter builderhandler
- to be used to handle deltas.options
- ConnId's OperationOptions.
-
sync
void sync(ObjectClass objectClass, SyncToken token, SyncResultsHandler handler, OperationOptions options)
Sync remote objects from a connector instance.- Parameters:
objectClass
- ConnId's object classtoken
- to be passed to the underlying connectorhandler
- to be used to handle deltasoptions
- ConnId's OperationOptions
-
getLatestSyncToken
SyncToken getLatestSyncToken(ObjectClass objectClass)
Read latest sync token from a connector instance.- Parameters:
objectClass
- ConnId's object class.- Returns:
- latest sync token
-
getObject
ConnectorObject getObject(ObjectClass objectClass, Attribute connObjectKey, boolean ignoreCaseMatch, OperationOptions options)
Get remote object.- Parameters:
objectClass
- ConnId's object classconnObjectKey
- ConnId's key attributeignoreCaseMatch
- whether match should be performed regardless of the value caseoptions
- ConnId's OperationOptions- Returns:
- ConnId's connector object for given uid
-
search
SearchResult search(ObjectClass objectClass, Filter filter, SearchResultsHandler handler, OperationOptions options)
Search for remote objects.- Parameters:
objectClass
- ConnId's object classfilter
- search filterhandler
- class responsible for working with the objects returned from the search; may be null.options
- ConnId's OperationOptions- Returns:
- search result
-
search
default SearchResult search(ObjectClass objectClass, Filter filter, SearchResultsHandler handler, int pageSize, String pagedResultsCookie, List<OrderByClause> orderBy, OperationOptions options)
Search for remote objects.- Parameters:
objectClass
- ConnId's object classfilter
- search filterhandler
- class responsible for working with the objects returned from the search; may be null.pageSize
- requested page results page sizepagedResultsCookie
- an opaque cookie which is used by the connector to track its position in the set of query resultsorderBy
- the sort keys which should be used for ordering theConnectorObject
returned by search requestoptions
- ConnId's OperationOptions- Returns:
- search result
-
getObjectClassInfo
Set<ObjectClassInfo> getObjectClassInfo()
Builds metadata description of ConnIdObjectClass
.- Returns:
- metadata description of ConnId ObjectClass
-
validate
void validate()
Validate connector instance.
-
test
void test()
Check connection.
-
dispose
void dispose()
Dispose of any resources associated with connector instance.
-
getConnInstance
ConnInstance getConnInstance()
Getter for active connector instance.- Returns:
- active connector instance.
-
-