com.evolveum.icf.dummy.connector
Class DummyConnector

java.lang.Object
  extended by com.evolveum.icf.dummy.connector.DummyConnector
All Implemented Interfaces:
org.identityconnectors.framework.spi.Connector, org.identityconnectors.framework.spi.operations.AuthenticateOp, org.identityconnectors.framework.spi.operations.CreateOp, org.identityconnectors.framework.spi.operations.DeleteOp, org.identityconnectors.framework.spi.operations.ResolveUsernameOp, org.identityconnectors.framework.spi.operations.SchemaOp, org.identityconnectors.framework.spi.operations.ScriptOnConnectorOp, org.identityconnectors.framework.spi.operations.ScriptOnResourceOp, org.identityconnectors.framework.spi.operations.SearchOp<String>, org.identityconnectors.framework.spi.operations.SPIOperation, org.identityconnectors.framework.spi.operations.SyncOp, org.identityconnectors.framework.spi.operations.TestOp, org.identityconnectors.framework.spi.operations.UpdateAttributeValuesOp, org.identityconnectors.framework.spi.operations.UpdateOp

public class DummyConnector
extends Object
implements org.identityconnectors.framework.spi.Connector, org.identityconnectors.framework.spi.operations.AuthenticateOp, org.identityconnectors.framework.spi.operations.ResolveUsernameOp, org.identityconnectors.framework.spi.operations.CreateOp, org.identityconnectors.framework.spi.operations.DeleteOp, org.identityconnectors.framework.spi.operations.SchemaOp, org.identityconnectors.framework.spi.operations.ScriptOnConnectorOp, org.identityconnectors.framework.spi.operations.ScriptOnResourceOp, org.identityconnectors.framework.spi.operations.SearchOp<String>, org.identityconnectors.framework.spi.operations.SyncOp, org.identityconnectors.framework.spi.operations.TestOp, org.identityconnectors.framework.spi.operations.UpdateAttributeValuesOp

Connector for the Dummy Resource. Dummy resource is a simple Java object that pretends to be a resource. It has accounts and account schema. It has operations to manipulate accounts, execute scripts and so on almost like a real resource. The purpose is to simulate a real resource with a very little overhead. This connector connects the Dummy resource to ICF.

Version:
$Revision$ $Date$
Author:
$author$
See Also:
DummyResource

