Package org.javlo.navigation
Class DefaultTemplate
- java.lang.Object
-
- org.javlo.template.Template
-
- org.javlo.navigation.DefaultTemplate
-
- All Implemented Interfaces:
Comparable<Template>
public class DefaultTemplate extends Template
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.javlo.template.Template
Template.TemplateBean, Template.TemplateDateComparator
-
-
Field Summary
Fields Modifier and Type Field Description static Template
INSTANCE
protected static Logger
logger
create a static logger.static String
NAME
-
Fields inherited from class org.javlo.template.Template
__NO_CONTEXT, config, CONFIG_FILE, DEFAULT_TEMPLATE_NAME, EDIT_TEMPLATE_CODE, FORCE_TEMPLATE_PARAM_NAME, GZ_FILE_EXT, PLUGIN_FOLDER, PREVIEW_EDIT_CODE, TEMPLATE_COMPARATOR
-
-
Constructor Summary
Constructors Constructor Description DefaultTemplate()
-
Method Summary
-
Methods inherited from class org.javlo.template.Template
addArea, addRow, checkRenderer, clearRenderer, compareTo, createMainComponentSass, deleteArea, deleteRow, disabledAlternativeTemplate, enabledAlternativeTemplate, equals, extractPropertiesFromHtml, getAdminMailHtml, getAjaxAreas, getAllList, getApplicationInstance, getArea, getAreaExcludeProperties, getAreas, getAreasMap, getBuildId, getColorsMap, getColumnableColClass, getComponentsExclude, getComponentsExcludeForArea, getComponentsIncludeForArea, getConfig, getConfigComponentFile, getConfigItem, getCookiesMessageName, getCookiesMessagePath, getCookiesTypeName, getCSS, getCSSByFolder, getCSSByFolder, getDefaultImageFilter, getDeployId, getDescription, getDynamicComponentsProperties, getEditTemplateMode, getFakeTemplate, getFinalTemplate, getFolder, getFolder, getFolder, getFontReference, getFreeData, getHomeRenderer, getHomeRendererFullName, getHostDetected, getHtmlByFolder, getHTMLIDS, getImageConfigFile, getInstance, getMacroFile, getMacroProperties, getMail, getMailingInstance, getMailJsp, getMailSubject, getMimeTypeImage, getNewAreaName, getNoImageUrl, getPageTypes, getParentName, getPlugins, getRenderer, getRendererFullName, getResources, getResources, getRow, getRowExcludeProperties, getRows, getRssCSS, getRSSImageURL, getRSSRendererFullName, getSearchRenderer, getSourceFolder, getSourceFolderName, getStyle, getTemplateExcludeProperties, getTemplateRealPath, getUserMailHtml, getVersion, getVisualAbsoluteFile, getWebFonts, getWorkMailingTemplateFolder, getWorkTemplateRealPath, hashCode, importTemplateInWebapp, isAdminArea, isAlternativeTemplate, isChildOf, isColorPalette, isColumnable, isCompressResources, isDeleted, isEditable, isEndAreaTag, isFake, isForStatic, isLanguageLinkKeepGetParams, isNavigationArea, isNosecureArea, isParent, isPDFRenderer, isRenderer, isShortkeyToEdit, loadTemplatePart, main, rebuildTemplate, rebuildTemplateCss, reloadConfig, resetRows, saveTemplatePart, setArea, setAuthors, setCreationDate, setDepth, setDominantColor, setHTMLIDS, setImageFiltersRAW, setOwner, setParentName, setProperty, setReady, setSource, setValid, storeRows, storeStyle, toString
-
-
-
-
Field Detail
-
INSTANCE
public static final Template INSTANCE
-
NAME
public static final String NAME
- See Also:
- Constant Field Values
-
logger
protected static Logger logger
create a static logger.
-
-
Method Detail
-
getHTMLFile
public String getHTMLFile()
-
getLoginFile
public String getLoginFile(ContentContext ctx)
- Overrides:
getLoginFile
in classTemplate
-
getRelativeLoginFile
protected String getRelativeLoginFile(ContentContext ctx)
- Overrides:
getRelativeLoginFile
in classTemplate
-
getMenuRenderer
public String getMenuRenderer(Device device)
- Overrides:
getMenuRenderer
in classTemplate
-
getHTMLHomeFile
public String getHTMLHomeFile()
- Overrides:
getHTMLHomeFile
in classTemplate
-
get404File
public String get404File()
- Overrides:
get404File
in classTemplate
-
getLicenceFile
public String getLicenceFile()
- Overrides:
getLicenceFile
in classTemplate
-
getHomeRenderer
public String getHomeRenderer()
-
getLocalWorkTemplateFolder
public String getLocalWorkTemplateFolder()
- Overrides:
getLocalWorkTemplateFolder
in classTemplate
-
getWysiwygCss
public String getWysiwygCss()
Description copied from class:Template
return the css for wysiwyg layout- Overrides:
getWysiwygCss
in classTemplate
-
getWorkTemplateFolder
public String getWorkTemplateFolder()
- Overrides:
getWorkTemplateFolder
in classTemplate
-
getNoImage
public String getNoImage()
- Overrides:
getNoImage
in classTemplate
-
getLocalWorkMailingTemplateFolder
public String getLocalWorkMailingTemplateFolder()
- Overrides:
getLocalWorkMailingTemplateFolder
in classTemplate
-
getRendererFile
protected String getRendererFile(Device device)
- Overrides:
getRendererFile
in classTemplate
-
getRenderer
public String getRenderer(ContentContext ctx, String file) throws IOException, XMLManipulationHelper.BadXMLException
- Overrides:
getRenderer
in classTemplate
- Throws:
IOException
XMLManipulationHelper.BadXMLException
-
getHTMLFile
public String getHTMLFile(Device device)
- Overrides:
getHTMLFile
in classTemplate
-
isTemplateInWebapp
public boolean isTemplateInWebapp(ContentContext ctx) throws IOException
- Overrides:
isTemplateInWebapp
in classTemplate
- Throws:
IOException
-
getRendererFile
public String getRendererFile()
-
isRenderer
public boolean isRenderer()
-
getImageConfigFileName
public String getImageConfigFileName()
- Overrides:
getImageConfigFileName
in classTemplate
-
getSearchFormID
public String getSearchFormID()
- Overrides:
getSearchFormID
in classTemplate
-
getSelectedClass
public String getSelectedClass()
- Overrides:
getSelectedClass
in classTemplate
-
getLastSelectedClass
public String getLastSelectedClass()
- Overrides:
getLastSelectedClass
in classTemplate
-
getUnSelectedClass
public String getUnSelectedClass()
- Overrides:
getUnSelectedClass
in classTemplate
-
getAuthors
public String getAuthors()
- Overrides:
getAuthors
in classTemplate
-
getDominantColor
public String getDominantColor()
- Overrides:
getDominantColor
in classTemplate
-
getVisualFile
public String getVisualFile()
- Overrides:
getVisualFile
in classTemplate
-
getVisualPDFile
public String getVisualPDFile()
- Overrides:
getVisualPDFile
in classTemplate
-
getI18nProperties
public Properties getI18nProperties(GlobalContext globalContext, Locale locale, int mode) throws IOException
- Overrides:
getI18nProperties
in classTemplate
- Throws:
IOException
-
getComponentFile
protected List<File> getComponentFile(GlobalContext globalContext) throws IOException
- Overrides:
getComponentFile
in classTemplate
- Throws:
IOException
-
getAreasForceDisplay
public List<String> getAreasForceDisplay()
this area is display if specialrendere is defined- Overrides:
getAreasForceDisplay
in classTemplate
- Returns:
-
getCreationDate
public Date getCreationDate()
- Overrides:
getCreationDate
in classTemplate
-
getImageFiltersRAW
public String getImageFiltersRAW()
- Overrides:
getImageFiltersRAW
in classTemplate
-
getImageFilters
public List<String> getImageFilters()
- Overrides:
getImageFilters
in classTemplate
-
getLinkEmailFileName
public String getLinkEmailFileName(String lg)
- Overrides:
getLinkEmailFileName
in classTemplate
-
getLinkEmail
public File getLinkEmail(String lg)
- Overrides:
getLinkEmail
in classTemplate
-
isLinkEmail
public boolean isLinkEmail(String lg)
- Overrides:
isLinkEmail
in classTemplate
-
getEmailLinkFileList
public List<String> getEmailLinkFileList()
- Overrides:
getEmailLinkFileList
in classTemplate
-
isSubjectLocked
public boolean isSubjectLocked()
- Overrides:
isSubjectLocked
in classTemplate
-
visibleForRoles
public boolean visibleForRoles(Collection<String> inRoles)
- Overrides:
visibleForRoles
in classTemplate
-
getSpecialRendererTemplate
public String getSpecialRendererTemplate()
- Overrides:
getSpecialRendererTemplate
in classTemplate
-
importTemplateInWebapp
public void importTemplateInWebapp(StaticConfig config, ContentContext ctx) throws IOException
- Overrides:
importTemplateInWebapp
in classTemplate
- Throws:
IOException
-
importTemplateInWebapp
protected void importTemplateInWebapp(StaticConfig config, ContentContext ctx, GlobalContext globalContext, File templateTarget, Map<String,String> childrenData, boolean compressResource, boolean parent, Boolean importComponent, boolean clear) throws IOException
- Overrides:
importTemplateInWebapp
in classTemplate
- Throws:
IOException
-
getImageConfig
public ConfigurationProperties getImageConfig()
- Overrides:
getImageConfig
in classTemplate
-
getRSSRendererFile
protected String getRSSRendererFile()
- Overrides:
getRSSRendererFile
in classTemplate
-
getPageTypesRAW
public String getPageTypesRAW()
- Overrides:
getPageTypesRAW
in classTemplate
-
getPDFHeigth
public int getPDFHeigth()
- Overrides:
getPDFHeigth
in classTemplate
-
getQRCodeSize
public int getQRCodeSize()
- Overrides:
getQRCodeSize
in classTemplate
-
getRAWPlugins
protected String getRAWPlugins()
- Overrides:
getRAWPlugins
in classTemplate
-
getRenderers
public List<String> getRenderers()
Description copied from class:Template
return all renderer defined in the template.- Overrides:
getRenderers
in classTemplate
- Returns:
-
getExcludeProperties
protected String getExcludeProperties(String zone)
- Overrides:
getExcludeProperties
in classTemplate
-
getHTMLFileParams
public String getHTMLFileParams(Device device)
- Overrides:
getHTMLFileParams
in classTemplate
-
getSenders
public List<javax.mail.internet.InternetAddress> getSenders()
- Overrides:
getSenders
in classTemplate
-
isBootstrap
public boolean isBootstrap()
- Overrides:
isBootstrap
in classTemplate
-
getColorList
public List<ExtendedColor> getColorList()
- Overrides:
getColorList
in classTemplate
-
getMailingTemplate
public String getMailingTemplate()
- Overrides:
getMailingTemplate
in classTemplate
-
getMessageContainerId
public String getMessageContainerId()
- Overrides:
getMessageContainerId
in classTemplate
-
getMessageTemplate
public String getMessageTemplate(ContentContext ctx)
- Overrides:
getMessageTemplate
in classTemplate
-
getLayouts
public List<String> getLayouts()
Description copied from class:Template
return all renderer defined in the template.- Overrides:
getLayouts
in classTemplate
- Returns:
-
getStructures
public List<String> getStructures()
Description copied from class:Template
return all renderer defined in the template.- Overrides:
getStructures
in classTemplate
- Returns:
-
isDefaultRenderer
protected boolean isDefaultRenderer()
- Overrides:
isDefaultRenderer
in classTemplate
-
getSpecialAreaRenderer
public String getSpecialAreaRenderer()
- Overrides:
getSpecialAreaRenderer
in classTemplate
-
getTemplateData
public TemplateData getTemplateData()
- Overrides:
getTemplateData
in classTemplate
-
getEscapeMenuId
public String getEscapeMenuId()
- Overrides:
getEscapeMenuId
in classTemplate
-
getBootstrapVersion
public Integer getBootstrapVersion()
- Overrides:
getBootstrapVersion
in classTemplate
-
getColumnableRowTag
public String getColumnableRowTag()
- Overrides:
getColumnableRowTag
in classTemplate
-
getColumnableColTag
public String getColumnableColTag()
- Overrides:
getColumnableColTag
in classTemplate
-
getColumnableRowStyle
public String getColumnableRowStyle()
- Overrides:
getColumnableRowStyle
in classTemplate
-
getColumnableRowClass
public String getColumnableRowClass()
- Overrides:
getColumnableRowClass
in classTemplate
-
getColumnableColStyleDefault
public String getColumnableColStyleDefault()
- Overrides:
getColumnableColStyleDefault
in classTemplate
-
getColumnableColClassDefault
public String getColumnableColClassDefault()
- Overrides:
getColumnableColClassDefault
in classTemplate
-
getColumnableColStyle
public String getColumnableColStyle(int size)
- Overrides:
getColumnableColStyle
in classTemplate
-
getColumnableRowTagIn
public String getColumnableRowTagIn()
- Overrides:
getColumnableRowTagIn
in classTemplate
-
getColumnableColTagIn
public String getColumnableColTagIn()
- Overrides:
getColumnableColTagIn
in classTemplate
-
getColumnableStyleTagIn
public String getColumnableStyleTagIn()
- Overrides:
getColumnableStyleTagIn
in classTemplate
-
getColumnableClassTagIn
public String getColumnableClassTagIn()
- Overrides:
getColumnableClassTagIn
in classTemplate
-
getColumnableSizes
public List<Integer> getColumnableSizes()
- Overrides:
getColumnableSizes
in classTemplate
-
getQuietableAreaMap
public Map<String,String> getQuietableAreaMap()
- Overrides:
getQuietableAreaMap
in classTemplate
-
isRealContentFromAnyArea
public boolean isRealContentFromAnyArea()
Description copied from class:Template
true if all area can be signifiant for read content, false if only main area is signifiant.- Overrides:
isRealContentFromAnyArea
in classTemplate
- Returns:
-
isRemoveEmptyArea
public boolean isRemoveEmptyArea()
Description copied from class:Template
if area empty remove from html (default true)- Overrides:
isRemoveEmptyArea
in classTemplate
- Returns:
-
isImportParentComponents
public boolean isImportParentComponents()
- Overrides:
isImportParentComponents
in classTemplate
-
getDefaultArea
public String getDefaultArea()
- Overrides:
getDefaultArea
in classTemplate
-
getDynamicComponentList
public List<String> getDynamicComponentList()
- Overrides:
getDynamicComponentList
in classTemplate
-
-