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.ExternalResourceAll essential data present in a module
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedModuleEssentialData(java.util.List<EssentialDataFile> files)protectedModuleEssentialData(java.util.List<EssentialDataFile> files, java.util.Set<java.lang.String> ioCodes)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected voidafter()protected voidbefore()voidcleanup()Deletes all essential data present in this module from the system.protected static voidclearAccessRightsForTypes(java.util.Collection<java.lang.String> typeCodes)Removes all access right permisions granted to the specified types.protected static voiddeleteInboundChannelConfigurations(java.util.Collection<java.lang.String> ioCodes)Deletes all inbound channel configurations associated with the specified integration objects.protected static voiddeleteIntegrationObjects(java.util.Collection<java.lang.String> ioCodes)Deletes the specified integration objects.protected voidenableDependencies()Adds other module essential data, this module depends on.java.util.Set<java.lang.String>getAllIntegrationObjectCodes()Retrieves integration objects loaded by this module essential data.java.util.Set<java.lang.String>getAllIntegrationObjectItemCodes()Retrieves integration object items loaded by this module essential data.protected abstract java.util.List<ModuleEssentialData>getDependencies()Retrieves other modules this essential data module depends on.voidload()Loads all essential data in this module.protected static java.util.Set<java.lang.String>registerIntegrationObjects(java.util.Collection<java.lang.String> registry, java.lang.String... ioCodes)Registers Integration Object codes with the given registryjava.lang.StringtoString()
-
-
-
Constructor Detail
-
ModuleEssentialData
protected ModuleEssentialData(java.util.List<EssentialDataFile> files)
-
ModuleEssentialData
protected ModuleEssentialData(java.util.List<EssentialDataFile> files, java.util.Set<java.lang.String> ioCodes)
-
-
Method Detail
-
enableDependencies
protected void enableDependencies()
Adds other module essential data, this module depends on.
-
getDependencies
@Nonnull protected abstract java.util.List<ModuleEssentialData> 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
public java.util.Set<java.lang.String> 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
public java.util.Set<java.lang.String> 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 java.util.Set<java.lang.String> registerIntegrationObjects(java.util.Collection<java.lang.String> registry, java.lang.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
protected static void deleteInboundChannelConfigurations(java.util.Collection<java.lang.String> ioCodes)
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
protected static void deleteIntegrationObjects(java.util.Collection<java.lang.String> ioCodes)
Deletes the specified integration objects.- Parameters:
ioCodes- code of the integration objects to be deleted.
-
clearAccessRightsForTypes
protected static void clearAccessRightsForTypes(java.util.Collection<java.lang.String> typeCodes)
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
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-