ECMA2 Framework
Home
  • Home
  • Using the Framework
    • Getting started
    • Definining the schema
    • Definining capabilites
    • Defining configuration parameters
    • Using the ProducerConsumerImportProvider
    • Building single-file assemblies
  • Additional resources
    • Example projects
      • Lithnet Okta Management Agent
      • Simple example
    • Troubleshooting
    • Change log
  • Advanced
    • API Reference
      • CapabilitiesConfigurationAttribute
      • CheckboxParameterAttribute
      • ConnectivityConfigurationAttribute
      • DataParameterAttribute
      • DividerParameterAttribute
      • DropdownParameterAttribute
      • Ecma2FrameworkOptions
      • EncryptedStringParameterAttribute
      • ExportContext
      • FileParameterAttribute
      • GlobalConfigurationAttribute
      • ICapabilitiesProvider
      • IConfigParameters
      • IConfigParametersProvider
      • IContextInitializer
      • ICSEntryChangeCollection
      • IEcmaStartup
      • ImportContext
      • IObjectExportProvider
      • IObjectImportProvider
      • IObjectPasswordProvider
      • ISchemaProvider
      • LabelParameterAttribute
      • MultilineTextboxParameterAttribute
      • ParameterAttribute
      • PartitionConfigurationAttribute
      • PasswordContext
      • ProducerConsumerImportProvider<TObject>
      • RunStepConfigurationAttribute
      • SchemaConfigurationAttribute
      • StringParameterAttribute
      • UIParameterAttribute
Powered by GitBook
On this page
  • Methods
  • InitializeAsync(ImportContext)
  • CanImportAsync(SchemaType)
  • GetCSEntryChangesAsync(SchemaType, ICSEntryChangeCollection, String, CancellationToken)
  • GetOutboundWatermark(SchemaType, CancellationToken)
  1. Advanced
  2. API Reference

IObjectImportProvider

PreviousIObjectExportProviderNextIObjectPasswordProvider

Last updated 1 year ago

Namespace: Lithnet.Ecma2Framework

Defines the methods and properties that an object import provider must implement

public interface IObjectImportProvider

Methods

InitializeAsync(ImportContext)

Initializes the object import provider. This method is called once at the start of an import operation

Task InitializeAsync(ImportContext context)

Parameters

context The context of the operation

Returns

A task that represents the asynchronous operation

CanImportAsync(SchemaType)

Indicates whether the object import provider can import objects of the specified type

Task<bool> CanImportAsync(SchemaType type)

Parameters

type SchemaType The type of object to be imported

Returns

GetCSEntryChangesAsync(SchemaType, ICSEntryChangeCollection, String, CancellationToken)

Initiates the operation to import objects of the specified type. Created CSEntryChanges should be added to the provided ICSEntryChangeCollection object.

Task GetCSEntryChangesAsync(SchemaType type, ICSEntryChangeCollection csentryCollection, string incomingWatermark, CancellationToken cancellationToken)

Parameters

type SchemaType The type of object to import

Returns

GetOutboundWatermark(SchemaType, CancellationToken)

Gets the outbound watermark to save to the synchronization service at the completion of the import operation If the management agent doesn't support delta operations, then this method should return null

Task<string> GetOutboundWatermark(SchemaType type, CancellationToken cancellationToken)

Parameters

type SchemaType The object type to get the watermark for

Returns

if the provider can import the object, otherwise

csentryCollection The collection of CSEntryChange objects to add the imported objects to

incomingWatermark The watermark value provided by the management agent after its last successful import

cancellationToken A cancellation token

A task that represents the asynchronous operation

cancellationToken A cancellation token

The outbound watermark, or null if the management agent doesn't support delta operations

ImportContext
Task
Task<Boolean>
ICSEntryChangeCollection
String
CancellationToken
Task
CancellationToken
Task<String>