Class ConnectorFacadeProxy
- java.lang.Object
-
- org.apache.syncope.core.provisioning.java.ConnectorFacadeProxy
-
-
Constructor Summary
Constructors Constructor Description ConnectorFacadeProxy(ConnInstance connInstance, AsyncConnectorFacade asyncFacade)
Use the passed connector instance to build a ConnectorFacade that will be used to make all wrapped calls.
-
Method Summary
All Methods Instance Methods Concrete 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.void
filteredReconciliation(ObjectClass objectClass, ReconFilterBuilder filterBuilder, SyncResultsHandler handler, OperationOptions options)
Fetches remote objects (for use during filtered reconciliation).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
.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.String
toString()
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.
-
-
-
Constructor Detail
-
ConnectorFacadeProxy
public ConnectorFacadeProxy(ConnInstance connInstance, AsyncConnectorFacade asyncFacade)
Use the passed connector instance to build a ConnectorFacade that will be used to make all wrapped calls.- Parameters:
connInstance
- the connector instanceasyncFacade
- the async connectot facade- See Also:
ConnectorInfo
,APIConfiguration
,ConfigurationProperties
,ConnectorFacade
-
-
Method Detail
-
authenticate
public Uid authenticate(String username, String password, OperationOptions options)
Description copied from interface:Connector
Authenticate user on a connector instance.- Specified by:
authenticate
in interfaceConnector
- 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
public Uid create(ObjectClass objectClass, Set<Attribute> attrs, OperationOptions options, AtomicReference<Boolean> propagationAttempted)
Description copied from interface:Connector
Create user, group or any object on a connector instance.
-
update
public Uid update(ObjectClass objectClass, Uid uid, Set<Attribute> attrs, OperationOptions options, AtomicReference<Boolean> propagationAttempted)
Description copied from interface:Connector
Update user, group or any object on a connector instance.- Specified by:
update
in interfaceConnector
- 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
public Set<AttributeDelta> updateDelta(ObjectClass objectClass, Uid uid, Set<AttributeDelta> modifications, OperationOptions options, AtomicReference<Boolean> propagationAttempted)
Description copied from interface:Connector
Partial update user, group or any object on a connector instance.- Specified by:
updateDelta
in interfaceConnector
- 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
public void delete(ObjectClass objectClass, Uid uid, OperationOptions options, AtomicReference<Boolean> propagationAttempted)
Description copied from interface:Connector
Delete user, group or any object on a connector instance.
-
sync
public void sync(ObjectClass objectClass, SyncToken token, SyncResultsHandler handler, OperationOptions options)
Description copied from interface:Connector
Sync remote objects from a connector instance.
-
getLatestSyncToken
public SyncToken getLatestSyncToken(ObjectClass objectClass)
Description copied from interface:Connector
Read latest sync token from a connector instance.- Specified by:
getLatestSyncToken
in interfaceConnector
- Parameters:
objectClass
- ConnId's object class.- Returns:
- latest sync token
-
fullReconciliation
public void fullReconciliation(ObjectClass objectClass, SyncResultsHandler handler, OperationOptions options)
Description copied from interface:Connector
Fetches all remote objects (for use during full reconciliation).- Specified by:
fullReconciliation
in interfaceConnector
- Parameters:
objectClass
- ConnId's object class.handler
- to be used to handle deltas.options
- ConnId's OperationOptions.
-
filteredReconciliation
public void filteredReconciliation(ObjectClass objectClass, ReconFilterBuilder filterBuilder, SyncResultsHandler handler, OperationOptions options)
Description copied from interface:Connector
Fetches remote objects (for use during filtered reconciliation).- Specified by:
filteredReconciliation
in interfaceConnector
- Parameters:
objectClass
- ConnId's object class.filterBuilder
- reconciliation filter builderhandler
- to be used to handle deltas.options
- ConnId's OperationOptions.
-
getObjectClassInfo
public Set<ObjectClassInfo> getObjectClassInfo()
Description copied from interface:Connector
Builds metadata description of ConnIdObjectClass
.- Specified by:
getObjectClassInfo
in interfaceConnector
- Returns:
- metadata description of ConnId ObjectClass
-
validate
public void validate()
Description copied from interface:Connector
Validate connector instance.
-
test
public void test()
Description copied from interface:Connector
Check connection.
-
getObject
public ConnectorObject getObject(ObjectClass objectClass, Attribute connObjectKey, boolean ignoreCaseMatch, OperationOptions options)
Description copied from interface:Connector
Get remote object.
-
search
public SearchResult search(ObjectClass objectClass, Filter filter, SearchResultsHandler handler, OperationOptions options)
Description copied from interface:Connector
Search for remote objects.
-
dispose
public void dispose()
Description copied from interface:Connector
Dispose of any resources associated with connector instance.
-
getConnInstance
public ConnInstance getConnInstance()
Description copied from interface:Connector
Getter for active connector instance.- Specified by:
getConnInstance
in interfaceConnector
- Returns:
- active connector instance.
-
-