Class BackofficeLibraryFetcher

java.lang.Object
com.hybris.backoffice.BackofficeModulesEnumeration
com.hybris.backoffice.cockpitng.modules.BackofficeLibraryFetcher
All Implemented Interfaces:
com.hybris.cockpitng.core.modules.LibraryFetcher, com.hybris.cockpitng.modules.ModulesEnumeration, Enumeration<com.hybris.cockpitng.core.modules.ModuleInfo>
Direct Known Subclasses:
BackofficeLibraryHandler

public class BackofficeLibraryFetcher extends BackofficeModulesEnumeration implements com.hybris.cockpitng.core.modules.LibraryFetcher
An object responsible for default fetching of available Backoffice modules. It looks for module package (ModuleInfo.getWidgetsPackage() and copies it into specified module lib file.
  • Constructor Details

    • BackofficeLibraryFetcher

      public BackofficeLibraryFetcher()
  • Method Details

    • getExtensionModuleUrl

      protected URI getExtensionModuleUrl(String moduleName)
      Overrides:
      getExtensionModuleUrl in class BackofficeModulesEnumeration
    • canFetchLibrary

      public boolean canFetchLibrary(com.hybris.cockpitng.core.modules.ModuleInfo moduleInfo)
      Specified by:
      canFetchLibrary in interface com.hybris.cockpitng.core.modules.LibraryFetcher
    • canFetchLibrary

      protected boolean canFetchLibrary(String moduleName, String modulePackage)
    • fetchLibrary

      public void fetchLibrary(com.hybris.cockpitng.core.modules.ModuleInfo moduleInfo, File archiveFile) throws com.hybris.cockpitng.core.CockpitApplicationException
      Specified by:
      fetchLibrary in interface com.hybris.cockpitng.core.modules.LibraryFetcher
      Throws:
      com.hybris.cockpitng.core.CockpitApplicationException
    • copyURLToFile

      protected void copyURLToFile(com.hybris.cockpitng.core.modules.ModuleInfo moduleInfo, URL source, File destination) throws com.hybris.cockpitng.modules.CockpitModuleDeploymentException
      Throws:
      com.hybris.cockpitng.modules.CockpitModuleDeploymentException
    • findWidgetPackage

      protected URL findWidgetPackage(String moduleName, String packageName)
    • findWidgetPackage

      protected URL findWidgetPackage(Class<?> managerClass, String packageName)
    • getSimplifiedExtensionModuleURI

      protected URI getSimplifiedExtensionModuleURI(String moduleName)
    • isSimplifiedExtensionModuleURI

      public static boolean isSimplifiedExtensionModuleURI(URI moduleSource)