org.alfresco.repo.jscript
Class CategoryTemplateNode

java.lang.Object
  extended by org.alfresco.repo.template.BaseContentNode
      extended by org.alfresco.repo.template.BasePermissionsNode
          extended by org.alfresco.repo.template.TemplateNode
              extended by org.alfresco.repo.jscript.CategoryTemplateNode
All Implemented Interfaces:
java.io.Serializable, TemplateContent, TemplateNodeRef, TemplatePermissions, TemplateProperties, org.alfresco.service.namespace.NamespacePrefixResolverProvider

public class CategoryTemplateNode
extends TemplateNode

Category Nodes from the classification helper have special support.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.alfresco.repo.template.TemplateNode
TemplateNode.TemplateAuditInfo
 
Nested classes/interfaces inherited from class org.alfresco.repo.template.BaseContentNode
BaseContentNode.TemplateContentData
 
Field Summary
 
Fields inherited from class org.alfresco.repo.template.TemplateNode
nodeRef
 
Fields inherited from class org.alfresco.repo.template.BaseContentNode
aspects, children, CONTENT_DOWNLOAD_PROP_URL, CONTENT_DOWNLOAD_URL, CONTENT_GET_PROP_URL, CONTENT_GET_URL, CONTENT_SERVICE_GET_PROP_URL, CONTENT_SERVICE_GET_URL, FOLDER_BROWSE_URL, imageResolver, NAMESPACE_BEGIN, services
 
Constructor Summary
CategoryTemplateNode(org.alfresco.service.cmr.repository.NodeRef nodeRef, ServiceRegistry services, TemplateImageResolver resolver)
          Constructor
 
Method Summary
 java.util.List getCategoryMembers()
           
 java.util.List getImmediateCategoryMembers()
           
 java.util.List getImmediateMembersAndSubCategories()
           
 java.util.List getImmediateSubCategories()
           
 boolean getIsCategory()
           
 java.util.List getMembersAndSubCategories()
           
 java.util.List getSubCategories()
           
 
Methods inherited from class org.alfresco.repo.template.TemplateNode
getAssociations, getAssocs, getAuditTrail, getChildAssociations, getChildAssocs, getChildAssocsByType, getChildByNamePath, getChildrenByLuceneSearch, getChildrenBySavedSearch, getChildrenByXPath, getExists, getId, getImageResolver, getIsLocked, getIsWorkingCopy, getName, getNamespacePrefixResolver, getNodeByReference, getNodeRef, getParent, getPrimaryParentAssoc, getProperties, getShareUrl, getSourceAssociations, getSourceAssocs, getStoreId, getStoreType, getType, getTypeShort, getVersionHistory, getXmlNodeModel
 
Methods inherited from class org.alfresco.repo.template.BasePermissionsNode
getDirectPermissions, getFullPermissions, getInheritsPermissions, getPermissions, hasPermission
 
Methods inherited from class org.alfresco.repo.template.BaseContentNode
getAspects, getChildren, getContent, getDisplayMimetype, getDisplayPath, getDownloadUrl, getEncoding, getHasChildren, getIcon16, getIcon32, getIcon64, getIsContainer, getIsDocument, getIsLinkToContainer, getIsLinkToDocument, getMimetype, getQnamePath, getServiceUrl, getSiteShortName, getSize, getUrl, getWebdavUrl, hasAspect, isTemplateContent, isTemplateNodeRef, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CategoryTemplateNode

public CategoryTemplateNode(org.alfresco.service.cmr.repository.NodeRef nodeRef,
                            ServiceRegistry services,
                            TemplateImageResolver resolver)
Constructor

Parameters:
nodeRef -
services -
resolver -
Method Detail

getIsCategory

public boolean getIsCategory()
Overrides:
getIsCategory in class TemplateNode
Returns:
true if the node is a Category instance

getCategoryMembers

public java.util.List getCategoryMembers()
Returns:
all the member of a category

getSubCategories

public java.util.List getSubCategories()
Returns:
all the subcategories of a category

getMembersAndSubCategories

public java.util.List getMembersAndSubCategories()
Returns:
members and subcategories of a category

getImmediateCategoryMembers

public java.util.List getImmediateCategoryMembers()
Returns:
all the immediate member of a category

getImmediateSubCategories

public java.util.List getImmediateSubCategories()
Returns:
all the immediate subcategories of a category

getImmediateMembersAndSubCategories

public java.util.List getImmediateMembersAndSubCategories()
Returns:
immediate members and subcategories of a category


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