ALF-9347 (SVC 42) - Blog CQ impl

- initial refactor - we have the option to push-down some of the prop filtering
- note: BlogServiceImpl did not need to change
- TODO: review tag req w/ Neil (either remove and/or push down)

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28728 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Jan Vonka
2011-06-30 14:54:28 +00:00
parent da43c06b68
commit a2d83e1311
12 changed files with 625 additions and 351 deletions

View File

@@ -20,40 +20,36 @@ package org.alfresco.repo.blog.cannedqueries;
import java.util.Date;
import org.alfresco.service.cmr.repository.NodeRef;
/**
* Parameters for {@link DraftsAndPublishedBlogPostsCannedQuery}.
*
* @author Neil Mc Erlean
* @since 4.0
*/
public class DraftsAndPublishedBlogPostsCannedQueryParams
public class DraftsAndPublishedBlogPostsCannedQueryParams extends BlogEntity
{
private final NodeRef blogContainerNode;
private final String cmCreator;
private final Date createdFromDate;
private final Date createdToDate;
private final String tag;
public DraftsAndPublishedBlogPostsCannedQueryParams(NodeRef blogContainerNodeRef,
String cmCreator,
Date createdFromDate,
Date createdToDate,
String tag)
public DraftsAndPublishedBlogPostsCannedQueryParams(Long blogContainerNodeId,
Long nameQNameId,
Long publishedQNameId,
Long contentTypeQNameId,
String cmCreator,
Date createdFromDate,
Date createdToDate,
String tag)
{
this.blogContainerNode = blogContainerNodeRef;
super(blogContainerNodeId, nameQNameId, publishedQNameId, contentTypeQNameId, null, null);
this.cmCreator = cmCreator;
this.createdFromDate = createdFromDate;
this.createdToDate = createdToDate;
this.tag = tag;
}
public NodeRef getBlogContainerNode()
{
return blogContainerNode;
}
public String getCmCreator()
{
return cmCreator;