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
-
Method Summary
Modifier and TypeMethodDescriptiongetComponent
(String templateFilename) Getter for the fieldcoreFolderPath
.getCoreIconFolderPath.getCoreTemplateFolderUrl
(String filesystemPath, javax.servlet.ServletContext servletContext, String templateFolderUrl) Getter for the fieldcoreTemplateFolderUrl
.getCoreViewFolderPath.getLegacyComponent
(String templateId) getTemplate.Getter for the fieldtemplates
.Getter for the fieldthemeFolderPath
.getThemeIconFolderPath.getThemeViewFolderPath.void
init()
loadLegacyTemplate
(String filename) void
static Path
toURI.void
updateTemplates
(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, javax.servlet.ServletContext servletContext, String templateFolderUrl) throws MalformedURLException, URISyntaxException Getter for the field
coreTemplateFolderUrl
.- Parameters:
filesystemPath
- aString
object.servletContext
- aServletContext
object.templateFolderUrl
- aString
object.- Returns:
- a
Optional
object. - Throws:
MalformedURLException
- if any.UnsupportedEncodingException
- if any.URISyntaxException
- if any.
-
updateTemplates
updateTemplates.
-
getLegacyComponents
Getter for the field
templates
.- Returns:
- a
Collection
object.
-
getLegacyComponentMap
-
getLegacyComponent
getTemplate.
- Parameters:
templateId
- aString
object.- Returns:
- a
CMSPageTemplate
object.
-
getThemeFolderPath
Getter for the field
themeFolderPath
.- Returns:
- the themeFolderPath
-
getCoreFolderPath
Getter for the field
coreFolderPath
.- Returns:
- the coreFolderPath
-
getCoreViewFolderPath
getCoreViewFolderPath.
- Returns:
- a
Optional
object.
-
getThemeViewFolderPath
getThemeViewFolderPath.
- Returns:
- a
Optional
object.
-
getCoreIconFolderPath
getCoreIconFolderPath.
- Returns:
- a
Optional
object.
-
getThemeIconFolderPath
getThemeIconFolderPath.
- Returns:
- a
Optional
object.
-
getComponent
-