blackboard.platform.dataintegration
Class DataIntegrationUtil

java.lang.Object
  extended by blackboard.platform.dataintegration.DataIntegrationUtil

public class DataIntegrationUtil
extends java.lang.Object

Utility helper methods for DataIntegrations.

Since:
Bb 9.1 SP6

Constructor Summary
DataIntegrationUtil()
           
 
Method Summary
static java.lang.String constructBatchUid(java.lang.String id, DataIntegration integration)
          Construct a Batch UID from a source id taking into account any prefixing that's coming from the integration setup.
static java.util.List<DataIntegrationObjectMapping> mergeWithDefaultMappings(java.util.List<DataIntegrationObjectMapping> defaultMappings, java.util.List<DataIntegrationObjectMapping> mappings)
          Returns a new list of DataIntegrationObjectMapping objects where any LearnObjectTypes not covered by the mappings input are filled in with the default mapping for that LearnObjectType.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataIntegrationUtil

public DataIntegrationUtil()
Method Detail

constructBatchUid

public static java.lang.String constructBatchUid(java.lang.String id,
                                                 DataIntegration integration)
Construct a Batch UID from a source id taking into account any prefixing that's coming from the integration setup.

If the id coming in is empty or null, nothing will be prefixed.

Parameters:
id - id coming from the SIS
integration - the DataIntegration this data is associated with
Returns:
a string suitable for being a Batch UID.

mergeWithDefaultMappings

public static java.util.List<DataIntegrationObjectMapping> mergeWithDefaultMappings(java.util.List<DataIntegrationObjectMapping> defaultMappings,
                                                                                    java.util.List<DataIntegrationObjectMapping> mappings)
Returns a new list of DataIntegrationObjectMapping objects where any LearnObjectTypes not covered by the mappings input are filled in with the default mapping for that LearnObjectType.

Parameters:
defaultMappings - - The default set of mappings
mappings - - The potentially incomplete mapping list that needs to be filled in


Copyright © 2012 Blackboard, Inc. All Rights Reserved.