Interface TemplateSet
public interface TemplateSet
A template set
- Since:
- 3.0
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionProvides the conversion table to be used with this template set.@Nullable String
getDescription
(Language language) Get the editorial description of this TemplateSet for the given language ornull
if not defined for the language@Nullable String
getDisplayName
(Language language) Gets display name of the TemplateSet for the given language.Gets the extension of the TemplateSetlong
getId()
Provides the ID for this template set.Not evaluated by FirstSpirit.@Nullable PresentationChannel
Gets thePresentationChannel
of this TemplateSet@Nullable String
Gets the name of the presentation channel of the template setGets the conversion table of the template setgetUid()
Returns the unique identifier of this TemplateSet.boolean
isActive()
Is this TemplateSet activeboolean
Returns whether or not the template inspection is enabled for this template set.boolean
Deprecated.since 5.0.302 - no replacementvoid
setActive
(boolean active) Activate or deactivate the TemplateSetvoid
Defines the conversion table to be used with this template set.void
setConversionTable
(String tableName) Sets the conversion table of the template setvoid
setDescription
(Language language, String description) Sets the editorial description of this TemplateSet for the given languagevoid
setDisplayName
(Language language, String displayName) Sets the display name of the TemplateSet for the given languagevoid
setExtension
(String extension) Sets the extension of the TemplateSetvoid
setLinefeed
(String linefeed) Not evaluated by FirstSpirit.void
setPresentationChannel
(String channelName) Sets the PresentationChannel of the TemplateSetvoid
setPresentationChannelId
(long channel) Defines the presentation channel of this template set.void
setTemplateInspectionEnabled
(boolean enabled) Enables or disables the template inspection for this template set.void
Sets the unique identifier of this TemplateSet.void
setUseWebeditForPreview
(boolean useWebedit) Deprecated.since 5.0.302 - no replacement
-
Field Details
-
DOS_LINEFEED
Linefeed for Windows.- Since:
- 4.0
- See Also:
-
UNIX_LINEFEED
Linefeed for Unix-based systems.- Since:
- 4.0
- See Also:
-
MAC_LINEFEED
Linefeed for Apple.- Since:
- 4.0
- See Also:
-
-
Method Details
-
getUid
String getUid()Returns the unique identifier of this TemplateSet.- Returns:
- the uid of this TemplateSet
- Since:
- 4.2.12
- See Also:
-
setUid
Sets the unique identifier of this TemplateSet.- Since:
- 4.2.12
- See Also:
-
getDisplayName
Gets display name of the TemplateSet for the given language.- Parameters:
language
-- Returns:
- the name or
null
if not defined - Since:
- 4.2.12
-
setDisplayName
Sets the display name of the TemplateSet for the given language- Parameters:
displayName
- the new displaynamelanguage
- the language to set the display name for- Since:
- 4.2.12
-
getDescription
Get the editorial description of this TemplateSet for the given language ornull
if not defined for the language- Parameters:
language
- the language to get the description for- Returns:
- the description for the given language if defined,
null
otherwise - Since:
- 4.2.12
-
setDescription
Sets the editorial description of this TemplateSet for the given language- Parameters:
description
- the new descriptionlanguage
- the language to set the description for- Since:
- 4.2.12
-
getExtension
String getExtension()Gets the extension of the TemplateSet- Returns:
- the extension value
- Since:
- 3.0
-
setExtension
Sets the extension of the TemplateSet- Parameters:
extension
- the new extension- Since:
- 3.0
-
getPresentationChannelName
Gets the name of the presentation channel of the template set- Returns:
- the presentation channel name
- Since:
- 3.0
-
setPresentationChannel
Sets the PresentationChannel of the TemplateSet- Parameters:
channelName
- the PresentationChannel identified by its name- Since:
- 3.0
-
getPresentationChannel
Gets thePresentationChannel
of this TemplateSet- Returns:
PresentationChannel
of this TemplateSet- Since:
- 4.0
-
setPresentationChannelId
void setPresentationChannelId(long channel) Defines the presentation channel of this template set.- Parameters:
channel
- The presentation channel id.- Since:
- 4.0
-
isActive
boolean isActive()Is this TemplateSet active- Returns:
- is active
- Since:
- 3.0
-
setActive
void setActive(boolean active) Activate or deactivate the TemplateSet- Parameters:
active
- activate/deactivate- Since:
- 3.0
-
setConversionTable
Sets the conversion table of the template set- Parameters:
tableName
- the name of the conversion table- Since:
- 3.0
-
setConversionTable
Defines the conversion table to be used with this template set.- Parameters:
table
- The conversion table.- Since:
- 4.0
-
getConversionTable
ConversionTable getConversionTable()Provides the conversion table to be used with this template set.- Returns:
- The conversion table.
- Since:
- 4.0
-
getTemplateSetConversionTable
String getTemplateSetConversionTable()Gets the conversion table of the template set- Returns:
- the name of the conversion table
- Since:
- 3.0
-
getId
long getId()Provides the ID for this template set.- Returns:
- The ID.
- Since:
- 4.0
-
getLinefeed
String getLinefeed()Not evaluated by FirstSpirit. May be used inContentProcessor
implementations.- Since:
- 4.0
-
setLinefeed
Not evaluated by FirstSpirit. May be used inContentProcessor
implementations.- Since:
- 4.0
-
setUseWebeditForPreview
Deprecated.since 5.0.302 - no replacementDefines to use this template set for webedit based previews.- Parameters:
useWebedit
-true
, to use as preview.- Since:
- 4.0
-
isUseWebeditForPreview
Deprecated.since 5.0.302 - no replacementIndicates whether to use this template set for webedit based previews.- Returns:
true
, if used for preview.- Since:
- 4.0
-
isTemplateInspectionEnabled
boolean isTemplateInspectionEnabled()Returns whether or not the template inspection is enabled for this template set. If enabled, the preview generation will try to enhance the generated html code with template related attributes. This only works for html based template sets.- Returns:
- template inspection enabled state
- Since:
- 5.1.304
-
setTemplateInspectionEnabled
void setTemplateInspectionEnabled(boolean enabled) Enables or disables the template inspection for this template set. If enabled, the preview generation will try to enhance the generated html code with template related attributes. This only works for html based template sets.- Parameters:
enabled
- template inspection enabled state- Since:
- 5.1.304
-