mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
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:
@@ -109,9 +109,12 @@ public final class Classification extends BaseScopableProcessorExtension
|
||||
* @param aspect
|
||||
* @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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user