Class MailTemplateDocument

  • All Implemented Interfaces:
    Serializable, 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​(String guard)
      Adds a new element to the list.
      int compareTo​(MailTemplate comparable)  
      int compareTo​(net.anotheria.util.sorter.IComparable anotherComparable, int method)  
      void copyDE2EN()
      Copies all multilingual properties from language DE to language EN
      void copyEN2DE()
      Copies all multilingual properties from language EN to language DE
      void copyLANG2LANG​(String sourceLanguage, String destLanguage)
      Copies all multilingual properties from source language to destination language
      boolean equals​(Object o)  
      String getDefinedName()  
      String getDefinedParentName()  
      String getFootprint()  
      List<String> getLocalizations()
      Returns the value of the localizations attribute.
      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
      String getMessage()
      Returns the current value of the message attribute.
      String getMessageDE()
      Returns the value of the message attribute in the "DE" domain.
      String getMessageEN()
      Returns the value of the message attribute in the "EN" domain.
      String getMjml()
      Returns the current value of the mjml attribute.
      String getMjmlDE()
      Returns the value of the mjml attribute in the "DE" domain.
      String getMjmlEN()
      Returns the value of the mjml attribute in the "EN" domain.
      String getName()
      Returns the value of the name attribute.
      String getPlainMessage()
      Returns the current value of the plainMessage attribute.
      String getPlainMessageDE()
      Returns the value of the plainMessage attribute in the "DE" domain.
      String getPlainMessageEN()
      Returns the value of the plainMessage attribute in the "EN" domain.
      String getSender()
      Returns the current value of the sender attribute.
      String getSenderDE()
      Returns the value of the sender attribute in the "DE" domain.
      String getSenderEN()
      Returns the value of the sender attribute in the "EN" domain.
      String getSenderName()
      Returns the current value of the senderName attribute.
      String getSenderNameDE()
      Returns the value of the senderName attribute in the "DE" domain.
      String getSenderNameEN()
      Returns the value of the senderName attribute in the "EN" domain.
      String getSubject()
      Returns the current value of the subject attribute.
      String getSubjectDE()
      Returns the value of the subject attribute in the "DE" domain.
      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​(List<String> value)
      Sets the value of the localizations attribute.
      void setMessage​(String value)
      Sets the value of the message attribute in the current domain.
      void setMessageDE​(String value)
      Sets the value of the message attribute in the domain "DE"
      void setMessageEN​(String value)
      Sets the value of the message attribute in the domain "EN"
      void setMjml​(String value)
      Sets the value of the mjml attribute in the current domain.
      void setMjmlDE​(String value)
      Sets the value of the mjml attribute in the domain "DE"
      void setMjmlEN​(String value)
      Sets the value of the mjml attribute in the domain "EN"
      void setMultilingualDisabledInstance​(boolean value)  
      void setName​(String value)
      Sets the value of the name attribute.
      void setPlainMessage​(String value)
      Sets the value of the plainMessage attribute in the current domain.
      void setPlainMessageDE​(String value)
      Sets the value of the plainMessage attribute in the domain "DE"
      void setPlainMessageEN​(String value)
      Sets the value of the plainMessage attribute in the domain "EN"
      void setSender​(String value)
      Sets the value of the sender attribute in the current domain.
      void setSenderDE​(String value)
      Sets the value of the sender attribute in the domain "DE"
      void setSenderEN​(String value)
      Sets the value of the sender attribute in the domain "EN"
      void setSenderName​(String value)
      Sets the value of the senderName attribute in the current domain.
      void setSenderNameDE​(String value)
      Sets the value of the senderName attribute in the domain "DE"
      void setSenderNameEN​(String value)
      Sets the value of the senderName attribute in the domain "EN"
      void setSubject​(String value)
      Sets the value of the subject attribute in the current domain.
      void setSubjectDE​(String value)
      Sets the value of the subject attribute in the domain "DE"
      void setSubjectEN​(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.
      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 interface net.anotheria.asg.data.DataObject

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

      • MailTemplateDocument

        public MailTemplateDocument()
      • MailTemplateDocument

        public MailTemplateDocument​(String id)
    • Method Detail

      • setName

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

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

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

        public 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​(String value)
        Description copied from interface: MailTemplate
        Sets the value of the sender attribute in the domain "EN"
        Specified by:
        setSenderEN in interface MailTemplate
      • setSenderDE

        public void setSenderDE​(String value)
        Description copied from interface: MailTemplate
        Sets the value of the sender attribute in the domain "DE"
        Specified by:
        setSenderDE in interface MailTemplate
      • setSender

        public void setSender​(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
      • getSenderName

        public 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​(String value)
        Description copied from interface: MailTemplate
        Sets the value of the senderName attribute in the domain "EN"
        Specified by:
        setSenderNameEN in interface MailTemplate
      • setSenderNameDE

        public void setSenderNameDE​(String value)
        Description copied from interface: MailTemplate
        Sets the value of the senderName attribute in the domain "DE"
        Specified by:
        setSenderNameDE in interface MailTemplate
      • setSenderName

        public void setSenderName​(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 String getSubjectEN()
        Description copied from interface: MailTemplate
        Returns the value of the subject attribute in the "EN" domain.
        Specified by:
        getSubjectEN in interface MailTemplate
      • getSubjectDE

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

        public 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​(String value)
        Description copied from interface: MailTemplate
        Sets the value of the subject attribute in the domain "EN"
        Specified by:
        setSubjectEN in interface MailTemplate
      • setSubjectDE

        public void setSubjectDE​(String value)
        Description copied from interface: MailTemplate
        Sets the value of the subject attribute in the domain "DE"
        Specified by:
        setSubjectDE in interface MailTemplate
      • setSubject

        public void setSubject​(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 String getMessageEN()
        Description copied from interface: MailTemplate
        Returns the value of the message attribute in the "EN" domain.
        Specified by:
        getMessageEN in interface MailTemplate
      • getMessageDE

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

        public 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​(String value)
        Description copied from interface: MailTemplate
        Sets the value of the message attribute in the domain "EN"
        Specified by:
        setMessageEN in interface MailTemplate
      • setMessageDE

        public void setMessageDE​(String value)
        Description copied from interface: MailTemplate
        Sets the value of the message attribute in the domain "DE"
        Specified by:
        setMessageDE in interface MailTemplate
      • setMessage

        public void setMessage​(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 String getMjmlEN()
        Description copied from interface: MailTemplate
        Returns the value of the mjml attribute in the "EN" domain.
        Specified by:
        getMjmlEN in interface MailTemplate
      • getMjmlDE

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

        public 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​(String value)
        Description copied from interface: MailTemplate
        Sets the value of the mjml attribute in the domain "EN"
        Specified by:
        setMjmlEN in interface MailTemplate
      • setMjmlDE

        public void setMjmlDE​(String value)
        Description copied from interface: MailTemplate
        Sets the value of the mjml attribute in the domain "DE"
        Specified by:
        setMjmlDE in interface MailTemplate
      • setMjml

        public void setMjml​(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
      • getPlainMessage

        public 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​(String value)
        Description copied from interface: MailTemplate
        Sets the value of the plainMessage attribute in the domain "EN"
        Specified by:
        setPlainMessageEN in interface MailTemplate
      • setPlainMessageDE

        public void setPlainMessageDE​(String value)
        Description copied from interface: MailTemplate
        Sets the value of the plainMessage attribute in the domain "DE"
        Specified by:
        setPlainMessageDE in interface MailTemplate
      • setPlainMessage

        public void setPlainMessage​(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
      • toString

        public 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
      • 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
      • 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 String getDefinedName()
        Specified by:
        getDefinedName in interface net.anotheria.asg.data.DataObject
      • getDefinedParentName

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

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

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

        public void copyEN2DE()
        Copies all multilingual properties from language EN to language DE
        Specified by:
        copyEN2DE in interface MailTemplate
      • copyDE2EN

        public void copyDE2EN()
        Copies all multilingual properties from language DE to language EN
        Specified by:
        copyDE2EN 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