public final class Classification extends BaseScopableProcessorExtension
| Modifier and Type | Class and Description |
|---|---|
class |
Classification.Tag
Tag class returned from getCategoryUsage().
|
| Constructor and Description |
|---|
Classification() |
| Modifier and Type | Method and Description |
|---|---|
CategoryNode |
createRootCategory(String aspect,
String name)
Create a root category in a classification.
|
org.mozilla.javascript.Scriptable |
getAllCategoryNodes(String aspect)
Find all the category nodes in a given classification.
|
String[] |
getAllClassificationAspects()
Get all the aspects that define a classification.
|
CategoryNode |
getCategory(String categoryRef)
Get the category node from the category node reference.
|
org.mozilla.javascript.Scriptable |
getCategoryUsage(String aspect,
int maxCount)
Get the category usage count.
|
org.mozilla.javascript.Scriptable |
getRootCategories(String aspect)
Get the root categories in a classification.
|
org.mozilla.javascript.Scriptable |
getRootCategories(String aspect,
String filter,
int maxItems,
int skipCount)
Get ordered, filtered and paged root categories in a classification.
|
void |
setServiceRegistry(ServiceRegistry services)
Set the service registry
|
void |
setStoreUrl(String storeRef)
Set the default store reference
|
getScope, setScopegetExtensionName, register, setExtensionName, setProcessorpublic void setStoreUrl(String storeRef)
storeRef - the default store referencepublic void setServiceRegistry(ServiceRegistry services)
services - the service registrypublic org.mozilla.javascript.Scriptable getAllCategoryNodes(String aspect)
aspect - Stringpublic String[] getAllClassificationAspects()
public CategoryNode createRootCategory(String aspect, String name)
aspect - Stringname - Stringpublic CategoryNode getCategory(String categoryRef)
categoryRef - category node referenceCategoryNode category nodepublic org.mozilla.javascript.Scriptable getRootCategories(String aspect)
aspect - Stringpublic org.mozilla.javascript.Scriptable getRootCategories(String aspect, String filter, int maxItems, int skipCount)
aspect - filter - maxItems - skipCount - (offset)public org.mozilla.javascript.Scriptable getCategoryUsage(String aspect, int maxCount)
aspect - StringmaxCount - intCopyright © 2005–2018 Alfresco Software. All rights reserved.