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

@@ -169,7 +169,12 @@ public class GetCalendarEntriesCannedQuery extends AbstractCannedQueryPermission
{
private CalendarEntryImpl(CalendarEntity entity)
{
super(entity.getNodeRef(), entity.getName());
super(
entity.getNodeRef(),
// TODO Fetch this from the database layer when querying
nodeService.getPrimaryParent(entity.getNodeRef()).getParentRef(),
entity.getName()
);
super.populate(nodeService.getProperties(entity.getNodeRef()));
super.setTags(taggingService.getTags(entity.getNodeRef()));
}