Class ModuleEssentialData
java.lang.Object
org.junit.rules.ExternalResource
de.hybris.platform.integrationservices.util.impex.ModuleEssentialData
- All Implemented Interfaces:
org.junit.rules.TestRule
- Direct Known Subclasses:
InboundServicesEssentialData,IntegrationServicesEssentialData,Odata2ServicesEssentialData,Odata2WebServicesEssentialData,OutboundServicesEssentialData,OutboundSyncEssentialData,WebhookServicesEssentialData
public abstract class ModuleEssentialData
extends org.junit.rules.ExternalResource
All essential data present in a module
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedModuleEssentialData(List<EssentialDataFile> files) protectedModuleEssentialData(List<EssentialDataFile> files, Set<String> ioCodes) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidafter()protected voidbefore()voidcleanup()Deletes all essential data present in this module from the system.protected static voidclearAccessRightsForTypes(Collection<String> typeCodes) Removes all access right permisions granted to the specified types.protected static voidDeletes all inbound channel configurations associated with the specified integration objects.protected static voiddeleteIntegrationObjects(Collection<String> ioCodes) Deletes the specified integration objects.protected voidAdds other module essential data, this module depends on.Retrieves integration objects loaded by this module essential data.Retrieves integration object items loaded by this module essential data.protected abstract List<ModuleEssentialData>Retrieves other modules this essential data module depends on.voidload()Loads all essential data in this module.registerIntegrationObjects(Collection<String> registry, String... ioCodes) Registers Integration Object codes with the given registrytoString()Methods inherited from class org.junit.rules.ExternalResource
apply
-
Constructor Details
-
ModuleEssentialData
-
ModuleEssentialData
-
-
Method Details
-
enableDependencies
protected void enableDependencies()Adds other module essential data, this module depends on. -
getDependencies
Retrieves other modules this essential data module depends on.- Returns:
- a list of other modules this essential data depends on or an empty list, if this module does not depend on other modules.
-
getAllIntegrationObjectCodes
Retrieves integration objects loaded by this module essential data. If dependencies are loaded, integration objects from them also.- Returns:
- codes of all integration objects
-
getAllIntegrationObjectItemCodes
Retrieves integration object items loaded by this module essential data. If dependencies are loaded, integration object items from them also.- Returns:
- codes of all integration object items
-
before
protected void before()- Overrides:
beforein classorg.junit.rules.ExternalResource
-
after
protected void after()- Overrides:
afterin classorg.junit.rules.ExternalResource
-
load
public void load()Loads all essential data in this module. -
registerIntegrationObjects
protected static Set<String> registerIntegrationObjects(Collection<String> registry, String... ioCodes) Registers Integration Object codes with the given registry- Parameters:
registry- Registry to add the integration object codesioCodes- Integration Object codes- Returns:
- Set of Integration Object codes
-
cleanup
public void cleanup()Deletes all essential data present in this module from the system. -
deleteInboundChannelConfigurations
Deletes all inbound channel configurations associated with the specified integration objects.- Parameters:
ioCodes- codes of integration objects, for which inbound channel configuration should be deleted.
-
deleteIntegrationObjects
Deletes the specified integration objects.- Parameters:
ioCodes- code of the integration objects to be deleted.
-
clearAccessRightsForTypes
Removes all access right permisions granted to the specified types.- Parameters:
typeCodes- a collection of {code ComposedType} codes, for which permissions need to be cleared.
-
toString
-