public class DefaultTemplate extends Template
Template.TemplateBean, Template.TemplateDateComparator
Modifier and Type | Field and Description |
---|---|
static Template |
INSTANCE |
protected static Logger |
logger
create a static logger.
|
static String |
NAME |
__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 and Description |
---|
DefaultTemplate() |
addArea, addRow, checkRenderer, clearRenderer, compareTo, deleteArea, deleteRow, disabledAlternativeTemplate, enabledAlternativeTemplate, equals, getAllList, getApplicationInstance, getArea, getAreaExcludeProperties, getAreas, getAreasMap, getBuildId, getColorsMap, getComponentsExclude, getComponentsExcludeForArea, getComponentsIncludeForArea, getConfig, getConfigComponentFile, getConfigItem, getCookiesMessageName, getCookiesMessagePath, getCSS, getCSSByFolder, getCSSByFolder, getDefaultImageFilter, getDeployId, getDescription, getDynamicComponentsProperties, getEditTemplateMode, getFakeTemplate, getFinalTemplate, getFolder, getFolder, getFolder, getFontReference, getFreeData, getHomeRenderer, getHomeRendererFullName, getHTMLIDS, getImageConfigFile, getInstance, getMacroFile, getMacroProperties, getMail, getMailingInstance, getMailJsp, getMailSubject, getMimeTypeImage, getNewAreaName, getPageTypes, getParentName, getPlugins, getRenderer, getRendererFullName, getResources, getResources, getRow, getRowExcludeProperties, getRows, getRssCSS, getRSSImageURL, getRSSRendererFullName, getSearchRenderer, getSourceFolder, getSourceFolderName, getStyle, getTemplateExcludeProperties, getTemplateRealPath, getVersion, getVisualAbsoluteFile, getWebFonts, getWorkMailingTemplateFolder, getWorkTemplateRealPath, hashCode, isAdminArea, isAlternativeTemplate, isChildOf, isColorPalette, isCompressResources, isDeleted, isEditable, isEndAreaTag, isFake, isForStatic, isLanguageLinkKeepGetParams, isNavigationArea, isNosecureArea, isParent, isPDFRenderer, isRealContentFromAnyArea, isRenderer, loadTemplatePart, main, reloadConfig, resetRows, saveTemplatePart, setArea, setAuthors, setCreationDate, setDepth, setDominantColor, setHTMLIDS, setImageFiltersRAW, setOwner, setParentName, setProperty, setReady, setSource, setValid, storeRows, storeStyle, toString
public static final Template INSTANCE
public static final String NAME
protected static Logger logger
public String getHTMLFile()
public String getMenuRenderer(Device device)
getMenuRenderer
in class Template
public String getHTMLHomeFile()
getHTMLHomeFile
in class Template
public String get404File()
get404File
in class Template
public String getLicenceFile()
getLicenceFile
in class Template
public String getHomeRenderer()
public String getLocalWorkTemplateFolder()
getLocalWorkTemplateFolder
in class Template
public String getWysiwygCss()
Template
getWysiwygCss
in class Template
public String getWorkTemplateFolder()
getWorkTemplateFolder
in class Template
public String getLocalWorkMailingTemplateFolder()
getLocalWorkMailingTemplateFolder
in class Template
protected String getRendererFile(Device device)
getRendererFile
in class Template
public String getRenderer(ContentContext ctx, String file) throws IOException, XMLManipulationHelper.BadXMLException
getRenderer
in class Template
IOException
XMLManipulationHelper.BadXMLException
public String getHTMLFile(Device device)
getHTMLFile
in class Template
public boolean isTemplateInWebapp(ContentContext ctx) throws IOException
isTemplateInWebapp
in class Template
IOException
public String getRendererFile()
public boolean isRenderer()
public String getImageConfigFileName()
getImageConfigFileName
in class Template
public String getSearchFormID()
getSearchFormID
in class Template
public String getSelectedClass()
getSelectedClass
in class Template
public String getLastSelectedClass()
getLastSelectedClass
in class Template
public String getUnSelectedClass()
getUnSelectedClass
in class Template
public String getAuthors()
getAuthors
in class Template
public String getDominantColor()
getDominantColor
in class Template
public String getVisualFile()
getVisualFile
in class Template
public String getVisualPDFile()
getVisualPDFile
in class Template
public Properties getI18nProperties(GlobalContext globalContext, Locale locale, int mode) throws IOException
getI18nProperties
in class Template
IOException
protected List<File> getComponentFile(GlobalContext globalContext) throws IOException
getComponentFile
in class Template
IOException
public List<String> getAreasForceDisplay()
getAreasForceDisplay
in class Template
public Date getCreationDate()
getCreationDate
in class Template
public String getImageFiltersRAW()
getImageFiltersRAW
in class Template
public List<String> getImageFilters()
getImageFilters
in class Template
public String getLinkEmailFileName(String lg)
getLinkEmailFileName
in class Template
public File getLinkEmail(String lg)
getLinkEmail
in class Template
public boolean isLinkEmail(String lg)
isLinkEmail
in class Template
public List<String> getEmailLinkFileList()
getEmailLinkFileList
in class Template
public boolean isSubjectLocked()
isSubjectLocked
in class Template
public boolean visibleForRoles(Collection<String> inRoles)
visibleForRoles
in class Template
public Collection<String> getCategories()
getCategories
in class Template
public String getSpecialRendererTemplate()
getSpecialRendererTemplate
in class Template
public void importTemplateInWebapp(StaticConfig config, ContentContext ctx) throws IOException
importTemplateInWebapp
in class Template
IOException
protected void importTemplateInWebapp(StaticConfig config, ContentContext ctx, GlobalContext globalContext, File templateTarget, Map<String,String> childrenData, boolean compressResource, boolean parent, File rawCss) throws IOException
importTemplateInWebapp
in class Template
IOException
public ConfigurationProperties getImageConfig()
getImageConfig
in class Template
protected String getRSSRendererFile()
getRSSRendererFile
in class Template
public String getPageTypesRAW()
getPageTypesRAW
in class Template
public int getPDFHeigth()
getPDFHeigth
in class Template
public int getQRCodeSize()
getQRCodeSize
in class Template
protected String getRAWPlugins()
getRAWPlugins
in class Template
public List<String> getRenderers()
Template
getRenderers
in class Template
protected String getExcludeProperties(String zone)
getExcludeProperties
in class Template
public String getHTMLFileParams(Device device)
getHTMLFileParams
in class Template
public List<javax.mail.internet.InternetAddress> getSenders()
getSenders
in class Template
public boolean isBootstrap()
isBootstrap
in class Template
public List<ExtendedColor> getColorList()
getColorList
in class Template
public String getMailingTemplate()
getMailingTemplate
in class Template
public String getMessageContainerId()
getMessageContainerId
in class Template
public String getMessageTemplate(ContentContext ctx)
getMessageTemplate
in class Template
public List<String> getLayouts()
Template
getLayouts
in class Template
public List<String> getStructures()
Template
getStructures
in class Template
protected boolean isDefaultRenderer()
isDefaultRenderer
in class Template
public String getSpecialAreaRenderer()
getSpecialAreaRenderer
in class Template
public TemplateData getTemplateData()
getTemplateData
in class Template
public String getEscapeMenuId()
getEscapeMenuId
in class Template
Copyright © 2012-2018. All Rights Reserved.