Class CSVStreamConnector

  • All Implemented Interfaces:
    AutoCloseable, org.apache.syncope.core.provisioning.api.Connector

    public class CSVStreamConnector
    extends Object
    implements org.apache.syncope.core.provisioning.api.Connector, AutoCloseable
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.identityconnectors.framework.common.objects.Uid authenticate​(String username, String password, org.identityconnectors.framework.common.objects.OperationOptions options)  
      void close()  
      org.identityconnectors.framework.common.objects.Uid create​(org.identityconnectors.framework.common.objects.ObjectClass objectClass, Set<org.identityconnectors.framework.common.objects.Attribute> attrs, org.identityconnectors.framework.common.objects.OperationOptions options, AtomicReference<Boolean> propagationAttempted)  
      void delete​(org.identityconnectors.framework.common.objects.ObjectClass objectClass, org.identityconnectors.framework.common.objects.Uid uid, org.identityconnectors.framework.common.objects.OperationOptions options, AtomicReference<Boolean> propagationAttempted)  
      void dispose()  
      List<String> getColumns​(org.apache.syncope.common.rest.api.beans.CSVPullSpec spec)  
      org.apache.syncope.core.persistence.api.entity.ConnInstance getConnInstance()  
      org.identityconnectors.framework.common.objects.SyncToken getLatestSyncToken​(org.identityconnectors.framework.common.objects.ObjectClass objectClass)  
      org.identityconnectors.framework.common.objects.ConnectorObject getObject​(org.identityconnectors.framework.common.objects.ObjectClass objectClass, org.identityconnectors.framework.common.objects.Attribute connObjectKey, boolean ignoreCaseMatch, org.identityconnectors.framework.common.objects.OperationOptions options)  
      Set<org.identityconnectors.framework.common.objects.ObjectClassInfo> getObjectClassInfo()  
      com.fasterxml.jackson.databind.MappingIterator<Map<String,​String>> reader()  
      org.identityconnectors.framework.common.objects.SearchResult search​(org.identityconnectors.framework.common.objects.ObjectClass objectClass, org.identityconnectors.framework.common.objects.filter.Filter filter, org.identityconnectors.framework.spi.SearchResultsHandler handler, org.identityconnectors.framework.common.objects.OperationOptions options)  
      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> attrs, org.identityconnectors.framework.common.objects.OperationOptions options, AtomicReference<Boolean> propagationAttempted)  
      Set<org.identityconnectors.framework.common.objects.AttributeDelta> updateDelta​(org.identityconnectors.framework.common.objects.ObjectClass objectClass, org.identityconnectors.framework.common.objects.Uid uid, Set<org.identityconnectors.framework.common.objects.AttributeDelta> modifications, org.identityconnectors.framework.common.objects.OperationOptions options, AtomicReference<Boolean> propagationAttempted)  
      void validate()  
      com.fasterxml.jackson.databind.SequenceWriter writer()  
      • Methods inherited from interface org.apache.syncope.core.provisioning.api.Connector

        filteredReconciliation, fullReconciliation, search
    • Constructor Detail

      • CSVStreamConnector

        public CSVStreamConnector​(String keyColumn,
                                  String arrayElementsSeparator,
                                  com.fasterxml.jackson.dataformat.csv.CsvSchema.Builder schemaBuilder,
                                  InputStream in,
                                  OutputStream out,
                                  String... columns)
    • Method Detail

      • writer

        public com.fasterxml.jackson.databind.SequenceWriter writer()
                                                             throws IOException
        Throws:
        IOException
      • authenticate

        public org.identityconnectors.framework.common.objects.Uid authenticate​(String username,
                                                                                String password,
                                                                                org.identityconnectors.framework.common.objects.OperationOptions options)
        Specified by:
        authenticate in interface org.apache.syncope.core.provisioning.api.Connector
      • getConnInstance

        public org.apache.syncope.core.persistence.api.entity.ConnInstance getConnInstance()
        Specified by:
        getConnInstance in interface org.apache.syncope.core.provisioning.api.Connector
      • create

        public org.identityconnectors.framework.common.objects.Uid create​(org.identityconnectors.framework.common.objects.ObjectClass objectClass,
                                                                          Set<org.identityconnectors.framework.common.objects.Attribute> attrs,
                                                                          org.identityconnectors.framework.common.objects.OperationOptions options,
                                                                          AtomicReference<Boolean> propagationAttempted)
        Specified by:
        create in interface org.apache.syncope.core.provisioning.api.Connector
      • 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> attrs,
                                                                          org.identityconnectors.framework.common.objects.OperationOptions options,
                                                                          AtomicReference<Boolean> propagationAttempted)
        Specified by:
        update in interface org.apache.syncope.core.provisioning.api.Connector
      • updateDelta

        public Set<org.identityconnectors.framework.common.objects.AttributeDelta> updateDelta​(org.identityconnectors.framework.common.objects.ObjectClass objectClass,
                                                                                               org.identityconnectors.framework.common.objects.Uid uid,
                                                                                               Set<org.identityconnectors.framework.common.objects.AttributeDelta> modifications,
                                                                                               org.identityconnectors.framework.common.objects.OperationOptions options,
                                                                                               AtomicReference<Boolean> propagationAttempted)
        Specified by:
        updateDelta in interface org.apache.syncope.core.provisioning.api.Connector
      • 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,
                           AtomicReference<Boolean> propagationAttempted)
        Specified by:
        delete in interface org.apache.syncope.core.provisioning.api.Connector
      • 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.apache.syncope.core.provisioning.api.Connector
      • getLatestSyncToken

        public org.identityconnectors.framework.common.objects.SyncToken getLatestSyncToken​(org.identityconnectors.framework.common.objects.ObjectClass objectClass)
        Specified by:
        getLatestSyncToken in interface org.apache.syncope.core.provisioning.api.Connector
      • getObject

        public org.identityconnectors.framework.common.objects.ConnectorObject getObject​(org.identityconnectors.framework.common.objects.ObjectClass objectClass,
                                                                                         org.identityconnectors.framework.common.objects.Attribute connObjectKey,
                                                                                         boolean ignoreCaseMatch,
                                                                                         org.identityconnectors.framework.common.objects.OperationOptions options)
        Specified by:
        getObject in interface org.apache.syncope.core.provisioning.api.Connector
      • search

        public org.identityconnectors.framework.common.objects.SearchResult search​(org.identityconnectors.framework.common.objects.ObjectClass objectClass,
                                                                                   org.identityconnectors.framework.common.objects.filter.Filter filter,
                                                                                   org.identityconnectors.framework.spi.SearchResultsHandler handler,
                                                                                   org.identityconnectors.framework.common.objects.OperationOptions options)
        Specified by:
        search in interface org.apache.syncope.core.provisioning.api.Connector
      • getObjectClassInfo

        public Set<org.identityconnectors.framework.common.objects.ObjectClassInfo> getObjectClassInfo()
        Specified by:
        getObjectClassInfo in interface org.apache.syncope.core.provisioning.api.Connector
      • validate

        public void validate()
        Specified by:
        validate in interface org.apache.syncope.core.provisioning.api.Connector
      • test

        public void test()
        Specified by:
        test in interface org.apache.syncope.core.provisioning.api.Connector
      • dispose

        public void dispose()
        Specified by:
        dispose in interface org.apache.syncope.core.provisioning.api.Connector