You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@manifoldcf.apache.org by kw...@apache.org on 2013/03/04 17:04:37 UTC
svn commit: r1452356 -
/manifoldcf/trunk/framework/agents/src/main/java/org/apache/manifoldcf/agents/interfaces/RepositoryDocument.java
Author: kwright
Date: Mon Mar 4 16:04:37 2013
New Revision: 1452356
URL: http://svn.apache.org/r1452356
Log:
Add support for created and modified dates; part of CONNECTORS-657.
Modified:
manifoldcf/trunk/framework/agents/src/main/java/org/apache/manifoldcf/agents/interfaces/RepositoryDocument.java
Modified: manifoldcf/trunk/framework/agents/src/main/java/org/apache/manifoldcf/agents/interfaces/RepositoryDocument.java
URL: http://svn.apache.org/viewvc/manifoldcf/trunk/framework/agents/src/main/java/org/apache/manifoldcf/agents/interfaces/RepositoryDocument.java?rev=1452356&r1=1452355&r2=1452356&view=diff
==============================================================================
--- manifoldcf/trunk/framework/agents/src/main/java/org/apache/manifoldcf/agents/interfaces/RepositoryDocument.java (original)
+++ manifoldcf/trunk/framework/agents/src/main/java/org/apache/manifoldcf/agents/interfaces/RepositoryDocument.java Mon Mar 4 16:04:37 2013
@@ -46,6 +46,8 @@ public class RepositoryDocument
protected List<Security> directorySecurity = new ArrayList<Security>();
protected String fileName = "docname";
protected String contentMimeType = "application/octet-stream";
+ protected Date createdDate = null;
+ protected Date modifiedDate = null;
/** Constructor.
*/
@@ -53,6 +55,38 @@ public class RepositoryDocument
{
}
+ /** Set the document's created date. Use null to indicate that the date is unknown.
+ *@param date is the date.
+ */
+ public void setCreatedDate(Date date)
+ {
+ createdDate = date;
+ }
+
+ /** Get the document's created date. Returns null of the date is unknown.
+ *@return the date.
+ */
+ public Date getCreatedDate()
+ {
+ return createdDate;
+ }
+
+ /** Set the document's last-modified date. Use null to indicate that the date is unknown.
+ *@param date is the date.
+ */
+ public void setModifiedDate(Date date)
+ {
+ modifiedDate = date;
+ }
+
+ /** Get the document's modified date. Returns null of the date is unknown.
+ *@return the date.
+ */
+ public Date getModifiedDate()
+ {
+ return modifiedDate;
+ }
+
/** Set the document's mime type.
*@param mimeType is the mime type.
*/