public class TemplatePackageRegistry extends Object
| Modifier and Type | Field and Description |
|---|---|
static Comparator<JahiaTemplatesPackage> |
TEMPLATE_PACKAGE_COMPARATOR |
| Constructor and Description |
|---|
TemplatePackageRegistry()
Initializes an instance of this class.
|
public static final Comparator<JahiaTemplatesPackage> TEMPLATE_PACKAGE_COMPARATOR
public TemplatePackageRegistry()
public Map<String,BackgroundAction> getBackgroundActions()
public List<org.springframework.web.servlet.HandlerMapping> getSpringHandlerMappings()
public List<ErrorHandler> getErrorHandlers()
ErrorHandler instancesErrorHandler instancespublic Map<String,Set<JahiaTemplatesPackage>> getModulesWithViewsPerComponents()
public void addModuleWithViewsForComponent(String component, JahiaTemplatesPackage module)
public void removeModuleWithViewsForComponent(String component, JahiaTemplatesPackage module)
public void afterInitializationForModules()
public boolean isAfterInitializeDone()
public void afterInitializationForModule(JahiaTemplatesPackage pack)
public boolean contains(String moduleName)
moduleName - the template package name to check fortrue, if the specified template package already
exists in the repositorypublic boolean containsAll(List<String> moduleNames)
moduleNames - the list of template package names to check fortrue, if specified template packages are all present
in the repositorypublic boolean containsId(String moduleId)
public List<JahiaTemplatesPackage> getAvailablePackages()
public int getAvailablePackagesCount()
public Set<ModuleVersion> getAvailableVersionsForModule(String moduleNameOrId)
public boolean areVersionsForModuleAvailable(String moduleNameOrId)
public Map<String,SortedMap<ModuleVersion,JahiaTemplatesPackage>> getAllModuleVersions()
public Map<String,JahiaTemplatesPackage> getRegisteredModules()
public List<RenderFilter> getRenderFilters()
RenderFilter instances, configured for the specified templates package.RenderFilter instances, configured for the specified templates packagepublic final boolean hasEncounteredIssuesWithDefinitions()
public JahiaTemplatesPackage lookup(String packageName)
null if the
package with the specified name is not registered in the repository.packageName - the template package name to search fornull if the
package with the specified name is not registered in the
repositorypublic JahiaTemplatesPackage lookupByBundle(org.osgi.framework.Bundle osgiBundle)
null if the package is not registered.osgiBundle - the corresponding OSGi bundlenull if the package is not registered@Deprecated public JahiaTemplatesPackage lookupByFileName(String fileName)
lookupById(String) insteadnull if the
package with the specified file name is not registered in the repository.fileName - the template package Id to search fornull if the
package with the specified file name is not registered in the
repositorypublic JahiaTemplatesPackage lookupById(String moduleId)
null if the
package with the specified Id is not registered in the repository.moduleId - the template package Id to search fornull if the
package with the specified Id is not registered in the
repositorypublic JahiaTemplatesPackage lookupByNameAndVersion(String moduleName, ModuleVersion moduleVersion)
@Deprecated public JahiaTemplatesPackage lookupByFileNameAndVersion(String fileName, ModuleVersion moduleVersion)
lookupByIdAndVersion(String, ModuleVersion) insteadpublic JahiaTemplatesPackage lookupByIdAndVersion(String moduleId, ModuleVersion moduleVersion)
public void registerPackageVersion(JahiaTemplatesPackage pack)
public void unregisterPackageVersion(JahiaTemplatesPackage pack)
public void register(JahiaTemplatesPackage templatePackage)
templatePackage - the template package to addpublic JahiaTemplatesPackage getPackageForResourceBundle(String resourceBundle)
public void addPackageForResourceBundle(String bundle, JahiaTemplatesPackage module)
public boolean computeDependencies(JahiaTemplatesPackage pack)
pack - package to compute dependenciespublic List<JahiaTemplatesPackage> getDependantModules(JahiaTemplatesPackage module)
public List<JahiaTemplatesPackage> getDependantModules(JahiaTemplatesPackage module, boolean includeNonStarted)
public void reset()
public void unregister(JahiaTemplatesPackage templatePackage)
public void resetBeanModules()
public void handleJCREventListener(Object bean, boolean register)
Copyright © 2004–2020 Jahia Solutions Group SA. All rights reserved.