|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.alfresco.repo.blog.BlogServiceImpl
public class BlogServiceImpl
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.alfresco.service.cmr.blog.BlogService |
---|
BlogService.BlogPostInfo, BlogService.RangedDateProperty |
Constructor Summary | |
---|---|
BlogServiceImpl()
|
Method Summary | |
---|---|
BlogService.BlogPostInfo |
createBlogPost(org.alfresco.service.cmr.repository.NodeRef blogContainerNode,
java.lang.String blogTitle,
java.lang.String blogContent,
boolean isDraft)
Creates a new blog post within the specified container node. |
org.alfresco.query.PagingResults |
findBlogPosts(org.alfresco.service.cmr.repository.NodeRef blogContainerNode,
BlogService.RangedDateProperty dateRange,
java.lang.String tag,
org.alfresco.query.PagingRequest pagingReq)
Finds blog posts by the specified user tagged with the given tag string. |
org.alfresco.query.PagingResults |
getDrafts(org.alfresco.service.cmr.repository.NodeRef blogContainerNode,
java.lang.String username,
org.alfresco.query.PagingRequest pagingReq)
Gets the draft blog posts created by the specified user. |
org.alfresco.query.PagingResults |
getMyDraftsAndAllPublished(org.alfresco.service.cmr.repository.NodeRef blogContainerNode,
java.util.Date createdFrom,
java.util.Date createdTo,
org.alfresco.query.PagingRequest pagingReq)
Deprecated. |
org.alfresco.query.PagingResults |
getPublished(org.alfresco.service.cmr.repository.NodeRef blogContainerNode,
java.util.Date fromDate,
java.util.Date toDate,
java.lang.String byUser,
org.alfresco.query.PagingRequest pagingReq)
Gets the (internally, Alfresco-) published blog posts. |
org.alfresco.query.PagingResults |
getPublishedExternally(org.alfresco.service.cmr.repository.NodeRef blogContainerNode,
org.alfresco.query.PagingRequest pagingReq)
Gets blog posts published externally (i.e. |
boolean |
isDraftBlogPost(org.alfresco.service.cmr.repository.NodeRef blogPostNode)
Returns true if the specified blog-post node is a 'draft' blog post. |
void |
setCannedQueryRegistry(org.alfresco.util.registry.NamedObjectRegistry cannedQueryRegistry)
|
void |
setContentService(ContentService contentService)
|
void |
setDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)
|
void |
setDraftBlogPostsCannedQueryFactory(GetBlogPostsCannedQueryFactory cannedQueryFactory)
|
void |
setDraftsAndPublishedBlogPostsCannedQueryFactory(DraftsAndPublishedBlogPostsCannedQueryFactory cannedQueryFactory)
|
void |
setNamespaceService(org.alfresco.service.namespace.NamespaceService namespaceService)
|
void |
setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
|
void |
setPermissionService(org.alfresco.service.cmr.security.PermissionService permissionService)
|
void |
setPublishedBlogPostsCannedQueryFactory(GetBlogPostsCannedQueryFactory cannedQueryFactory)
|
void |
setPublishedExternallyBlogPostsCannedQueryFactory(GetBlogPostsCannedQueryFactory cannedQueryFactory)
|
void |
setSearchService(org.alfresco.service.cmr.search.SearchService searchService)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BlogServiceImpl()
Method Detail |
---|
public void setCannedQueryRegistry(org.alfresco.util.registry.NamedObjectRegistry cannedQueryRegistry)
public void setDraftBlogPostsCannedQueryFactory(GetBlogPostsCannedQueryFactory cannedQueryFactory)
public void setPublishedBlogPostsCannedQueryFactory(GetBlogPostsCannedQueryFactory cannedQueryFactory)
public void setPublishedExternallyBlogPostsCannedQueryFactory(GetBlogPostsCannedQueryFactory cannedQueryFactory)
public void setDraftsAndPublishedBlogPostsCannedQueryFactory(DraftsAndPublishedBlogPostsCannedQueryFactory cannedQueryFactory)
public void setContentService(ContentService contentService)
public void setDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)
public void setNamespaceService(org.alfresco.service.namespace.NamespaceService namespaceService)
public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
public void setPermissionService(org.alfresco.service.cmr.security.PermissionService permissionService)
public void setSearchService(org.alfresco.service.cmr.search.SearchService searchService)
public boolean isDraftBlogPost(org.alfresco.service.cmr.repository.NodeRef blogPostNode)
BlogService
isDraftBlogPost
in interface BlogService
blogPostNode
- a NodeRef representing a blog-post.
public BlogService.BlogPostInfo createBlogPost(org.alfresco.service.cmr.repository.NodeRef blogContainerNode, java.lang.String blogTitle, java.lang.String blogContent, boolean isDraft)
BlogService
createBlogPost
in interface BlogService
blogContainerNode
- the container node for blog posts (under the site).blogTitle
- the title of the blog post.blogContent
- text/html content of the blog post.isDraft
- true if the blog post is a draft post, else false.
BlogService.BlogPostInfo
of the newly created blog post.to retrieve the blogContainerNode
public org.alfresco.query.PagingResults getDrafts(org.alfresco.service.cmr.repository.NodeRef blogContainerNode, java.lang.String username, org.alfresco.query.PagingRequest pagingReq)
BlogService
getDrafts
in interface BlogService
blogContainerNode
- the container node for blog posts (under the site).username
- to limit results to blogs with this cm:creator. null means all users.pagingReq
- an object defining the paging parameters for the result set.
PagingResults
object containing some or all of the results (subject to paging).to retrieve the blogContainerNode
public org.alfresco.query.PagingResults getPublishedExternally(org.alfresco.service.cmr.repository.NodeRef blogContainerNode, org.alfresco.query.PagingRequest pagingReq)
BlogService
getPublishedExternally
in interface BlogService
blogContainerNode
- the container node for blog posts (under the site).pagingReq
- an object defining the paging parameters for the result set.
PagingResults
object containing some or all of the results (subject to paging).to retrieve the blogContainerNode
public org.alfresco.query.PagingResults getPublished(org.alfresco.service.cmr.repository.NodeRef blogContainerNode, java.util.Date fromDate, java.util.Date toDate, java.lang.String byUser, org.alfresco.query.PagingRequest pagingReq)
BlogService
getPublished
in interface BlogService
blogContainerNode
- the container node for blog posts (under the site).fromDate
- an inclusive date limit for the results (more recent than).toDate
- an inclusive date limit for the results (before).byUser
- if not null limits results to posts by the specified user.
if null results will be by all users.pagingReq
- an object defining the paging parameters for the result set.
PagingResults
object containing some or all of the results (subject to paging).to retrieve the blogContainerNode
public org.alfresco.query.PagingResults getMyDraftsAndAllPublished(org.alfresco.service.cmr.repository.NodeRef blogContainerNode, java.util.Date createdFrom, java.util.Date createdTo, org.alfresco.query.PagingRequest pagingReq)
BlogService
getMyDraftsAndAllPublished
in interface BlogService
blogContainerNode
- the container node for blog posts (under the site).createdFrom
- an inclusive date limit for the results (more recent than).createdTo
- an inclusive date limit for the results (before).pagingReq
- an object defining the paging parameters for the result set.
PagingResults
object containing some or all of the results (subject to paging).to retrieve the blogContainerNode
public org.alfresco.query.PagingResults findBlogPosts(org.alfresco.service.cmr.repository.NodeRef blogContainerNode, BlogService.RangedDateProperty dateRange, java.lang.String tag, org.alfresco.query.PagingRequest pagingReq)
BlogService
DataTypeDefinition.DATE
or DataTypeDefinition.DATETIME
property. Examples include ContentModel.PROP_CREATED
or
ContentModel.PROP_PUBLISHED
.
findBlogPosts
in interface BlogService
blogContainerNode
- the container node for blog posts (under the site).dateRange
- a BlogService.RangedDateProperty
parameter object. Can be null.tag
- tag string.pagingReq
- an object defining the paging parameters for the result set.
PagingResults
object containing some or all of the results (subject to paging).to retrieve the blogContainerNode
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |