ALF-9385. Changing return-type of BlogService.createBlogPost to BlogPostInfo. Was ChAssRef which is inconsistent with the rest of the class API.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28909 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Neil McErlean
2011-07-11 11:01:09 +00:00
parent a3b630be98
commit 4263281278
3 changed files with 26 additions and 28 deletions

View File

@@ -130,10 +130,10 @@ public class BlogServiceImpl implements BlogService
}
@Override
public ChildAssociationRef createBlogPost(NodeRef blogContainerNode, String blogTitle,
public BlogPostInfo createBlogPost(NodeRef blogContainerNode, String blogTitle,
String blogContent, boolean isDraft)
{
String nodeName = getUniqueChildName(blogContainerNode, "post");
final String nodeName = getUniqueChildName(blogContainerNode, "post");
// we simply create a new file inside the blog folder
Map<QName, Serializable> nodeProps = new HashMap<QName, Serializable>();
@@ -161,7 +161,7 @@ public class BlogServiceImpl implements BlogService
setOrUpdateReleasedAndUpdatedDates(postNode.getChildRef());
}
return postNode;
return new BlogPostInfo(postNode.getChildRef(), nodeName);
}
@Override