Package ch.tocco.nice2.outputcenter.impl
Class OutputJobImpl
java.lang.Object
ch.tocco.nice2.outputcenter.impl.CommonEntityDelegate
ch.tocco.nice2.outputcenter.impl.OutputJobImpl
-
Nested Class Summary
Nested classes/interfaces inherited from interface ch.tocco.nice2.outputcenter.api.OutputJob
OutputJob.ArchiveType, OutputJob.Status, OutputJob.Type
-
Field Summary
Fields inherited from class ch.tocco.nice2.outputcenter.impl.CommonEntityDelegate
documentDao, executor, jobMapper
-
Constructor Summary
ConstructorDescriptionOutputJobImpl
(Entity entity, CommandExecutor executor, DocumentDao documentDao) -
Method Summary
Modifier and TypeMethodDescriptionboolean
org.joda.time.DateTime
The timestamp this output job was created.The document if this job is "not personalized", meaning there are no recipients for this document.getFileName
(org.joda.time.DateTimeZone zone) getId()
The id of this output job.getItems()
A list of personalized documents with their corresponding recipients.getLabel()
The label or name of the document without a possible extension.If this job is a merge-job, this method returns the list of jobs that have been merged into this one.getOwner()
The owner user, who created this output job.getType()
int
hashCode()
boolean
Tells whether this is a personalized job (one with items) or an unpersonalized job.toString()
Methods inherited from class ch.tocco.nice2.outputcenter.impl.CommonEntityDelegate
getDelegate, getValue, loader, perform, resolveAndMap, resolveAndMap, resolveSingleAndMap, resolveSingleAndMap, resolveUniqueId
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface ch.tocco.nice2.outputcenter.api.Mergable
getDelegate
-
Constructor Details
-
OutputJobImpl
-
-
Method Details
-
getMergeRelationName
- Specified by:
getMergeRelationName
in interfaceMergable
-
getId
Description copied from interface:OutputJob
The id of this output job. It uniquely identifies this job. -
getCreatedTime
public org.joda.time.DateTime getCreatedTime()Description copied from interface:OutputJob
The timestamp this output job was created.- Specified by:
getCreatedTime
in interfaceOutputJob
-
getOwner
Description copied from interface:OutputJob
The owner user, who created this output job. If it was created by the system, there is no owner. -
getLabel
Description copied from interface:OutputJob
The label or name of the document without a possible extension. -
getFileName
- Specified by:
getFileName
in interfaceMergable
- Parameters:
zone
- time zone to format the timestamp in the filename- Returns:
- the filename used to download the document (without file extension / mime type)
-
getStatus
-
getType
-
getItems
Description copied from interface:OutputJob
A list of personalized documents with their corresponding recipients. -
getMergeItems
Description copied from interface:OutputJob
If this job is a merge-job, this method returns the list of jobs that have been merged into this one.- Specified by:
getMergeItems
in interfaceOutputJob
-
isPersonalized
public boolean isPersonalized()Description copied from interface:OutputJob
Tells whether this is a personalized job (one with items) or an unpersonalized job.- Specified by:
isPersonalized
in interfaceOutputJob
-
getDocument
Description copied from interface:OutputJob
The document if this job is "not personalized", meaning there are no recipients for this document. In case of a personalized job, this document is a the result of concatenating the documents of all recipients.- Specified by:
getDocument
in interfaceOutputJob
-
toString
-
equals
-
hashCode
public int hashCode() -
getMimeType
- Specified by:
getMimeType
in interfaceMergable
-