Class 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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addLocalizationsElement​(java.lang.String guard)
      Adds a new element to the list.
      int compareTo​(MailTemplate comparable)  
      int compareTo​(net.anotheria.util.sorter.IComparable anotherComparable, int method)  
      void copyLANG2LANG​(java.lang.String sourceLanguage, java.lang.String destLanguage)
      Copies all multilingual properties from source language to destination language
      boolean equals​(java.lang.Object o)  
      java.lang.String getDefinedName()  
      java.lang.String getDefinedParentName()  
      java.lang.String getFootprint()  
      java.util.List<java.lang.String> getLocalizations()
      Returns the value of the localizations attribute.
      java.lang.String getLocalizationsElement​(int index)
      Returns the element at the position index in the list.
      int getLocalizationsSize()
      Returns the number of elements in the "localizations" container
      java.lang.String getMessage()
      Returns the current value of the message attribute.
      java.lang.String getMessageEN()
      Returns the value of the message attribute in the "EN" domain.
      java.lang.String getMjml()
      Returns the current value of the mjml attribute.
      java.lang.String getMjmlEN()
      Returns the value of the mjml attribute in the "EN" domain.
      java.lang.String getName()
      Returns the value of the name attribute.
      java.lang.String getPlainMessage()
      Returns the current value of the plainMessage attribute.
      java.lang.String getPlainMessageEN()
      Returns the value of the plainMessage attribute in the "EN" domain.
      java.lang.String getSender()
      Returns the current value of the sender attribute.
      java.lang.String getSenderEN()
      Returns the value of the sender attribute in the "EN" domain.
      java.lang.String getSenderName()
      Returns the current value of the senderName attribute.
      java.lang.String getSenderNameEN()
      Returns the value of the senderName attribute in the "EN" domain.
      java.lang.String getSubject()
      Returns the current value of the subject attribute.
      java.lang.String getSubjectEN()
      Returns the value of the subject attribute in the "EN" domain.
      boolean isMultilingualDisabledInstance()  
      void removeLocalizationsElement​(int index)
      Removes the element at position index from the list.
      void setLocalizations​(java.util.List<java.lang.String> value)
      Sets the value of the localizations attribute.
      void setMessage​(java.lang.String value)
      Sets the value of the message attribute in the current domain.
      void setMessageEN​(java.lang.String value)
      Sets the value of the message attribute in the domain "EN"
      void setMjml​(java.lang.String value)
      Sets the value of the mjml attribute in the current domain.
      void setMjmlEN​(java.lang.String value)
      Sets the value of the mjml attribute in the domain "EN"
      void setMultilingualDisabledInstance​(boolean value)  
      void setName​(java.lang.String value)
      Sets the value of the name attribute.
      void setPlainMessage​(java.lang.String value)
      Sets the value of the plainMessage attribute in the current domain.
      void setPlainMessageEN​(java.lang.String value)
      Sets the value of the plainMessage attribute in the domain "EN"
      void setSender​(java.lang.String value)
      Sets the value of the sender attribute in the current domain.
      void setSenderEN​(java.lang.String value)
      Sets the value of the sender attribute in the domain "EN"
      void setSenderName​(java.lang.String value)
      Sets the value of the senderName attribute in the current domain.
      void setSenderNameEN​(java.lang.String value)
      Sets the value of the senderName attribute in the domain "EN"
      void setSubject​(java.lang.String value)
      Sets the value of the subject attribute in the current domain.
      void setSubjectEN​(java.lang.String value)
      Sets the value of the subject attribute in the domain "EN"
      void swapLocalizationsElement​(int index1, int index2)
      Swaps elements at positions index1 and index2 in the list.
      java.lang.String toString()  
      • 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
      • Methods inherited from class net.anotheria.anodoc.data.DataHolder

        getId, hashCode, setId
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface net.anotheria.asg.data.DataObject

        clone, getId, getLastUpdateTimestamp, getObjectInfo, getPropertyValue, toXMLNode
    • Constructor Detail

      • MailTemplateDocument

        public MailTemplateDocument()
      • MailTemplateDocument

        public MailTemplateDocument​(java.lang.String id)
    • Method Detail

      • getName

        public java.lang.String getName()
        Description copied from interface: MailTemplate
        Returns the value of the name attribute.
        Specified by:
        getName in interface MailTemplate
      • setName

        public void setName​(java.lang.String value)
        Description copied from interface: MailTemplate
        Sets the value of the name attribute.
        Specified by:
        setName in interface MailTemplate
      • getSenderEN

        public java.lang.String getSenderEN()
        Description copied from interface: MailTemplate
        Returns the value of the sender attribute in the "EN" domain.
        Specified by:
        getSenderEN in interface MailTemplate
      • getSender

        public java.lang.String getSender()
        Description copied from interface: MailTemplate
        Returns the current value of the sender attribute. Current means in the currently selected domain.
        Specified by:
        getSender in interface MailTemplate
      • setSenderEN

        public void setSenderEN​(java.lang.String value)
        Description copied from interface: MailTemplate
        Sets the value of the sender attribute in the domain "EN"
        Specified by:
        setSenderEN in interface MailTemplate
      • setSender

        public void setSender​(java.lang.String value)
        Description copied from interface: MailTemplate
        Sets the value of the sender attribute in the current domain. Current means in the currently selected domain.
        Specified by:
        setSender in interface MailTemplate
      • getSenderNameEN

        public java.lang.String getSenderNameEN()
        Description copied from interface: MailTemplate
        Returns the value of the senderName attribute in the "EN" domain.
        Specified by:
        getSenderNameEN in interface MailTemplate
      • getSenderName

        public java.lang.String getSenderName()
        Description copied from interface: MailTemplate
        Returns the current value of the senderName attribute. Current means in the currently selected domain.
        Specified by:
        getSenderName in interface MailTemplate
      • setSenderNameEN

        public void setSenderNameEN​(java.lang.String value)
        Description copied from interface: MailTemplate
        Sets the value of the senderName attribute in the domain "EN"
        Specified by:
        setSenderNameEN in interface MailTemplate
      • setSenderName

        public void setSenderName​(java.lang.String value)
        Description copied from interface: MailTemplate
        Sets the value of the senderName attribute in the current domain. Current means in the currently selected domain.
        Specified by:
        setSenderName in interface MailTemplate
      • getSubjectEN

        public java.lang.String getSubjectEN()
        Description copied from interface: MailTemplate
        Returns the value of the subject attribute in the "EN" domain.
        Specified by:
        getSubjectEN in interface MailTemplate
      • getSubject

        public java.lang.String getSubject()
        Description copied from interface: MailTemplate
        Returns the current value of the subject attribute. Current means in the currently selected domain.
        Specified by:
        getSubject in interface MailTemplate
      • setSubjectEN

        public void setSubjectEN​(java.lang.String value)
        Description copied from interface: MailTemplate
        Sets the value of the subject attribute in the domain "EN"
        Specified by:
        setSubjectEN in interface MailTemplate
      • setSubject

        public void setSubject​(java.lang.String value)
        Description copied from interface: MailTemplate
        Sets the value of the subject attribute in the current domain. Current means in the currently selected domain.
        Specified by:
        setSubject in interface MailTemplate
      • getMessageEN

        public java.lang.String getMessageEN()
        Description copied from interface: MailTemplate
        Returns the value of the message attribute in the "EN" domain.
        Specified by:
        getMessageEN in interface MailTemplate
      • getMessage

        public java.lang.String getMessage()
        Description copied from interface: MailTemplate
        Returns the current value of the message attribute. Current means in the currently selected domain.
        Specified by:
        getMessage in interface MailTemplate
      • setMessageEN

        public void setMessageEN​(java.lang.String value)
        Description copied from interface: MailTemplate
        Sets the value of the message attribute in the domain "EN"
        Specified by:
        setMessageEN in interface MailTemplate
      • setMessage

        public void setMessage​(java.lang.String value)
        Description copied from interface: MailTemplate
        Sets the value of the message attribute in the current domain. Current means in the currently selected domain.
        Specified by:
        setMessage in interface MailTemplate
      • getMjmlEN

        public java.lang.String getMjmlEN()
        Description copied from interface: MailTemplate
        Returns the value of the mjml attribute in the "EN" domain.
        Specified by:
        getMjmlEN in interface MailTemplate
      • getMjml

        public java.lang.String getMjml()
        Description copied from interface: MailTemplate
        Returns the current value of the mjml attribute. Current means in the currently selected domain.
        Specified by:
        getMjml in interface MailTemplate
      • setMjmlEN

        public void setMjmlEN​(java.lang.String value)
        Description copied from interface: MailTemplate
        Sets the value of the mjml attribute in the domain "EN"
        Specified by:
        setMjmlEN in interface MailTemplate
      • setMjml

        public void setMjml​(java.lang.String value)
        Description copied from interface: MailTemplate
        Sets the value of the mjml attribute in the current domain. Current means in the currently selected domain.
        Specified by:
        setMjml in interface MailTemplate
      • getPlainMessageEN

        public java.lang.String getPlainMessageEN()
        Description copied from interface: MailTemplate
        Returns the value of the plainMessage attribute in the "EN" domain.
        Specified by:
        getPlainMessageEN in interface MailTemplate
      • getPlainMessage

        public java.lang.String getPlainMessage()
        Description copied from interface: MailTemplate
        Returns the current value of the plainMessage attribute. Current means in the currently selected domain.
        Specified by:
        getPlainMessage in interface MailTemplate
      • setPlainMessageEN

        public void setPlainMessageEN​(java.lang.String value)
        Description copied from interface: MailTemplate
        Sets the value of the plainMessage attribute in the domain "EN"
        Specified by:
        setPlainMessageEN in interface MailTemplate
      • setPlainMessage

        public void setPlainMessage​(java.lang.String value)
        Description copied from interface: MailTemplate
        Sets the value of the plainMessage attribute in the current domain. Current means in the currently selected domain.
        Specified by:
        setPlainMessage in interface MailTemplate
      • getLocalizations

        public java.util.List<java.lang.String> getLocalizations()
        Description copied from interface: MailTemplate
        Returns the value of the localizations attribute.
        Specified by:
        getLocalizations in interface MailTemplate
      • setLocalizations

        public void setLocalizations​(java.util.List<java.lang.String> value)
        Description copied from interface: MailTemplate
        Sets the value of the localizations attribute.
        Specified by:
        setLocalizations in interface MailTemplate
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class net.anotheria.anodoc.data.Document
      • getLocalizationsSize

        public int getLocalizationsSize()
        Description copied from interface: MailTemplate
        Returns the number of elements in the "localizations" container
        Specified by:
        getLocalizationsSize in interface MailTemplate
      • addLocalizationsElement

        public void addLocalizationsElement​(java.lang.String guard)
        Description copied from interface: MailTemplate
        Adds a new element to the list.
        Specified by:
        addLocalizationsElement in interface MailTemplate
      • removeLocalizationsElement

        public void removeLocalizationsElement​(int index)
        Description copied from interface: MailTemplate
        Removes the element at position index from the list.
        Specified by:
        removeLocalizationsElement in interface MailTemplate
      • swapLocalizationsElement

        public void swapLocalizationsElement​(int index1,
                                             int index2)
        Description copied from interface: MailTemplate
        Swaps elements at positions index1 and index2 in the list.
        Specified by:
        swapLocalizationsElement in interface MailTemplate
      • getLocalizationsElement

        public java.lang.String getLocalizationsElement​(int index)
        Description copied from interface: MailTemplate
        Returns the element at the position index in the list.
        Specified by:
        getLocalizationsElement in interface MailTemplate
      • compareTo

        public int compareTo​(MailTemplate comparable)
      • compareTo

        public int compareTo​(net.anotheria.util.sorter.IComparable anotherComparable,
                             int method)
        Specified by:
        compareTo in interface net.anotheria.util.sorter.IComparable
      • getDefinedName

        public java.lang.String getDefinedName()
        Specified by:
        getDefinedName in interface net.anotheria.asg.data.DataObject
      • getDefinedParentName

        public java.lang.String getDefinedParentName()
        Specified by:
        getDefinedParentName in interface net.anotheria.asg.data.DataObject
      • getFootprint

        public java.lang.String getFootprint()
        Specified by:
        getFootprint in interface net.anotheria.asg.data.DataObject
      • copyLANG2LANG

        public void copyLANG2LANG​(java.lang.String sourceLanguage,
                                  java.lang.String destLanguage)
        Description copied from interface: MailTemplate
        Copies all multilingual properties from source language to destination language
        Specified by:
        copyLANG2LANG in interface MailTemplate
      • isMultilingualDisabledInstance

        public boolean isMultilingualDisabledInstance()
        Specified by:
        isMultilingualDisabledInstance in interface net.anotheria.asg.data.MultilingualObject
      • setMultilingualDisabledInstance

        public void setMultilingualDisabledInstance​(boolean value)
        Specified by:
        setMultilingualDisabledInstance in interface net.anotheria.asg.data.MultilingualObject
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object