public class EmailLayout extends BaseManager implements Item
BaseManager.PackEntryChangeListener, BaseManager.RegistryEntry
TYPE_EJP, TYPE_NATIVE
Modifier and Type | Method and Description |
---|---|
JPack |
exportSet()
Exports this set into a
JPack . |
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.
|
EmailLayoutAttachmentsList |
getEmailLayoutAttachmentsList()
Returns the manager for the attachments of this layout.
|
java.lang.String |
getFooter(int languageID,
boolean fallbackToDefault)
Returns the footer for the given language id.
|
java.lang.String |
getHeader(int languageID,
boolean fallbackToDefault)
Returns the header for the given language id.
|
java.lang.String |
getID()
Returns the UID of the item in the items namespace.
|
boolean |
getIsDefault()
Returns whether this is the default email layout.
|
GUID |
getLayoutID()
Returns the id of this email layout.
|
java.lang.String |
getName()
Returns the name of this email layout.
|
RestrictionsList |
getRestrictionsList()
Returns the list of roles and users that are allowed to view this email layout.
|
boolean |
isDefault()
Returns whether this item is the default item.
|
boolean |
isSharingRestricted()
Returns whether the set visibility is restricted to a group of users or roles.
|
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 |
setFooter(int languageID,
java.lang.String footer)
Sets the footer for the given language.
|
void |
setHeader(int languageID,
java.lang.String header)
Sets the header for the given language.
|
void |
setSharingRestricted(boolean value)
Sets whether the set visibility is restricted to a group of users or roles.
|
addChangeListener, addChangeListener, addGlobalChangeListener, addPackListener, forgetPush, getPack, isShared, popPack, pushPack, removeChangeListener, removeChangeListener, removeGlobalChangeListener, removePackListener, save, save, toString, writeAsXML
public java.lang.String getName()
public GUID getLayoutID()
public boolean getIsDefault()
public java.lang.String getHeader(int languageID, boolean fallbackToDefault)
languageID
- specifying the language for the headerfallbackToDefault
- if no header for the given language can be found the default header is returned if this is true
public void setHeader(int languageID, java.lang.String header)
languageID
- the language to set the header forheader
- the new headerpublic java.lang.String getFooter(int languageID, boolean fallbackToDefault)
languageID
- specifying the language for the footerfallbackToDefault
- if no footer for the given language can be found the default footer is returned if this is true
public void setFooter(int languageID, java.lang.String footer)
languageID
- the language to set the footer forfooter
- the new footerpublic java.lang.String getID()
Item
public boolean isDefault()
Item
public JPack exportSet()
JPack
.exportSet
in interface Item
JPack
EmailLayoutsList.importSet(com.canto.cumulus.utils.JPack, com.canto.cumulus.prefs.SetImportDuplicatesMode)
public java.lang.String getDescription(int languageID)
getDescription
in interface Item
languageID
- specifying the language for the descriptionpublic void setDescription(int languageID, java.lang.String description)
setDescription
in interface Item
languageID
- the language to set the description fordescription
- the new descriptionpublic java.lang.String getDisplayName(int languageID, boolean fallbackToDefaultName)
getDisplayName
in interface Item
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)
setDisplayName
in interface Item
languageID
- the language to set the display name fordisplayName
- the new display namepublic EmailLayoutAttachmentsList getEmailLayoutAttachmentsList()
public boolean isSharingRestricted()
isSharingRestricted
in interface Item
public void setSharingRestricted(boolean value)
setSharingRestricted
in interface Item
value
- set to true if the set visibility should be restricted to a group of users or rolespublic RestrictionsList getRestrictionsList()
isSharingRestricted()
returns true.getRestrictionsList
in interface Item
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.