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

@@ -36,21 +36,24 @@ import org.alfresco.service.namespace.QName;
public class CalendarEntryImpl extends CalendarEntryDTO
{
private NodeRef nodeRef;
private NodeRef containerNodeRef;
private String systemName;
/**
* Wraps an existing Calendar Entry node
*/
protected CalendarEntryImpl(NodeRef nodeRef, String systemName)
protected CalendarEntryImpl(NodeRef nodeRef, NodeRef containerNodeRef, String systemName)
{
this.nodeRef = nodeRef;
this.systemName = systemName;
this.containerNodeRef = containerNodeRef;
}
protected void recordStorageDetails(NodeRef nodeRef, String systemName)
protected void recordStorageDetails(NodeRef nodeRef, NodeRef containerNodeRef, String systemName)
{
this.nodeRef = nodeRef;
this.systemName = systemName;
this.containerNodeRef = containerNodeRef;
}
@Override
@@ -59,6 +62,12 @@ public class CalendarEntryImpl extends CalendarEntryDTO
return nodeRef;
}
@Override
public NodeRef getContainerNodeRef()
{
return containerNodeRef;
}
@Override
public String getSystemName()
{