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:
Nick Burch
2011-10-12 17:39:19 +00:00
parent c8bdbb0135
commit f522dbad81
3 changed files with 112 additions and 3 deletions

View File

@@ -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.
*