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 OutputJob
OutputJob.ArchiveType, OutputJob.Status, OutputJob.Type -
Field Summary
Fields inherited from class CommonEntityDelegate
documentDao, executor, jobMapper -
Constructor Summary
ConstructorsConstructorDescriptionOutputJobImpl(Entity entity, CommandExecutor executor, DocumentDao documentDao) -
Method Summary
Modifier and TypeMethodDescriptionbooleanorg.joda.time.DateTimeThe 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()inthashCode()booleanTells whether this is a personalized job (one with items) or an unpersonalized job.toString()Methods inherited from class CommonEntityDelegate
getDelegate, getValue, loader, perform, resolveAndMap, resolveAndMap, resolveSingleAndMap, resolveSingleAndMap, resolveUniqueIdMethods inherited from interface Mergable
getDelegate
-
Constructor Details
-
OutputJobImpl
-
-
Method Details
-
getMergeRelationName
- Specified by:
getMergeRelationNamein interfaceMergable
-
getId
-
getCreatedTime
public org.joda.time.DateTime getCreatedTime()Description copied from interface:OutputJobThe timestamp this output job was created.- Specified by:
getCreatedTimein interfaceOutputJob
-
getOwner
-
getLabel
-
getFileName
- Specified by:
getFileNamein 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:OutputJobA list of personalized documents with their corresponding recipients. -
getMergeItems
Description copied from interface:OutputJobIf this job is a merge-job, this method returns the list of jobs that have been merged into this one.- Specified by:
getMergeItemsin interfaceOutputJob
-
isPersonalized
public boolean isPersonalized()Description copied from interface:OutputJobTells whether this is a personalized job (one with items) or an unpersonalized job.- Specified by:
isPersonalizedin interfaceOutputJob
-
getDocument
Description copied from interface:OutputJobThe 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:
getDocumentin interfaceOutputJob
-
toString
-
equals
-
hashCode
-
getMimeType
- Specified by:
getMimeTypein interfaceMergable
-