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<java.lang.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 java.lang.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<java.lang.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

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, java.util.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, java.lang.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, java.util.Set<org.identityconnectors.framework.common.objects.Attribute> createAttributes, org.identityconnectors.framework.common.objects.OperationOptions options)
          
 org.identityconnectors.framework.common.objects.filter.FilterTranslator<java.lang.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, java.lang.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, java.util.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, java.lang.String userName, org.identityconnectors.framework.common.objects.OperationOptions options)
          
 java.lang.Object runScriptOnConnector(org.identityconnectors.framework.common.objects.ScriptContext request, org.identityconnectors.framework.common.objects.OperationOptions options)
          
 java.lang.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, java.util.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
 

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,
                                                                  java.util.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,
                                                                  java.util.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,
                                                                              java.util.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,
                                                                                 java.util.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,
                                                                        java.lang.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,
                                                                           java.lang.String userName,
                                                                           org.identityconnectors.framework.common.objects.OperationOptions options)

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

runScriptOnConnector

public java.lang.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 java.lang.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<java.lang.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<java.lang.String>

executeQuery

public void executeQuery(org.identityconnectors.framework.common.objects.ObjectClass objectClass,
                         java.lang.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<java.lang.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 © 2012 evolveum. All Rights Reserved.