org.alfresco.repo.template
Class Classification

java.lang.Object
  extended by org.alfresco.repo.processor.BaseProcessorExtension
      extended by org.alfresco.repo.template.BaseTemplateProcessorExtension
          extended by org.alfresco.repo.template.Classification
All Implemented Interfaces:
org.alfresco.processor.ProcessorExtension, TemplateProcessorExtension

public class Classification
extends BaseTemplateProcessorExtension

Support for finding classifications and their root categories.


Constructor Summary
Classification()
           
 
Method Summary
 java.util.List getAllCategoryNodes(org.alfresco.service.namespace.QName aspect)
          Find all the category nodes in a given classification.
 java.util.List getAllCategoryNodes(java.lang.String aspect)
          Find all the category nodes in a given classification.
 java.util.List getAllClassificationAspects()
           
 java.util.List getRootCategories(java.lang.String aspect)
          Get the root categories in a classification.
 void setServiceRegistry(ServiceRegistry services)
          Sets the service registry
 void setStoreUrl(java.lang.String storeUrl)
           
 
Methods inherited from class org.alfresco.repo.template.BaseTemplateProcessorExtension
getTemplateImageResolver, setTemplateImageResolver
 
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
 
Methods inherited from interface org.alfresco.processor.ProcessorExtension
getExtensionName
 

Constructor Detail

Classification

public Classification()
Method Detail

setServiceRegistry

public void setServiceRegistry(ServiceRegistry services)
Sets the service registry

Parameters:
services - the service registry

setStoreUrl

public void setStoreUrl(java.lang.String storeUrl)
Parameters:
storeUrl - The store ref url to set.

getAllCategoryNodes

public java.util.List getAllCategoryNodes(java.lang.String aspect)
Find all the category nodes in a given classification.

Parameters:
aspect -
Returns:
all the category nodes in a given classification.

getAllCategoryNodes

public java.util.List getAllCategoryNodes(org.alfresco.service.namespace.QName aspect)
Find all the category nodes in a given classification.

Parameters:
aspect -
Returns:
all the category nodes in a given classification.

getAllClassificationAspects

public java.util.List getAllClassificationAspects()
Returns:
all the aspects that define a classification.

getRootCategories

public java.util.List getRootCategories(java.lang.String aspect)
Get the root categories in a classification.

Parameters:
aspect -
Returns:
List of TemplateNode


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.