Package com.proxemo.todo4.bom
Class ToDoInquiry
- java.lang.Object
-
- com.proxemo.todo4.bom.ToDoVersionedIdentifiable
-
- com.proxemo.todo4.bom.ToDoInquiry
-
- All Implemented Interfaces:
java.io.Serializable
public class ToDoInquiry extends ToDoVersionedIdentifiable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ToDoInquiry()ToDoInquiry(ToDoInquiry iq)ToDoInquiry(java.lang.String question, java.lang.String emailAddress)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddOutgoingMail(ToDoOutgoingMail mail)voidanonymize()java.lang.StringgetAnswer()java.util.Set<ToDoAttachmentProxy>getAttachments()This method returns the attachments of the inquiryjava.util.DategetConfirmationDate()java.time.LocalDateTimegetConfirmationLocalDatetime()java.util.DategetCreationDate()java.time.LocalDateTimegetCreationLocalDatetime()ToDoUsergetCreator()java.lang.LonggetCreatorId()java.lang.StringgetCreatorName()java.lang.StringgetEmailAddress()java.util.DategetErrorDate()java.lang.LonggetId()Method returning a canonical id of the object.java.util.Set<ToDoOutgoingMail>getOutgoingMails()Returns the outgoing mails attached to this task.java.lang.StringgetQuestion()ToDoTaskgetTask()java.lang.IntegergetVersion()Method returning the version of the instancejava.lang.BooleanisActive()Method that returns whether the instance is active or not (means: logically deleted)booleanisConfirmed()booleanisCopyAttachments()booleanisInErrorState()voidsetActive(java.lang.Boolean active)Method setting the active flag.voidsetAnswer(java.lang.String answer)voidsetAttachments(java.util.Set<ToDoAttachmentProxy> attachments)This method set the attachments of the inquiry.voidsetConfirmationDate(java.util.Date confirmationDate)voidsetCopyAttachments(boolean copyAttachments)voidsetCreationDate(java.util.Date creationDate)voidsetCreator(ToDoUser creator)voidsetCreatorId(java.lang.Long creatorId)voidsetEmailAddress(java.lang.String emailAddress)voidsetErrorDate(java.util.Date errorDate)voidsetId(java.lang.Long id)Method setting the canonical id of the object.voidsetInactive()Method to delete an object logically.voidsetOutgoingMails(java.util.Set<ToDoOutgoingMail> outgoingMails)Sets outgoing mails attached to this task.voidsetQuestion(java.lang.String question)voidsetTask(ToDoTask task)voidsetToActive()Method to undelete an object logically.voidsetVersion(java.lang.Integer version)Method setting the version of the instance, Should under normal circumstances not be manually invoked.-
Methods inherited from class com.proxemo.todo4.bom.ToDoVersionedIdentifiable
areEqual, getActiveAsIcon, getAnonymizeString, getCanonicalId, isTransient, setToTransient
-
-
-
-
Constructor Detail
-
ToDoInquiry
public ToDoInquiry()
-
ToDoInquiry
public ToDoInquiry(java.lang.String question, java.lang.String emailAddress)
-
ToDoInquiry
public ToDoInquiry(ToDoInquiry iq)
-
-
Method Detail
-
getAnswer
public java.lang.String getAnswer()
-
setAnswer
public void setAnswer(java.lang.String answer)
-
getQuestion
public java.lang.String getQuestion()
-
setQuestion
public void setQuestion(java.lang.String question)
-
isConfirmed
public boolean isConfirmed()
-
isInErrorState
public boolean isInErrorState()
-
getConfirmationDate
public java.util.Date getConfirmationDate()
-
getConfirmationLocalDatetime
public java.time.LocalDateTime getConfirmationLocalDatetime()
-
setConfirmationDate
public void setConfirmationDate(java.util.Date confirmationDate)
-
getCreationDate
public java.util.Date getCreationDate()
-
getCreationLocalDatetime
public java.time.LocalDateTime getCreationLocalDatetime()
-
setCreationDate
public void setCreationDate(java.util.Date creationDate)
-
getEmailAddress
public java.lang.String getEmailAddress()
-
setEmailAddress
public void setEmailAddress(java.lang.String emailAddress)
-
getErrorDate
public java.util.Date getErrorDate()
-
setErrorDate
public void setErrorDate(java.util.Date errorDate)
-
isCopyAttachments
public boolean isCopyAttachments()
-
setCopyAttachments
public void setCopyAttachments(boolean copyAttachments)
-
getOutgoingMails
public java.util.Set<ToDoOutgoingMail> getOutgoingMails()
Returns the outgoing mails attached to this task.- Returns:
- the set of outgoing mails attached to this task
-
setOutgoingMails
public void setOutgoingMails(java.util.Set<ToDoOutgoingMail> outgoingMails)
Sets outgoing mails attached to this task.- Parameters:
outgoingMails- the set of outgoing mails to be attached to this task
-
getAttachments
public java.util.Set<ToDoAttachmentProxy> getAttachments()
This method returns the attachments of the inquiry- Returns:
- a set of
com.proxemo.todo.bom.ToDoAttachmentProxy
-
setAttachments
public void setAttachments(java.util.Set<ToDoAttachmentProxy> attachments)
This method set the attachments of the inquiry.- Parameters:
attachments- a set ofcom.proxemo.todo.bom.ToDoAttachmentProxy
-
addOutgoingMail
public void addOutgoingMail(ToDoOutgoingMail mail)
-
getCreator
public ToDoUser getCreator()
-
setCreator
public void setCreator(ToDoUser creator)
-
anonymize
public void anonymize()
- Specified by:
anonymizein classToDoVersionedIdentifiable
-
getId
public java.lang.Long getId()
Description copied from class:ToDoVersionedIdentifiableMethod returning a canonical id of the object. Transient objects return -1;- Specified by:
getIdin classToDoVersionedIdentifiable- Returns:
- id the id of the object. Id is canonical for all instances of a class.
-
setId
public void setId(java.lang.Long id)
Description copied from class:ToDoVersionedIdentifiableMethod setting the canonical id of the object. Should under normal circumstances not be manually invoked.- Specified by:
setIdin classToDoVersionedIdentifiable- Parameters:
id- id of the object
-
getVersion
public java.lang.Integer getVersion()
Description copied from class:ToDoVersionedIdentifiableMethod returning the version of the instance- Specified by:
getVersionin classToDoVersionedIdentifiable- Returns:
- the version
-
setVersion
public void setVersion(java.lang.Integer version)
Description copied from class:ToDoVersionedIdentifiableMethod setting the version of the instance, Should under normal circumstances not be manually invoked.- Specified by:
setVersionin classToDoVersionedIdentifiable- Parameters:
version- of the object
-
isActive
public java.lang.Boolean isActive()
Description copied from class:ToDoVersionedIdentifiableMethod that returns whether the instance is active or not (means: logically deleted)- Specified by:
isActivein classToDoVersionedIdentifiable- Returns:
- boolean whether the object is active
-
setActive
public void setActive(java.lang.Boolean active)
Description copied from class:ToDoVersionedIdentifiableMethod setting the active flag. Invoking this method with false logically deletes the instance in the database.- Specified by:
setActivein classToDoVersionedIdentifiable- Parameters:
active- is the object active or not
-
setToActive
public void setToActive()
Description copied from class:ToDoVersionedIdentifiableMethod to undelete an object logically.- Specified by:
setToActivein classToDoVersionedIdentifiable
-
setInactive
public void setInactive()
Description copied from class:ToDoVersionedIdentifiableMethod to delete an object logically.- Specified by:
setInactivein classToDoVersionedIdentifiable
-
getTask
public ToDoTask getTask()
-
setTask
public void setTask(ToDoTask task)
-
getCreatorId
public java.lang.Long getCreatorId()
-
setCreatorId
public void setCreatorId(java.lang.Long creatorId)
-
getCreatorName
public java.lang.String getCreatorName()
-
-