Class MailTemplateDocument
- java.lang.Object
-
- net.anotheria.anodoc.data.DataHolder
-
- net.anotheria.anodoc.data.Document
-
- net.anotheria.asg.data.AbstractASGDocument
-
- net.anotheria.anosite.gen.asresourcedata.data.MailTemplateDocument
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,net.anotheria.anodoc.data.IBasicStoreableObject,net.anotheria.anodoc.data.ICompositeDataObject,MailTemplate,net.anotheria.asg.data.DataObject,net.anotheria.asg.data.LockableObject,net.anotheria.asg.data.MultilingualObject,net.anotheria.util.sorter.IComparable
public class MailTemplateDocument extends net.anotheria.asg.data.AbstractASGDocument implements MailTemplate, net.anotheria.util.sorter.IComparable, net.anotheria.asg.data.MultilingualObject
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class net.anotheria.asg.data.AbstractASGDocument
INT_PROPERTY_MULTILINGUAL_DISABLED
-
Fields inherited from class net.anotheria.anodoc.data.Document
PROP_AUTHOR, PROP_LAST_UPDATE, PROP_TYPE_IDENTIFIER
-
Fields inherited from interface net.anotheria.asg.data.LockableObject
INT_LOCK_PROPERTY_NAME, INT_LOCKER_ID_PROPERTY_NAME, INT_LOCKING_TIME_PROPERTY_NAME
-
Fields inherited from interface net.anotheria.anosite.gen.asresourcedata.data.MailTemplate
PROP_ID, PROP_LOCALIZATIONS, PROP_MESSAGE_EN, PROP_MJML_EN, PROP_NAME, PROP_PLAIN_MESSAGE_EN, PROP_SENDER_EN, PROP_SENDER_NAME_EN, PROP_SUBJECT_EN
-
-
Constructor Summary
Constructors Constructor Description MailTemplateDocument()MailTemplateDocument(java.lang.String id)MailTemplateDocument(MailTemplateDocument toClone)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddLocalizationsElement(java.lang.String guard)Adds a new element to the list.intcompareTo(MailTemplate comparable)intcompareTo(net.anotheria.util.sorter.IComparable anotherComparable, int method)voidcopyLANG2LANG(java.lang.String sourceLanguage, java.lang.String destLanguage)Copies all multilingual properties from source language to destination languagebooleanequals(java.lang.Object o)java.lang.StringgetDefinedName()java.lang.StringgetDefinedParentName()java.lang.StringgetFootprint()java.util.List<java.lang.String>getLocalizations()Returns the value of the localizations attribute.java.lang.StringgetLocalizationsElement(int index)Returns the element at the position index in the list.intgetLocalizationsSize()Returns the number of elements in the "localizations" containerjava.lang.StringgetMessage()Returns the current value of the message attribute.java.lang.StringgetMessageEN()Returns the value of the message attribute in the "EN" domain.java.lang.StringgetMjml()Returns the current value of the mjml attribute.java.lang.StringgetMjmlEN()Returns the value of the mjml attribute in the "EN" domain.java.lang.StringgetName()Returns the value of the name attribute.java.lang.StringgetPlainMessage()Returns the current value of the plainMessage attribute.java.lang.StringgetPlainMessageEN()Returns the value of the plainMessage attribute in the "EN" domain.java.lang.StringgetSender()Returns the current value of the sender attribute.java.lang.StringgetSenderEN()Returns the value of the sender attribute in the "EN" domain.java.lang.StringgetSenderName()Returns the current value of the senderName attribute.java.lang.StringgetSenderNameEN()Returns the value of the senderName attribute in the "EN" domain.java.lang.StringgetSubject()Returns the current value of the subject attribute.java.lang.StringgetSubjectEN()Returns the value of the subject attribute in the "EN" domain.booleanisMultilingualDisabledInstance()voidremoveLocalizationsElement(int index)Removes the element at position index from the list.voidsetLocalizations(java.util.List<java.lang.String> value)Sets the value of the localizations attribute.voidsetMessage(java.lang.String value)Sets the value of the message attribute in the current domain.voidsetMessageEN(java.lang.String value)Sets the value of the message attribute in the domain "EN"voidsetMjml(java.lang.String value)Sets the value of the mjml attribute in the current domain.voidsetMjmlEN(java.lang.String value)Sets the value of the mjml attribute in the domain "EN"voidsetMultilingualDisabledInstance(boolean value)voidsetName(java.lang.String value)Sets the value of the name attribute.voidsetPlainMessage(java.lang.String value)Sets the value of the plainMessage attribute in the current domain.voidsetPlainMessageEN(java.lang.String value)Sets the value of the plainMessage attribute in the domain "EN"voidsetSender(java.lang.String value)Sets the value of the sender attribute in the current domain.voidsetSenderEN(java.lang.String value)Sets the value of the sender attribute in the domain "EN"voidsetSenderName(java.lang.String value)Sets the value of the senderName attribute in the current domain.voidsetSenderNameEN(java.lang.String value)Sets the value of the senderName attribute in the domain "EN"voidsetSubject(java.lang.String value)Sets the value of the subject attribute in the current domain.voidsetSubjectEN(java.lang.String value)Sets the value of the subject attribute in the domain "EN"voidswapLocalizationsElement(int index1, int index2)Swaps elements at positions index1 and index2 in the list.java.lang.StringtoString()-
Methods inherited from class net.anotheria.asg.data.AbstractASGDocument
getInternalProperty, getLockerId, getLockingTime, getObjectInfo, isLocked, setInternalProperty, setLocked, setLockerId, setLockingTime
-
Methods inherited from class net.anotheria.anodoc.data.Document
addDataHolder, clone, copyFromBooleanList, copyFromDoubleList, copyFromFloatList, copyFromIntegerList, copyFromLongList, copyFromStringList, copyToBooleanList, copyToDoubleList, copyToFloatList, copyToIntegerList, copyToLongList, copyToStringList, createDocument, createDocumentList, createListProperty, getAuthor, getBoolean, getBooleanProperty, getDataHolder, getDocument, getDocumentAnyCase, getDocumentList, getDocumentListAnyCase, getDouble, getDoubleProperty, getEmptyBoolean, getEmptyDouble, getEmptyFloat, getEmptyInt, getEmptyList, getEmptyLong, getEmptyString, getFloat, getFloatProperty, getInt, getIntProperty, getKeys, getLastUpdateTimestamp, getList, getListProperty, getListPropertyAnyCase, getLong, getLongProperty, getObject, getProperties, getProperty, getPropertyValue, getSizeInBytes, getStorageId, getString, getStringProperty, getTypeIdentifier, putBooleanProperty, putDocument, putDoubleProperty, putFloatProperty, putIntProperty, putList, putListProperty, putLongProperty, putProperty, putStringProperty, removeDataHolder, removeDataHolder, removeProperty, removeProperty, renameTo, setBoolean, setCallContextAuthor, setDouble, setFloat, setInt, setLastUpdateNow, setList, setLong, setString, setTypeIdentifier, toXMLNode
-
-
-
-
Constructor Detail
-
MailTemplateDocument
public MailTemplateDocument()
-
MailTemplateDocument
public MailTemplateDocument(java.lang.String id)
-
MailTemplateDocument
public MailTemplateDocument(MailTemplateDocument toClone)
-
-
Method Detail
-
getName
public java.lang.String getName()
Description copied from interface:MailTemplateReturns the value of the name attribute.- Specified by:
getNamein interfaceMailTemplate
-
setName
public void setName(java.lang.String value)
Description copied from interface:MailTemplateSets the value of the name attribute.- Specified by:
setNamein interfaceMailTemplate
-
getSenderEN
public java.lang.String getSenderEN()
Description copied from interface:MailTemplateReturns the value of the sender attribute in the "EN" domain.- Specified by:
getSenderENin interfaceMailTemplate
-
getSender
public java.lang.String getSender()
Description copied from interface:MailTemplateReturns the current value of the sender attribute. Current means in the currently selected domain.- Specified by:
getSenderin interfaceMailTemplate
-
setSenderEN
public void setSenderEN(java.lang.String value)
Description copied from interface:MailTemplateSets the value of the sender attribute in the domain "EN"- Specified by:
setSenderENin interfaceMailTemplate
-
setSender
public void setSender(java.lang.String value)
Description copied from interface:MailTemplateSets the value of the sender attribute in the current domain. Current means in the currently selected domain.- Specified by:
setSenderin interfaceMailTemplate
-
getSenderNameEN
public java.lang.String getSenderNameEN()
Description copied from interface:MailTemplateReturns the value of the senderName attribute in the "EN" domain.- Specified by:
getSenderNameENin interfaceMailTemplate
-
getSenderName
public java.lang.String getSenderName()
Description copied from interface:MailTemplateReturns the current value of the senderName attribute. Current means in the currently selected domain.- Specified by:
getSenderNamein interfaceMailTemplate
-
setSenderNameEN
public void setSenderNameEN(java.lang.String value)
Description copied from interface:MailTemplateSets the value of the senderName attribute in the domain "EN"- Specified by:
setSenderNameENin interfaceMailTemplate
-
setSenderName
public void setSenderName(java.lang.String value)
Description copied from interface:MailTemplateSets the value of the senderName attribute in the current domain. Current means in the currently selected domain.- Specified by:
setSenderNamein interfaceMailTemplate
-
getSubjectEN
public java.lang.String getSubjectEN()
Description copied from interface:MailTemplateReturns the value of the subject attribute in the "EN" domain.- Specified by:
getSubjectENin interfaceMailTemplate
-
getSubject
public java.lang.String getSubject()
Description copied from interface:MailTemplateReturns the current value of the subject attribute. Current means in the currently selected domain.- Specified by:
getSubjectin interfaceMailTemplate
-
setSubjectEN
public void setSubjectEN(java.lang.String value)
Description copied from interface:MailTemplateSets the value of the subject attribute in the domain "EN"- Specified by:
setSubjectENin interfaceMailTemplate
-
setSubject
public void setSubject(java.lang.String value)
Description copied from interface:MailTemplateSets the value of the subject attribute in the current domain. Current means in the currently selected domain.- Specified by:
setSubjectin interfaceMailTemplate
-
getMessageEN
public java.lang.String getMessageEN()
Description copied from interface:MailTemplateReturns the value of the message attribute in the "EN" domain.- Specified by:
getMessageENin interfaceMailTemplate
-
getMessage
public java.lang.String getMessage()
Description copied from interface:MailTemplateReturns the current value of the message attribute. Current means in the currently selected domain.- Specified by:
getMessagein interfaceMailTemplate
-
setMessageEN
public void setMessageEN(java.lang.String value)
Description copied from interface:MailTemplateSets the value of the message attribute in the domain "EN"- Specified by:
setMessageENin interfaceMailTemplate
-
setMessage
public void setMessage(java.lang.String value)
Description copied from interface:MailTemplateSets the value of the message attribute in the current domain. Current means in the currently selected domain.- Specified by:
setMessagein interfaceMailTemplate
-
getMjmlEN
public java.lang.String getMjmlEN()
Description copied from interface:MailTemplateReturns the value of the mjml attribute in the "EN" domain.- Specified by:
getMjmlENin interfaceMailTemplate
-
getMjml
public java.lang.String getMjml()
Description copied from interface:MailTemplateReturns the current value of the mjml attribute. Current means in the currently selected domain.- Specified by:
getMjmlin interfaceMailTemplate
-
setMjmlEN
public void setMjmlEN(java.lang.String value)
Description copied from interface:MailTemplateSets the value of the mjml attribute in the domain "EN"- Specified by:
setMjmlENin interfaceMailTemplate
-
setMjml
public void setMjml(java.lang.String value)
Description copied from interface:MailTemplateSets the value of the mjml attribute in the current domain. Current means in the currently selected domain.- Specified by:
setMjmlin interfaceMailTemplate
-
getPlainMessageEN
public java.lang.String getPlainMessageEN()
Description copied from interface:MailTemplateReturns the value of the plainMessage attribute in the "EN" domain.- Specified by:
getPlainMessageENin interfaceMailTemplate
-
getPlainMessage
public java.lang.String getPlainMessage()
Description copied from interface:MailTemplateReturns the current value of the plainMessage attribute. Current means in the currently selected domain.- Specified by:
getPlainMessagein interfaceMailTemplate
-
setPlainMessageEN
public void setPlainMessageEN(java.lang.String value)
Description copied from interface:MailTemplateSets the value of the plainMessage attribute in the domain "EN"- Specified by:
setPlainMessageENin interfaceMailTemplate
-
setPlainMessage
public void setPlainMessage(java.lang.String value)
Description copied from interface:MailTemplateSets the value of the plainMessage attribute in the current domain. Current means in the currently selected domain.- Specified by:
setPlainMessagein interfaceMailTemplate
-
getLocalizations
public java.util.List<java.lang.String> getLocalizations()
Description copied from interface:MailTemplateReturns the value of the localizations attribute.- Specified by:
getLocalizationsin interfaceMailTemplate
-
setLocalizations
public void setLocalizations(java.util.List<java.lang.String> value)
Description copied from interface:MailTemplateSets the value of the localizations attribute.- Specified by:
setLocalizationsin interfaceMailTemplate
-
toString
public java.lang.String toString()
- Overrides:
toStringin classnet.anotheria.anodoc.data.Document
-
getLocalizationsSize
public int getLocalizationsSize()
Description copied from interface:MailTemplateReturns the number of elements in the "localizations" container- Specified by:
getLocalizationsSizein interfaceMailTemplate
-
addLocalizationsElement
public void addLocalizationsElement(java.lang.String guard)
Description copied from interface:MailTemplateAdds a new element to the list.- Specified by:
addLocalizationsElementin interfaceMailTemplate
-
removeLocalizationsElement
public void removeLocalizationsElement(int index)
Description copied from interface:MailTemplateRemoves the element at position index from the list.- Specified by:
removeLocalizationsElementin interfaceMailTemplate
-
swapLocalizationsElement
public void swapLocalizationsElement(int index1, int index2)Description copied from interface:MailTemplateSwaps elements at positions index1 and index2 in the list.- Specified by:
swapLocalizationsElementin interfaceMailTemplate
-
getLocalizationsElement
public java.lang.String getLocalizationsElement(int index)
Description copied from interface:MailTemplateReturns the element at the position index in the list.- Specified by:
getLocalizationsElementin interfaceMailTemplate
-
compareTo
public int compareTo(MailTemplate comparable)
-
compareTo
public int compareTo(net.anotheria.util.sorter.IComparable anotherComparable, int method)- Specified by:
compareToin interfacenet.anotheria.util.sorter.IComparable
-
getDefinedName
public java.lang.String getDefinedName()
- Specified by:
getDefinedNamein interfacenet.anotheria.asg.data.DataObject
-
getDefinedParentName
public java.lang.String getDefinedParentName()
- Specified by:
getDefinedParentNamein interfacenet.anotheria.asg.data.DataObject
-
getFootprint
public java.lang.String getFootprint()
- Specified by:
getFootprintin interfacenet.anotheria.asg.data.DataObject
-
copyLANG2LANG
public void copyLANG2LANG(java.lang.String sourceLanguage, java.lang.String destLanguage)Description copied from interface:MailTemplateCopies all multilingual properties from source language to destination language- Specified by:
copyLANG2LANGin interfaceMailTemplate
-
isMultilingualDisabledInstance
public boolean isMultilingualDisabledInstance()
- Specified by:
isMultilingualDisabledInstancein interfacenet.anotheria.asg.data.MultilingualObject
-
setMultilingualDisabledInstance
public void setMultilingualDisabledInstance(boolean value)
- Specified by:
setMultilingualDisabledInstancein interfacenet.anotheria.asg.data.MultilingualObject
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
-