Class DefaultExportConfigurationSearchService
java.lang.Object
de.hybris.platform.odata2services.export.impl.DefaultExportConfigurationSearchService
- All Implemented Interfaces:
ExportConfigurationSearchService
public class DefaultExportConfigurationSearchService
extends Object
implements ExportConfigurationSearchService
The default implementation for the interface
ExportConfigurationSearchService.-
Constructor Summary
ConstructorsConstructorDescriptionDefaultExportConfigurationSearchService(@NotNull IntegrationObjectService integrationObjectService, @NotNull FlexibleSearchService flexibleSearchService, @NotNull ODataServicesConfiguration configurationService, @NotNull TypeService typeService, @NotNull DescriptorFactory descriptorFactory) Instantiates a new export configuration search service. -
Method Summary
Modifier and TypeMethodDescriptionfindCronJobs(String jobCode) Find outbound sync cron jobs.Find an integration object with the given code.Find outbound sync jobs.findRootItemInstances(IntegrationObjectBundleEntity integrationObjectBundleEntity) Find all the related root item model instances of a given integration object.findRuntimeAttributeDescriptors(ConfigurationBundleEntity configBundle) Find the runtime attribute descriptors for all the integration object selected runtime attributes.findSteamConfigurations(String occCode) Find stream configurations.findTriggers(String cronJobCode) Find triggers.Read the configured integration object codes from the project properties and return all the exportable integration objects.
-
Constructor Details
-
DefaultExportConfigurationSearchService
public DefaultExportConfigurationSearchService(@NotNull @NotNull IntegrationObjectService integrationObjectService, @NotNull @NotNull FlexibleSearchService flexibleSearchService, @NotNull @NotNull ODataServicesConfiguration configurationService, @NotNull @NotNull TypeService typeService, @NotNull @NotNull DescriptorFactory descriptorFactory) Instantiates a new export configuration search service.- Parameters:
integrationObjectService- the integration object search serviceflexibleSearchService- the flexible search service integration objectsconfigurationService- the configuration service to read the configurationstypeService- the type descriptor service to get the runtime attributesdescriptorFactory- the descriptor factory to create an integration object descriptor
-
-
Method Details
-
findRootItemInstances
public Set<ItemModel> findRootItemInstances(IntegrationObjectBundleEntity integrationObjectBundleEntity) Description copied from interface:ExportConfigurationSearchServiceFind all the related root item model instances of a given integration object.- Specified by:
findRootItemInstancesin interfaceExportConfigurationSearchService- Parameters:
integrationObjectBundleEntity- passes an integration object and its root item instancesIntegrationObjectBundleEntity- Returns:
- set of integration object root item model instances
Set<ItemModel>
-
getExportableIntegrationObjects
Description copied from interface:ExportConfigurationSearchServiceRead the configured integration object codes from the project properties and return all the exportable integration objects.- Specified by:
getExportableIntegrationObjectsin interfaceExportConfigurationSearchService- Returns:
- set of exportable integration objects
Set<IntegrationObjectModel>.
-
findExportableIntegrationObjectByCode
Description copied from interface:ExportConfigurationSearchServiceFind an integration object with the given code.- Specified by:
findExportableIntegrationObjectByCodein interfaceExportConfigurationSearchService- Parameters:
ioCode- integration object code- Returns:
- integration object with the given code
-
findRuntimeAttributeDescriptors
public Set<AttributeDescriptorModel> findRuntimeAttributeDescriptors(ConfigurationBundleEntity configBundle) Description copied from interface:ExportConfigurationSearchServiceFind the runtime attribute descriptors for all the integration object selected runtime attributes.- Specified by:
findRuntimeAttributeDescriptorsin interfaceExportConfigurationSearchService- Parameters:
configBundle- configuration bundle entity- Returns:
- runtime attribute descriptors
-
findSteamConfigurations
Description copied from interface:ExportConfigurationSearchServiceFind stream configurations.- Specified by:
findSteamConfigurationsin interfaceExportConfigurationSearchService- Parameters:
occCode- outbound channel configuration code- Returns:
- set of stream configurations
-
findJobs
Description copied from interface:ExportConfigurationSearchServiceFind outbound sync jobs.- Specified by:
findJobsin interfaceExportConfigurationSearchService- Parameters:
containerId- stream configuration container Id- Returns:
- set of outbound sync jobs
-
findCronJobs
Description copied from interface:ExportConfigurationSearchServiceFind outbound sync cron jobs.- Specified by:
findCronJobsin interfaceExportConfigurationSearchService- Parameters:
jobCode- outbound sync job code- Returns:
- set of outbound sync cron jobs
-
findTriggers
Description copied from interface:ExportConfigurationSearchServiceFind triggers.- Specified by:
findTriggersin interfaceExportConfigurationSearchService- Parameters:
cronJobCode- corn job code- Returns:
- set of triggers configured for the given cron job code
-