createRootCategory() now returns the category node

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@7511 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Mike Hatfield
2007-12-03 21:25:56 +00:00
parent c0cf11e50f
commit 8b9b54a513

View File

@@ -109,9 +109,12 @@ public final class Classification extends BaseScopableProcessorExtension
* @param aspect * @param aspect
* @param name * @param name
*/ */
public void createRootCategory(String aspect, String name) public CategoryNode createRootCategory(String aspect, String name)
{ {
services.getCategoryService().createRootCategory(storeRef, createQName(aspect), name); NodeRef categoryNodeRef = services.getCategoryService().createRootCategory(storeRef, createQName(aspect), name);
CategoryNode categoryNode = new CategoryNode(categoryNodeRef, this.services, getScope());
return categoryNode;
} }
/** /**