Field Summary
static String LOG_MARKER
           
 
Constructor Summary
DummyConnector()
           
 
Method Summary
 org.identityconnectors.framework.common.objects.Uid addAttributeValues(org.identityconnectors.framework.common.objects.ObjectClass objectClass, org.identityconnectors.framework.common.objects.Uid uid, Set<org.identityconnectors.framework.common.objects.Attribute> valuesToAdd, org.identityconnectors.framework.common.objects.OperationOptions options)
          
 org.identityconnectors.framework.common.objects.Uid authenticate(org.identityconnectors.framework.common.objects.ObjectClass objectClass, String userName, org.identityconnectors.common.security.GuardedString password, org.identityconnectors.framework.common.objects.OperationOptions options)
          
 org.identityconnectors.framework.common.objects.Uid create(org.identityconnectors.framework.common.objects.ObjectClass objectClass, Set<org.identityconnectors.framework.common.objects.Attribute> createAttributes, org.identityconnectors.framework.common.objects.OperationOptions options)
          
 org.identityconnectors.framework.common.objects.filter.FilterTranslator<String> createFilterTranslator(org.identityconnectors.framework.common.objects.ObjectClass objectClass, org.identityconnectors.framework.common.objects.OperationOptions options)
          
 void delete(org.identityconnectors.framework.common.objects.ObjectClass objectClass, org.identityconnectors.framework.common.objects.Uid uid, org.identityconnectors.framework.common.objects.OperationOptions options)
          
 void dispose()
          Disposes of the CSVFileConnector's resources.
 void executeQuery(org.identityconnectors.framework.common.objects.ObjectClass objectClass, String query, org.identityconnectors.framework.common.objects.ResultsHandler handler, org.identityconnectors.framework.common.objects.OperationOptions options)
          
 org.identityconnectors.framework.spi.Configuration getConfiguration()
          Gets the Configuration context for this connector.
 org.identityconnectors.framework.common.objects.SyncToken getLatestSyncToken(org.identityconnectors.framework.common.objects.ObjectClass objectClass)
          
 void init(org.identityconnectors.framework.spi.Configuration configuration)
          Callback method to receive the Configuration.
 org.identityconnectors.framework.common.objects.Uid removeAttributeValues(org.identityconnectors.framework.common.objects.ObjectClass objectClass, org.identityconnectors.framework.common.objects.Uid uid, Set<org.identityconnectors.framework.common.objects.Attribute> valuesToRemove, org.identityconnectors.framework.common.objects.OperationOptions options)
          
 org.identityconnectors.framework.common.objects.Uid resolveUsername(org.identityconnectors.framework.common.objects.ObjectClass objectClass, String userName, org.identityconnectors.framework.common.objects.OperationOptions options)
          
 Object runScriptOnConnector(org.identityconnectors.framework.common.objects.ScriptContext request, org.identityconnectors.framework.common.objects.OperationOptions options)
          
 Object runScriptOnResource(org.identityconnectors.framework.common.objects.ScriptContext request, org.identityconnectors.framework.common.objects.OperationOptions options)
          
 org.identityconnectors.framework.common.objects.Schema schema()
          
 void sync(org.identityconnectors.framework.common.objects.ObjectClass objectClass, org.identityconnectors.framework.common.objects.SyncToken token, org.identityconnectors.framework.common.objects.SyncResultsHandler handler, org.identityconnectors.framework.common.objects.OperationOptions options)
          
 void test()
          
 org.identityconnectors.framework.common.objects.Uid update(org.identityconnectors.framework.common.objects.ObjectClass objectClass, org.identityconnectors.framework.common.objects.Uid uid, Set<org.identityconnectors.framework.common.objects.Attribute> replaceAttributes, org.identityconnectors.framework.common.objects.OperationOptions options)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG_MARKER

public static final String LOG_MARKER
See Also:
Constant Field Values
Constructor Detail

DummyConnector

public DummyConnector()
Method Detail

getConfiguration

public org.identityconnectors.framework.spi.Configuration getConfiguration()
Gets the Configuration context for this connector.

Specified by:
getConfiguration in interface org.identityconnectors.framework.spi.Connector

init

public void init(org.identityconnectors.framework.spi.Configuration configuration)
Callback method to receive the Configuration.

Specified by:
init in interface org.identityconnectors.framework.spi.Connector
See Also:
Connector.init(org.identityconnectors.framework.spi.Configuration)

dispose

public void dispose()
Disposes of the CSVFileConnector's resources.

Specified by:
dispose in interface org.identityconnectors.framework.spi.Connector
See Also:
Connector.dispose()

create

public org.identityconnectors.framework.common.objects.Uid create(org.identityconnectors.framework.common.objects.ObjectClass objectClass,
                                                                  Set<org.identityconnectors.framework.common.objects.Attribute> createAttributes,
                                                                  org.identityconnectors.framework.common.objects.OperationOptions options)

Specified by:
create in interface org.identityconnectors.framework.spi.operations.CreateOp

update

public org.identityconnectors.framework.common.objects.Uid update(org.identityconnectors.framework.common.objects.ObjectClass objectClass,
                                                                  org.identityconnectors.framework.common.objects.Uid uid,
                                                                  Set<org.identityconnectors.framework.common.objects.Attribute> replaceAttributes,
                                                                  org.identityconnectors.framework.common.objects.OperationOptions options)

Specified by:
update in interface org.identityconnectors.framework.spi.operations.UpdateOp

addAttributeValues

public org.identityconnectors.framework.common.objects.Uid addAttributeValues(org.identityconnectors.framework.common.objects.ObjectClass objectClass,
                                                                              org.identityconnectors.framework.common.objects.Uid uid,
                                                                              Set<org.identityconnectors.framework.common.objects.Attribute> valuesToAdd,
                                                                              org.identityconnectors.framework.common.objects.OperationOptions options)

