Package io.goobi.viewer.model.cms.pages
Class CMSTemplateManager
java.lang.Object
io.goobi.viewer.model.cms.pages.CMSTemplateManager
- All Implemented Interfaces:
Serializable
@Singleton
@Startup
@Named("cmsTemplateManager")
public class CMSTemplateManager
extends Object
implements Serializable
CMSTemplateManager class.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetComponent(String templateFilename) Getter for the fieldcoreFolderPath.getCoreIconFolderPath.getCoreTemplateFolderUrl(String filesystemPath, jakarta.servlet.ServletContext servletContext, String templateFolderUrl) Getter for the fieldcoreTemplateFolderUrl.getCoreViewFolderPath.getLegacyComponent(String templateId) getTemplate.Getter for the fieldtemplates.Getter for the fieldthemeFolderPath.getThemeIconFolderPath.getThemeViewFolderPath.voidinit()loadLegacyTemplate(String filename) voidstatic PathtoURI.voidupdateTemplates(Optional<Path> corePath, Optional<Path> themePath) updateTemplates.
-
Constructor Details
-
CMSTemplateManager
public CMSTemplateManager() -
CMSTemplateManager
- Throws:
PresentationException
-
-
Method Details
-
init
- Throws:
PresentationException
-
loadLegacyTemplate
-
getContentManager
-
reloadContentManager
public void reloadContentManager() -
toURI
toURI.
-
getCoreTemplateFolderUrl
public static Optional<URL> getCoreTemplateFolderUrl(String filesystemPath, jakarta.servlet.ServletContext servletContext, String templateFolderUrl) throws MalformedURLException, URISyntaxException Getter for the field
coreTemplateFolderUrl.- Parameters:
filesystemPath- aStringobject.servletContext- aServletContextobject.templateFolderUrl- aStringobject.- Returns:
- a
Optionalobject. - Throws:
MalformedURLException- if any.UnsupportedEncodingException- if any.URISyntaxException- if any.
-
updateTemplates
updateTemplates.
-
getLegacyComponents
Getter for the field
templates.- Returns:
- a
Collectionobject.
-
getLegacyComponentMap
-
getLegacyComponent
getTemplate.
- Parameters:
templateId- aStringobject.- Returns:
- a
CMSPageTemplateobject.
-
getThemeFolderPath
Getter for the field
themeFolderPath.- Returns:
- the themeFolderPath
-
getCoreFolderPath
Getter for the field
coreFolderPath.- Returns:
- the coreFolderPath
-
getCoreViewFolderPath
getCoreViewFolderPath.
- Returns:
- a
Optionalobject.
-
getThemeViewFolderPath
getThemeViewFolderPath.
- Returns:
- a
Optionalobject.
-
getCoreIconFolderPath
getCoreIconFolderPath.
- Returns:
- a
Optionalobject.
-
getThemeIconFolderPath
getThemeIconFolderPath.
- Returns:
- a
Optionalobject.
-
getComponent
-