|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.alfresco.repo.processor.BaseProcessorExtension
org.alfresco.repo.jscript.BaseScopableProcessorExtension
org.alfresco.repo.jscript.Classification
public final class Classification
Support class for finding categories, finding root nodes for categories and creating root categories.
Nested Class Summary | |
---|---|
class |
Classification.Tag
Tag class returned from getCategoryUsage(). |
Constructor Summary | |
---|---|
Classification()
|
Method Summary | |
---|---|
CategoryNode |
createRootCategory(java.lang.String aspect,
java.lang.String name)
Create a root category in a classification. |
org.mozilla.javascript.Scriptable |
getAllCategoryNodes(java.lang.String aspect)
Find all the category nodes in a given classification. |
java.lang.String[] |
getAllClassificationAspects()
Get all the aspects that define a classification. |
CategoryNode |
getCategory(java.lang.String categoryRef)
Get the category node from the category node reference. |
org.mozilla.javascript.Scriptable |
getCategoryUsage(java.lang.String aspect,
int maxCount)
Get the category usage count. |
org.mozilla.javascript.Scriptable |
getRootCategories(java.lang.String aspect)
Get the root categories in a classification. |
void |
setServiceRegistry(ServiceRegistry services)
Set the service registry |
void |
setStoreUrl(java.lang.String storeRef)
Set the default store reference |
Methods inherited from class org.alfresco.repo.jscript.BaseScopableProcessorExtension |
---|
getScope, setScope |
Methods inherited from class org.alfresco.repo.processor.BaseProcessorExtension |
---|
getExtensionName, register, setExtensionName, setProcessor |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Classification()
Method Detail |
---|
public void setStoreUrl(java.lang.String storeRef)
storeRef
- the default store referencepublic void setServiceRegistry(ServiceRegistry services)
services
- the service registrypublic org.mozilla.javascript.Scriptable getAllCategoryNodes(java.lang.String aspect)
aspect
-
public java.lang.String[] getAllClassificationAspects()
public CategoryNode createRootCategory(java.lang.String aspect, java.lang.String name)
aspect
- name
- public CategoryNode getCategory(java.lang.String categoryRef)
categoryRef
- category node reference
CategoryNode
category nodepublic org.mozilla.javascript.Scriptable getRootCategories(java.lang.String aspect)
aspect
-
public org.mozilla.javascript.Scriptable getCategoryUsage(java.lang.String aspect, int maxCount)
aspect
- maxCount
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |