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

    Modifier and Type
    Method
    Description
    void
    Adds a new element to the list.
    int
    compareTo(MailTemplate comparable)
     
    int
    compareTo(net.anotheria.util.sorter.IComparable anotherComparable, int method)
     
    void
    copyLANG2LANG(String sourceLanguage, String destLanguage)
    Copies all multilingual properties from source language to destination language
    boolean
     
     
     
     
    Returns the value of the localizations attribute.
    Returns the element at the position index in the list.
    int
    Returns the number of elements in the "localizations" container
    Returns the current value of the message attribute.
    Returns the value of the message attribute in the "EN" domain.
    Returns the current value of the mjml attribute.
    Returns the value of the mjml attribute in the "EN" domain.
    Returns the value of the name attribute.
    Returns the current value of the plainMessage attribute.
    Returns the value of the plainMessage attribute in the "EN" domain.
    Returns the current value of the sender attribute.
    Returns the value of the sender attribute in the "EN" domain.
    Returns the current value of the senderName attribute.
    Returns the value of the senderName attribute in the "EN" domain.
    Returns the current value of the subject attribute.
    Returns the value of the subject attribute in the "EN" domain.
    boolean
     
    void
    Removes the element at position index from the list.
    void
    Sets the value of the localizations attribute.
    void
    Sets the value of the message attribute in the current domain.
    void
    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
    Sets the value of the mjml attribute in the domain "EN"
    void
     
    void
    setName(String value)
    Sets the value of the name attribute.
    void
    Sets the value of the plainMessage attribute in the current domain.
    void
    Sets the value of the plainMessage attribute in the domain "EN"
    void
    Sets the value of the sender attribute in the current domain.
    void
    Sets the value of the sender attribute in the domain "EN"
    void
    Sets the value of the senderName attribute in the current domain.
    void
    Sets the value of the senderName attribute in the domain "EN"
    void
    Sets the value of the subject attribute in the current domain.
    void
    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.
     

    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 Details

    • MailTemplateDocument

      public MailTemplateDocument()
    • MailTemplateDocument

      public MailTemplateDocument(String id)
    • MailTemplateDocument

      public MailTemplateDocument(MailTemplateDocument toClone)
  • Method Details

    • getName

      public String getName()
      Description copied from interface: MailTemplate
      Returns the value of the name attribute.
      Specified by:
      getName in interface MailTemplate
    • 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
    • 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
    • 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
    • getSenderNameEN

      public 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 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
    • 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
    • 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
    • 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
    • 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
    • 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
    • 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
    • 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
    • getPlainMessageEN

      public 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 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
    • 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
    • getLocalizations

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

      public void setLocalizations(List<String> value)
      Description copied from interface: MailTemplate
      Sets the value of the localizations attribute.
      Specified by:
      setLocalizations 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
    • addLocalizationsElement

      public void addLocalizationsElement(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 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 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
    • 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(Object o)
      Overrides:
      equals in class Object