public class EmailClassTemplateList extends ListPackManager
BaseManager.PackEntryChangeListener, BaseManager.RegistryEntry
TYPE_EJP, TYPE_NATIVE
Modifier and Type | Method and Description |
---|---|
EmailClassTemplate |
copy(java.lang.String newName,
EmailClassTemplate source)
Duplicates the given template into a new template for the given name.
|
EmailClassTemplate |
create(java.lang.String newName)
Creates a new template for the given name.
|
void |
delete(EmailClassTemplate template)
Deletes the given template.
|
EmailClassTemplate |
getEmailClassTemplate(java.lang.String name)
Returns the template for the given name.
|
java.util.List<java.lang.String> |
getEmailClassTemplateNames()
Return a list of template names of this instance.
|
java.util.List<EmailClassTemplate> |
getEmailClassTemplates()
Returns all templates contained in this list.
|
void |
rename(java.lang.String newName,
EmailClassTemplate template)
Renames the given template to the new specified name.
|
void |
setAsDefault(EmailClassTemplate newDefault)
Sets the given template as the default template.
|
addChangeListener, addChangeListener, addGlobalChangeListener, addPackListener, forgetPush, getPack, isShared, popPack, pushPack, removeChangeListener, removeChangeListener, removeGlobalChangeListener, removePackListener, save, save, toString, writeAsXML
public EmailClassTemplate copy(java.lang.String newName, EmailClassTemplate source) throws javax.naming.InvalidNameException
newName
- the name of the new templatejavax.naming.InvalidNameException
- in case of an invalid or already used namepublic EmailClassTemplate create(java.lang.String newName) throws javax.naming.InvalidNameException
newName
- the name of the new templatejavax.naming.InvalidNameException
- in case of an invalid or already used namepublic void rename(java.lang.String newName, EmailClassTemplate template) throws CumulusException, javax.naming.InvalidNameException
newName
- the new name for the templatetemplate
- the template to renameCumulusException
- in case of an errorjavax.naming.InvalidNameException
- in case of an invalid namepublic void setAsDefault(EmailClassTemplate newDefault)
newDefault
- the new default templatepublic void delete(EmailClassTemplate template) throws CumulusException
template
- the template to deleteCumulusException
- in case of an errorpublic java.util.List<java.lang.String> getEmailClassTemplateNames()
String
public EmailClassTemplate getEmailClassTemplate(java.lang.String name)
name
- the name of the template to returnpublic java.util.List<EmailClassTemplate> getEmailClassTemplates()
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.