mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
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:
@@ -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
|
||||
|
Reference in New Issue
Block a user