Specified by:
addAttributeValues in interface org.identityconnectors.framework.spi.operations.UpdateAttributeValuesOp

removeAttributeValues

public org.identityconnectors.framework.common.objects.Uid removeAttributeValues(org.identityconnectors.framework.common.objects.ObjectClass objectClass,
                                                                                 org.identityconnectors.framework.common.objects.Uid uid,
                                                                                 Set<org.identityconnectors.framework.common.objects.Attribute> valuesToRemove,
                                                                                 org.identityconnectors.framework.common.objects.OperationOptions options)

Specified by:
removeAttributeValues in interface org.identityconnectors.framework.spi.operations.UpdateAttributeValuesOp

delete

public void delete(org.identityconnectors.framework.common.objects.ObjectClass objectClass,
                   org.identityconnectors.framework.common.objects.Uid uid,
                   org.identityconnectors.framework.common.objects.OperationOptions options)

Specified by:
delete in interface org.identityconnectors.framework.spi.operations.DeleteOp

schema

public org.identityconnectors.framework.common.objects.Schema schema()

Specified by:
schema in interface org.identityconnectors.framework.spi.operations.SchemaOp

authenticate

public org.identityconnectors.framework.common.objects.Uid authenticate(org.identityconnectors.framework.common.objects.ObjectClass objectClass,
                                                                        String userName,
                                                                        org.identityconnectors.common.security.GuardedString password,
                                                                        org.identityconnectors.framework.common.objects.OperationOptions options)

Specified by:
authenticate in interface org.identityconnectors.framework.spi.operations.AuthenticateOp

resolveUsername

public org.identityconnectors.framework.common.objects.Uid resolveUsername(org.identityconnectors.framework.common.objects.ObjectClass objectClass,
                                                                           String userName,
                                                                           org.identityconnectors.framework.common.objects.OperationOptions options)

Specified by:
resolveUsername in interface org.identityconnectors.framework.spi.operations.ResolveUsernameOp

runScriptOnConnector

public Object runScriptOnConnector(org.identityconnectors.framework.common.objects.ScriptContext request,
                                   org.identityconnectors.framework.common.objects.OperationOptions options)

Specified by:
runScriptOnConnector in interface org.identityconnectors.framework.spi.operations.ScriptOnConnectorOp

runScriptOnResource

public Object runScriptOnResource(org.identityconnectors.framework.common.objects.ScriptContext request,
                                  org.identityconnectors.framework.common.objects.OperationOptions options)

Specified by:
runScriptOnResource in interface org.identityconnectors.framework.spi.operations.ScriptOnResourceOp

createFilterTranslator

public org.identityconnectors.framework.common.objects.filter.FilterTranslator<String> createFilterTranslator(org.identityconnectors.framework.common.objects.ObjectClass objectClass,
                                                                                                              org.identityconnectors.framework.common.objects.OperationOptions options)

Specified by:
createFilterTranslator in interface org.identityconnectors.framework.spi.operations.SearchOp<String>

executeQuery

public void executeQuery(org.identityconnectors.framework.common.objects.ObjectClass objectClass,
                         String query,
                         org.identityconnectors.framework.common.objects.ResultsHandler handler,
                         org.identityconnectors.framework.common.objects.OperationOptions options)

Specified by:
executeQuery in interface org.identityconnectors.framework.spi.operations.SearchOp<String>

sync

public void sync(org.identityconnectors.framework.common.objects.ObjectClass objectClass,
                 org.identityconnectors.framework.common.objects.SyncToken token,
                 org.identityconnectors.framework.common.objects.SyncResultsHandler handler,
                 org.identityconnectors.framework.common.objects.OperationOptions options)

Specified by:
sync in interface org.identityconnectors.framework.spi.operations.SyncOp

getLatestSyncToken

public org.identityconnectors.framework.common.objects.SyncToken getLatestSyncToken(org.identityconnectors.framework.common.objects.ObjectClass objectClass)

Specified by:
getLatestSyncToken in interface org.identityconnectors.framework.spi.operations.SyncOp

test

public void test()

Specified by:
test in interface org.identityconnectors.framework.spi.operations.TestOp


Copyright © 2013 evolveum. All Rights Reserved.