Class ExportPartition

    • Constructor Detail

      • ExportPartition

        protected ExportPartition()
        Constructs a new ExportPartition
    • Method Detail

      • addCommonDateFields

        protected static void addCommonDateFields​(NamedParameterStatement statement,
                                                  Date exportDate,
                                                  Date created,
                                                  Date modified,
                                                  Date lastRefresh)
                                           throws SQLException
        Adds the common date fields (which must have the given names) to the given prepared statement.

        The modified and last refresh dates can be null.

        Parameters:
        statement - The named parameter statement
        exportDate - The export date
        created - The creation date
        modified - The modified date (which can be null)
        lastRefresh - The last refresh date (which can be null)
        Throws:
        SQLException - if any failures occur (unlikely)
      • openConnection

        public static Connection openConnection​(sailpoint.api.SailPointContext context,
                                                ExportConnectionInfo connectionInfo)
                                         throws sailpoint.tools.GeneralException
        Opens the connection to the target database using the provided connection info
        Parameters:
        context - The sailpoint context, used to decrypt the password
        connectionInfo - The provided connection info, extracted from the export task def
        Returns:
        The open connection
        Throws:
        sailpoint.tools.GeneralException - if any failures occur
      • execute

        public final Object execute​(sailpoint.api.SailPointContext context,
                                    org.apache.commons.logging.Log _logger)
                             throws Exception
        The worker entrypoint
        Specified by:
        execute in class SailPointWorker
        Parameters:
        context - The private context to use for this thread worker
        _logger - The log attached to this Worker
        Returns:
        Always null, nothing required here
        Throws:
        Exception - if anything goes wrong
      • export

        public abstract void export​(sailpoint.api.SailPointContext context,
                                    Connection connection,
                                    org.apache.commons.logging.Log logger)
                             throws sailpoint.tools.GeneralException
        Exports the data required to the listed database
        Parameters:
        context - The context
        connection - The connection to the target database
        logger - The logger
        Throws:
        sailpoint.tools.GeneralException - if any failures occur
      • testExportSingleObject

        public void testExportSingleObject​(sailpoint.api.SailPointContext context,
                                           org.apache.commons.logging.Log logger,
                                           String taskDefinitionName,
                                           String id)
                                    throws Exception
        Tests the export of a single object.

        The subclass will determine which object type it is. This can be invoked via a Run Rule task, the Debug page, or the Rule Runner plugin.

        Each test will use a unique “run key” so that it doesn’t interfere with the incremental export mechanism used by the main task.

        Parameters:
        context - The IIQ context
        logger - The logger
        taskDefinitionName - The name of the existing TaskDefinition
        id - The ID of the object to export
        Throws:
        Exception - if any failures occur