mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
ALF-10429 / ALF-10413 Refactor the blog webscripts to follow the pattern of the other new service webscripts, avoiding the old JS style code
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@31184 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -24,6 +24,7 @@ import org.alfresco.model.ContentModel;
|
||||
import org.alfresco.query.PagingRequest;
|
||||
import org.alfresco.query.PagingResults;
|
||||
import org.alfresco.repo.blog.BlogIntegrationService;
|
||||
import org.alfresco.service.NotAuditable;
|
||||
import org.alfresco.service.cmr.dictionary.DataTypeDefinition;
|
||||
import org.alfresco.service.cmr.repository.NodeRef;
|
||||
import org.alfresco.service.cmr.site.SiteService;
|
||||
@@ -81,6 +82,28 @@ public interface BlogService
|
||||
*/
|
||||
void deleteBlogPost(BlogPostInfo post);
|
||||
|
||||
/**
|
||||
* For a given NodeRef corresponding to a {@link BlogPostInfo},
|
||||
* returns the object wrapping the Node.
|
||||
*
|
||||
* For anything else, the response is null.
|
||||
*/
|
||||
@NotAuditable
|
||||
BlogPostInfo getForNodeRef(NodeRef nodeRef);
|
||||
|
||||
/**
|
||||
* Retrieves an existing {@link BlogPostInfo} from the repository,
|
||||
* which is within a site
|
||||
*/
|
||||
BlogPostInfo getBlogPost(String siteShortName, String postName);
|
||||
|
||||
/**
|
||||
* Retrieves an existing {@link BlogPostInfo} from the repository,
|
||||
* which is attached to the specified Node.
|
||||
* The parent Node should normally be a Site Container
|
||||
*/
|
||||
BlogPostInfo getBlogPost(NodeRef parentNodeRef, String postName);
|
||||
|
||||
/**
|
||||
* Gets the draft blog posts created by the specified user.
|
||||
*
|
||||
|
Reference in New Issue
Block a user