mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
ALF-8969 (SVC 42) - BlogService get*
- minor: refactor BlogInfo interface/impl (collapse a few files, update imports) git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28671 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -20,6 +20,7 @@ package org.alfresco.repo.blog;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
import org.alfresco.model.ContentModel;
|
||||
import org.alfresco.query.PagingRequest;
|
||||
import org.alfresco.query.PagingResults;
|
||||
import org.alfresco.service.cmr.repository.ChildAssociationRef;
|
||||
@@ -119,4 +120,38 @@ public interface BlogService
|
||||
* @return <tt>true</tt> if it is a draft post, else <tt>false</tt>.
|
||||
*/
|
||||
boolean isDraftBlogPost(NodeRef blogPostNode);
|
||||
|
||||
/**
|
||||
* A simple data object for storage of blog-related data.
|
||||
*
|
||||
* @author Neil Mc Erlean
|
||||
* @since 4.0
|
||||
*/
|
||||
public class BlogPostInfo
|
||||
{
|
||||
private final NodeRef nodeRef;
|
||||
private final String name;
|
||||
|
||||
public BlogPostInfo(NodeRef nodeRef, String name)
|
||||
{
|
||||
this.nodeRef = nodeRef;
|
||||
this.name = name;
|
||||
}
|
||||
/**
|
||||
* Gets the NodeRef representing this blog-post.
|
||||
*/
|
||||
public NodeRef getNodeRef()
|
||||
{
|
||||
return nodeRef;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the {@link ContentModel#PROP_NAME cm:name} of the blog post.
|
||||
* @return
|
||||
*/
|
||||
public String getName()
|
||||
{
|
||||
return name;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user