* 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;
}
StringBuffer buf = new StringBuffer();
String indent = " ";
buf.append(indent).append("Document: ").append(getTitle()).append('\n')
- .append(indent).append(" Document ID: ").append(getId())
- .append('\n');
+ .append(indent).append("Document ID: ").append(getId()).append(
+ '\n');
for (FileDTO file : getFiles()) {
buf.append(file);
}