* relative file path
* @param state
* file state
+ * @param processing
+ * processing instruction: file-download or file-import
+ * @param isResult
+ * true if the file is result
* @return the added file DTO
*/
- public FileDTO addFile(final String relativePath, final char state) {
- FileDTO fileDTO = new FileDTO(relativePath, state);
+ public FileDTO addFile(final String relativePath, final char state,
+ final String processing, final boolean isResult) {
+ FileDTO fileDTO = new FileDTO(relativePath, state, processing, isResult);
_files.add(fileDTO);
return fileDTO;
}
+
+ /**
+ * {@inheritDoc}
+ *
+ * @see java.lang.Object#toString()
+ */
+ @Override
+ public String toString() {
+ StringBuffer buf = new StringBuffer();
+ String indent = " ";
+ buf.append(indent).append("Document: ").append(getTitle()).append('\n')
+ .append(indent).append("Document ID: ").append(getId()).append(
+ '\n');
+ for (FileDTO file : getFiles()) {
+ buf.append(file);
+ }
+ return buf.toString();
+ }
}