*/
public class FileDTO {
+ /**
+ * File persistent id.
+ */
+ private Long _id;
/**
* True if the file is a result file for a document.
*/
/**
* Constructor with initialization.
*
+ * @param id
+ * file persistent id
* @param relativePath
* relative file path
* @param state
* @param isResult
* true if the file is result
*/
- public FileDTO(final String relativePath, final char state,
+ public FileDTO(final long id, final String relativePath, final char state,
final String processing, final boolean isResult) {
+ _id = id;
_path = relativePath;
_state = state;
_processing = processing;
_isResult = isResult;
}
-
+
/**
* Constructor with partial initialization.
*
fstate = "file-outdated";
}
buf.append(indent).append(ftype).append(" file: ").append(getPath())
- .append('\n').append(indent).append(
+ .append('\n').append(indent).append(" File ID: ").append(
+ getId()).append('\n').append(indent).append(
" Automatic processing: ").append(getProcessing())
.append('\n').append(indent).append(" State: ").append(
fstate).append('\n');
return buf.toString();
}
+
+ /**
+ * Get the id.
+ *
+ * @return the id
+ */
+ public Long getId() {
+ return _id;
+ }
+
+ /**
+ * Set the id.
+ *
+ * @param id
+ * the id to set
+ */
+ public void setId(final Long id) {
+ _id = id;
+ }
}