public class EmailClassTemplate extends BaseManager
Modifier and Type | Class and Description |
---|---|
static class |
EmailClassTemplate.LayoutMode |
BaseManager.PackEntryChangeListener, BaseManager.RegistryEntry
TYPE_EJP, TYPE_NATIVE
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getBody(int languageID)
Returns the body for the given language id.
|
java.lang.String |
getBody(int languageID,
boolean fallbackToDefault)
Returns the body for the given language id.
|
java.lang.String |
getDescription(int languageID)
Returns the description for the given language id.
|
java.lang.String |
getDisplayName(int languageID,
boolean fallbackToDefaultName)
Returns the display name for the given language id.
|
boolean |
getIsDefault()
Returns whether this is the default template of this class.
|
EmailClassTemplate.LayoutMode |
getLayoutMode()
Returns the layout mode to use when rendering this template.
|
java.lang.String |
getName()
Returns the name of this template.
|
GUID |
getSpecificLayoutID()
Returns the id of the layout to use when this template is configured to use a
specific layout . |
java.lang.String |
getSubject(int languageID)
Returns the subject for the given language id.
|
java.lang.String |
getSubject(int languageID,
boolean fallbackToDefault)
Returns the subject for the given language id.
|
boolean |
isEnabled()
Returns whether this template is enabled and can be used.
|
void |
setBody(int languageID,
java.lang.String body)
Sets the body for the given language.
|
void |
setDescription(int languageID,
java.lang.String description)
Sets the description for the given language.
|
void |
setDisplayName(int languageID,
java.lang.String displayName)
Sets the display name for the given language.
|
void |
setEnabled(boolean enabled)
Specifies whether this template is enabled and can be used.
|
void |
setLayoutMode(EmailClassTemplate.LayoutMode layoutMode)
Specifies the layout mode to use when rendering this template.
|
void |
setSpecificLayoutID(GUID layoutID)
Specifies the id of the layout to use when this template is configured to use a
specific layout . |
void |
setSubject(int languageID,
java.lang.String subject)
Sets the subject for the given language.
|
addChangeListener, addChangeListener, addGlobalChangeListener, addPackListener, forgetPush, getPack, isShared, popPack, pushPack, removeChangeListener, removeChangeListener, removeGlobalChangeListener, removePackListener, save, save, toString, writeAsXML
public java.lang.String getName()
public boolean isEnabled()
true
if this template is enabled and can be used, false
otherwisepublic void setEnabled(boolean enabled)
enabled
- true
if this template is enabled and can be used, false
otherwisepublic boolean getIsDefault()
public java.lang.String getDescription(int languageID)
languageID
- specifying the language for the descriptionpublic void setDescription(int languageID, java.lang.String description)
languageID
- the language to set the description fordescription
- the new descriptionpublic java.lang.String getDisplayName(int languageID, boolean fallbackToDefaultName)
languageID
- specifying the language for the display namefallbackToDefaultName
- when set to true this method returns the default name when now localized display name is available otherwise nullpublic void setDisplayName(int languageID, java.lang.String displayName)
languageID
- the language to set the display name fordisplayName
- the new display namepublic java.lang.String getSubject(int languageID)
languageID
- specifying the language for the subjectpublic java.lang.String getSubject(int languageID, boolean fallbackToDefault)
languageID
- specifying the language for the subjectfallbackToDefault
- if no subject for the given language can be found the default subject is returned if this is true
public void setSubject(int languageID, java.lang.String subject)
languageID
- the language to set the subject forsubject
- the new subjectpublic java.lang.String getBody(int languageID)
languageID
- specifying the language for the bodypublic java.lang.String getBody(int languageID, boolean fallbackToDefault)
languageID
- specifying the language for the bodyfallbackToDefault
- if no body for the given language can be found the default body is returned if this is true
public void setBody(int languageID, java.lang.String body)
languageID
- the language to set the body forbody
- the new bodypublic EmailClassTemplate.LayoutMode getLayoutMode()
public void setLayoutMode(EmailClassTemplate.LayoutMode layoutMode)
layoutMode
- layout mode to use when rendering this templatepublic GUID getSpecificLayoutID()
specific layout
.specific layout
public void setSpecificLayoutID(GUID layoutID)
specific layout
.layoutID
- id of the layout to use when this template is configured to use a specific layout
www.canto.com
Canto, the Canto logo, the Cumulus logo, and Cumulus are registered trademarks of Canto GmbH, registered in the U.S. and other countries.