Class DefaultImportCockpitMappingService

    • Constructor Detail

      • DefaultImportCockpitMappingService

        public DefaultImportCockpitMappingService()
    • Method Detail

      • loadMapping

        public MappingModel loadMapping​(ImportCockpitCronJobModel jobModel)
        Description copied from interface: ImportCockpitMappingService
        Loads a mapping from a job if available. If there is no mapping specified, no mapping will be created and the method will return null.
        Parameters:
        jobModel - job
        Returns:
        mapping
      • retrieveMapping

        public MappingModel retrieveMapping​(ImportCockpitCronJobModel processModel)
        Description copied from interface: ImportCockpitMappingService
        Loads the mapping from a supplied cron job (ImportCockpitCronJobModel). If there is no mapping specified for the job then a new one is being created.
        Parameters:
        processModel - job
        Returns:
        mapping
      • copyMapping

        public MappingModel copyMapping​(ImportCockpitMappingModel sourceMappingModel,
                                        java.io.Reader reader)
        Description copied from interface: ImportCockpitMappingService
        Creates and returns a new mapping that contains a copy of the mapping XML of a given ImportCockpitMapping object.
        Parameters:
        sourceMappingModel - ,it is the ImportCockpitMapping
        reader - reader
        Returns:
        a new mapping with a copied XML from an ImportCockpitMapping object
      • findMappingsWithUrl

        public java.util.List<ImportCockpitMappingModel> findMappingsWithUrl()
        Description copied from interface: ImportCockpitMappingService
        Retrieves all mappings with a URL from the database. Used by the "load mapping" functionality.
        Returns:
        list of ImportCockpitMapping objects