public class CategoryNode extends ScriptNode
ScriptNode.NodeValueConverter, ScriptNode.ScriptContentData
aspects, converter, id, imageResolver, nodeRef, parent, scope, services, siteName, siteNameResolved
Constructor and Description |
---|
CategoryNode(org.alfresco.service.cmr.repository.NodeRef nodeRef,
ServiceRegistry services)
Constructor
|
CategoryNode(org.alfresco.service.cmr.repository.NodeRef nodeRef,
ServiceRegistry services,
org.mozilla.javascript.Scriptable scope)
Constructor
|
Modifier and Type | Method and Description |
---|---|
CategoryNode |
createSubCategory(String name)
Create a new subcategory
|
ScriptNode[] |
getCategoryMembers() |
ScriptNode[] |
getImmediateCategoryMembers() |
ScriptNode[] |
getImmediateMembersAndSubCategories() |
CategoryNode[] |
getImmediateSubCategories() |
boolean |
getIsCategory()
Indicates whether this is a category or not.
|
ScriptNode[] |
getMembersAndSubCategories() |
CategoryNode[] |
getSubCategories() |
void |
removeCategory()
Remove this category
|
void |
rename(String name)
Renames the category.
|
addAspect, addAspect, addNode, addTag, addTags, cancelCheckout, checkin, checkin, checkin, checkout, checkout, checkoutForUpload, childByNamePath, childFileFolders, childFileFolders, childFileFolders, childFileFolders, childFileFolders, childrenByTags, childrenByXPath, clearTags, copy, copy, createAssociation, createFile, createFile, createFolder, createFolder, createFolderPath, createNode, createNode, createNode, createNode, createNode, createQName, createThumbnail, createThumbnail, createThumbnail, createValueConverter, createVersion, ensureVersioningEnabled, ensureVersioningEnabled, equals, exists, getActiveWorkflows, getAspects, getAspectsSet, getAspectsShort, getAssociations, getAssocs, getCheckedOut, getChildAssociations, getChildAssocs, getChildAssocsByType, getChildren, getContent, getDirectPermissions, getDisplayPath, getDownloadUrl, getFullPermissions, getHasChildren, getIcon16, getIcon32, getId, getIsContainer, getIsDocument, getIsLinkToContainer, getIsLinkToDocument, getIsLocked, getIsTagScope, getIsVersioned, getMimetype, getName, getNamespacePrefixResolver, getNodeRef, getOwner, getParent, getParentAssociations, getParentAssocs, getParents, getPermissions, getPrimaryParentAssoc, getProperties, getPropertyNames, getQnamePath, getQNameType, getSettablePermissions, getShortQName, getSiteShortName, getSize, getSortedACLs, getSourceAssociations, getSourceAssocs, getStoreId, getStoreType, getTags, getTagScope, getThumbnail, getThumbnailDefinitions, getThumbnailDefintions, getThumbnails, getType, getTypePropertyNames, getTypePropertyNames, getTypeShort, getUrl, getValueConverter, getVersion, getVersionHistory, getWebdavUrl, hasAspect, hashCode, hasPermission, inheritsPermissions, isScriptContent, isSubType, jsGet_downloadUrl, move, move, newInstance, newInstance, processTemplate, processTemplate, processTemplate, processTemplate, remove, remove, removeAspect, removeAssociation, removeNode, removePermission, removePermission, removeTag, removeTags, reset, retrieveAllSetPermissions, revert, revert, save, setContent, setInheritsPermissions, setInheritsPermissions, setIsTagScope, setMimetype, setName, setOwner, setPermission, setPermission, setScope, setTags, specializeType, takeOwnership, toJSON, toJSON, toString, transformDocument, transformDocument, transformImage, transformImage, transformImage, transformImage, unlock
public CategoryNode(org.alfresco.service.cmr.repository.NodeRef nodeRef, ServiceRegistry services)
nodeRef
- node referenceservices
- service registrypublic CategoryNode(org.alfresco.service.cmr.repository.NodeRef nodeRef, ServiceRegistry services, org.mozilla.javascript.Scriptable scope)
nodeRef
- node referenceservices
- service registryscope
- scriptable scopepublic ScriptNode[] getCategoryMembers()
public CategoryNode[] getSubCategories()
public ScriptNode[] getMembersAndSubCategories()
public ScriptNode[] getImmediateCategoryMembers()
public CategoryNode[] getImmediateSubCategories()
public ScriptNode[] getImmediateMembersAndSubCategories()
public CategoryNode createSubCategory(String name)
name
- Of the category to createpublic void rename(String name)
name
- new cateogory namepublic void removeCategory()
public boolean getIsCategory()
getIsCategory
in class ScriptNode
Copyright © 2005–2017 Alfresco Software. All rights reserved.