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,java.util.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 Summary
Constructors Constructor Description BackofficeLibraryFetcher()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanFetchLibrary(com.hybris.cockpitng.core.modules.ModuleInfo moduleInfo)protected booleancanFetchLibrary(java.lang.String moduleName, java.lang.String modulePackage)protected voidcopyURLToFile(com.hybris.cockpitng.core.modules.ModuleInfo moduleInfo, java.net.URL source, java.io.File destination)voidfetchLibrary(com.hybris.cockpitng.core.modules.ModuleInfo moduleInfo, java.io.File archiveFile)protected java.net.URLfindWidgetPackage(java.lang.Class<?> managerClass, java.lang.String packageName)protected java.net.URLfindWidgetPackage(java.lang.String moduleName, java.lang.String packageName)protected java.net.URIgetExtensionModuleUrl(java.lang.String moduleName)protected java.net.URIgetSimplifiedExtensionModuleURI(java.lang.String moduleName)static booleanisSimplifiedExtensionModuleURI(java.net.URI moduleSource)-
Methods inherited from class com.hybris.backoffice.BackofficeModulesEnumeration
buildModuleInfo, createModulesIterator, getModuleIcon, getModulePackage, getModulesIterator, hasMoreElements, isExtensionModuleURI, nextElement, reset, resolveParentModules
-
-
-
-
Method Detail
-
getExtensionModuleUrl
protected java.net.URI getExtensionModuleUrl(java.lang.String moduleName)
- Overrides:
getExtensionModuleUrlin classBackofficeModulesEnumeration
-
canFetchLibrary
public boolean canFetchLibrary(com.hybris.cockpitng.core.modules.ModuleInfo moduleInfo)
- Specified by:
canFetchLibraryin interfacecom.hybris.cockpitng.core.modules.LibraryFetcher
-
canFetchLibrary
protected boolean canFetchLibrary(java.lang.String moduleName, java.lang.String modulePackage)
-
fetchLibrary
public void fetchLibrary(com.hybris.cockpitng.core.modules.ModuleInfo moduleInfo, java.io.File archiveFile) throws com.hybris.cockpitng.core.CockpitApplicationException- Specified by:
fetchLibraryin interfacecom.hybris.cockpitng.core.modules.LibraryFetcher- Throws:
com.hybris.cockpitng.core.CockpitApplicationException
-
copyURLToFile
protected void copyURLToFile(com.hybris.cockpitng.core.modules.ModuleInfo moduleInfo, java.net.URL source, java.io.File destination) throws com.hybris.cockpitng.modules.CockpitModuleDeploymentException- Throws:
com.hybris.cockpitng.modules.CockpitModuleDeploymentException
-
findWidgetPackage
protected java.net.URL findWidgetPackage(java.lang.String moduleName, java.lang.String packageName)
-
findWidgetPackage
protected java.net.URL findWidgetPackage(java.lang.Class<?> managerClass, java.lang.String packageName)
-
getSimplifiedExtensionModuleURI
protected java.net.URI getSimplifiedExtensionModuleURI(java.lang.String moduleName)
-
isSimplifiedExtensionModuleURI
public static boolean isSimplifiedExtensionModuleURI(java.net.URI moduleSource)
-
-