Class ModuleEssentialData

    • Method Summary

      All Methods Static Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected void after()  
      protected void before()  
      void cleanup()
      Deletes all essential data present in this module from the system.
      protected static void clearAccessRightsForTypes​(java.util.Collection<java.lang.String> typeCodes)
      Removes all access right permisions granted to the specified types.
      protected static void deleteInboundChannelConfigurations​(java.util.Collection<java.lang.String> ioCodes)
      Deletes all inbound channel configurations associated with the specified integration objects.
      protected static void deleteIntegrationObjects​(java.util.Collection<java.lang.String> ioCodes)
      Deletes the specified integration objects.
      protected void enableDependencies()
      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.
      void load()
      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 registry
      java.lang.String toString()  
      • Methods inherited from class org.junit.rules.ExternalResource

        apply
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • 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:
        before in class org.junit.rules.ExternalResource
      • after

        protected void after()
        Overrides:
        after in class org.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 codes
        ioCodes - 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:
        toString in class java.lang.Object