ALF-9156 Tweaks to the calendar listing, to return better empty results where needed, and to include the container noderef too

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@29038 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Nick Burch
2011-07-14 14:24:16 +00:00
parent 812398be66
commit bfa8a8c4ff
6 changed files with 52 additions and 13 deletions

View File

@@ -37,6 +37,11 @@ public interface CalendarEntry extends Serializable, PermissionCheckValue {
*/
NodeRef getNodeRef();
/**
* @return the NodeRef of the site container this belongs to
*/
NodeRef getContainerNodeRef();
/**
* @return the System generated name for the event
*/

View File

@@ -33,7 +33,10 @@ import org.alfresco.service.cmr.repository.NodeRef;
* @since 4.0
*/
public class CalendarEntryDTO implements CalendarEntry, Serializable {
private static final long serialVersionUID = -7997650453677545845L;
private NodeRef nodeRef;
private NodeRef containerNodeRef;
private String systemName;
private String title;
@@ -76,6 +79,14 @@ public class CalendarEntryDTO implements CalendarEntry, Serializable {
return nodeRef;
}
/**
* @return the NodeRef of the calendar's container in the site
*/
public NodeRef getContainerNodeRef()
{
return containerNodeRef;
}
/**
* @return the System generated name for the event
*/