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 void
addOutgoingMail(ToDoOutgoingMail mail)
void
anonymize()
java.lang.String
getAnswer()
java.util.Set<ToDoAttachmentProxy>
getAttachments()
This method returns the attachments of the inquiryjava.util.Date
getConfirmationDate()
java.time.LocalDateTime
getConfirmationLocalDatetime()
java.util.Date
getCreationDate()
java.time.LocalDateTime
getCreationLocalDatetime()
ToDoUser
getCreator()
java.lang.Long
getCreatorId()
java.lang.String
getCreatorName()
java.lang.String
getEmailAddress()
java.util.Date
getErrorDate()
java.lang.Long
getId()
Method returning a canonical id of the object.java.util.Set<ToDoOutgoingMail>
getOutgoingMails()
Returns the outgoing mails attached to this task.java.lang.String
getQuestion()
ToDoTask
getTask()
java.lang.Integer
getVersion()
Method returning the version of the instancejava.lang.Boolean
isActive()
Method that returns whether the instance is active or not (means: logically deleted)boolean
isConfirmed()
boolean
isCopyAttachments()
boolean
isInErrorState()
void
setActive(java.lang.Boolean active)
Method setting the active flag.void
setAnswer(java.lang.String answer)
void
setAttachments(java.util.Set<ToDoAttachmentProxy> attachments)
This method set the attachments of the inquiry.void
setConfirmationDate(java.util.Date confirmationDate)
void
setCopyAttachments(boolean copyAttachments)
void
setCreationDate(java.util.Date creationDate)
void
setCreator(ToDoUser creator)
void
setCreatorId(java.lang.Long creatorId)
void
setEmailAddress(java.lang.String emailAddress)
void
setErrorDate(java.util.Date errorDate)
void
setId(java.lang.Long id)
Method setting the canonical id of the object.void
setInactive()
Method to delete an object logically.void
setOutgoingMails(java.util.Set<ToDoOutgoingMail> outgoingMails)
Sets outgoing mails attached to this task.void
setQuestion(java.lang.String question)
void
setTask(ToDoTask task)
void
setToActive()
Method to undelete an object logically.void
setVersion(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
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:
anonymize
in classToDoVersionedIdentifiable
-
getId
public java.lang.Long getId()
Description copied from class:ToDoVersionedIdentifiable
Method returning a canonical id of the object. Transient objects return -1;- Specified by:
getId
in 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:ToDoVersionedIdentifiable
Method setting the canonical id of the object. Should under normal circumstances not be manually invoked.- Specified by:
setId
in classToDoVersionedIdentifiable
- Parameters:
id
- id of the object
-
getVersion
public java.lang.Integer getVersion()
Description copied from class:ToDoVersionedIdentifiable
Method returning the version of the instance- Specified by:
getVersion
in classToDoVersionedIdentifiable
- Returns:
- the version
-
setVersion
public void setVersion(java.lang.Integer version)
Description copied from class:ToDoVersionedIdentifiable
Method setting the version of the instance, Should under normal circumstances not be manually invoked.- Specified by:
setVersion
in classToDoVersionedIdentifiable
- Parameters:
version
- of the object
-
isActive
public java.lang.Boolean isActive()
Description copied from class:ToDoVersionedIdentifiable
Method that returns whether the instance is active or not (means: logically deleted)- Specified by:
isActive
in classToDoVersionedIdentifiable
- Returns:
- boolean whether the object is active
-
setActive
public void setActive(java.lang.Boolean active)
Description copied from class:ToDoVersionedIdentifiable
Method setting the active flag. Invoking this method with false logically deletes the instance in the database.- Specified by:
setActive
in classToDoVersionedIdentifiable
- Parameters:
active
- is the object active or not
-
setToActive
public void setToActive()
Description copied from class:ToDoVersionedIdentifiable
Method to undelete an object logically.- Specified by:
setToActive
in classToDoVersionedIdentifiable
-
setInactive
public void setInactive()
Description copied from class:ToDoVersionedIdentifiable
Method to delete an object logically.- Specified by:
setInactive
in 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()
-
-