Search in sources :

Example 1 with DraftsAndPublishedBlogPostsCannedQuery

use of org.alfresco.repo.blog.cannedqueries.DraftsAndPublishedBlogPostsCannedQuery in project alfresco-repository by Alfresco.

the class BlogServiceImpl method getMyDraftsAndAllPublished.

/**
 * @deprecated
 */
@Override
public PagingResults<BlogPostInfo> getMyDraftsAndAllPublished(NodeRef blogContainerNode, Date createdFrom, Date createdTo, PagingRequest pagingReq) {
    ParameterCheck.mandatory("blogContainerNode", blogContainerNode);
    ParameterCheck.mandatory("pagingReq", pagingReq);
    // get canned query
    String currentUser = AuthenticationUtil.getFullyAuthenticatedUser();
    DraftsAndPublishedBlogPostsCannedQuery cq = (DraftsAndPublishedBlogPostsCannedQuery) draftsAndPublishedBlogPostsCannedQueryFactory.getCannedQuery(blogContainerNode, createdFrom, createdTo, currentUser, pagingReq);
    // execute canned query
    CannedQueryResults<BlogEntity> results = cq.execute();
    return wrap(results, blogContainerNode);
}
Also used : BlogEntity(org.alfresco.repo.blog.cannedqueries.BlogEntity) DraftsAndPublishedBlogPostsCannedQuery(org.alfresco.repo.blog.cannedqueries.DraftsAndPublishedBlogPostsCannedQuery)

Aggregations

BlogEntity (org.alfresco.repo.blog.cannedqueries.BlogEntity)1 DraftsAndPublishedBlogPostsCannedQuery (org.alfresco.repo.blog.cannedqueries.DraftsAndPublishedBlogPostsCannedQuery)1