ALF-10318 Update CalendarEntry to hold the created and modified at dates

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@30601 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Nick Burch
2011-09-19 12:56:01 +00:00
parent fb406b769b
commit eced94e231
5 changed files with 88 additions and 7 deletions

View File

@@ -159,4 +159,14 @@ public interface CalendarEntry extends Serializable, PermissionCheckValue
* @return the Tags associated with the event
*/
List<String> getTags();
/**
* @return the creation date and time
*/
Date getCreatedAt();
/**
* @return the modification date and time
*/
Date getModifiedAt();
}

View File

@@ -52,6 +52,8 @@ public class CalendarEntryDTO implements CalendarEntry, Serializable
private String sharePointDocFolder;
private boolean isOutlook = false;
private String outlookUID;
private Date createdAt;
private Date modifiedAt;
private List<String> tags = new ArrayList<String>();
/**
@@ -269,7 +271,31 @@ public class CalendarEntryDTO implements CalendarEntry, Serializable
{
return tags;
}
/**
* Gets when this entry was created
*/
public Date getCreatedAt()
{
return createdAt;
}
public void setCreatedAt(Date createdAt)
{
this.createdAt = createdAt;
}
/**
* Gets when this entry was modified
*/
public Date getModifiedAt()
{
return modifiedAt;
}
public void setModifiedAt(Date modifiedAt)
{
this.modifiedAt = modifiedAt;
}
/**
* Does the given {@link CalendarEntry} define an all-day
* event?