public class TemplateNode extends BasePermissionsNode implements org.alfresco.service.namespace.NamespacePrefixResolverProvider
The class exposes Node properties, children as dynamically populated maps and lists.
Various helper methods are provided to access common and useful node variables such as the content url and type information.
See Template_Guide
| Modifier and Type | Class and Description |
|---|---|
class |
TemplateNode.TemplateAuditInfo |
BaseContentNode.TemplateContentData| Modifier and Type | Field and Description |
|---|---|
protected org.alfresco.service.cmr.repository.NodeRef |
nodeRef
Cached values
|
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 and Description |
|---|
TemplateNode(org.alfresco.service.cmr.repository.NodeRef nodeRef,
ServiceRegistry services,
TemplateImageResolver resolver)
Constructor
|
getDirectPermissions, getFullPermissions, getInheritsPermissions, getPermissions, hasPermissiongetAspects, getChildren, getContent, getDisplayMimetype, getDisplayPath, getDownloadUrl, getEncoding, getHasChildren, getIcon16, getIcon32, getIcon64, getIsContainer, getIsDocument, getIsLinkToContainer, getIsLinkToDocument, getMimetype, getQnamePath, getServiceUrl, getSiteShortName, getSize, getUrl, getWebdavUrl, hasAspect, isTemplateContent, isTemplateNodeRef, toStringpublic TemplateNode(org.alfresco.service.cmr.repository.NodeRef nodeRef,
ServiceRegistry services,
TemplateImageResolver resolver)
nodeRef - The NodeRef this Node wrapper representsservices - The ServiceRegistry the TemplateNode can use to access servicesresolver - Image resolver to use to retrieve iconspublic String getId()
getId in interface TemplateNodeRefpublic String getStoreType()
public String getStoreId()
public org.alfresco.service.cmr.repository.NodeRef getNodeRef()
getNodeRef in interface TemplateNodeRefpublic boolean getExists()
true if this node still existspublic boolean getIsWorkingCopy()
true if this node is a working copypublic org.alfresco.service.namespace.QName getType()
getType in interface TemplateNodeRefpublic String getParentTypeShort()
public String getTypeShort()
public String getName()
getName in interface TemplateNodeRefpublic Map<String,Serializable> getProperties()
getProperties in interface TemplatePropertiespublic Map<String,List<TemplateNode>> getAssocs()
public Map<String,List<TemplateNode>> getAssociations()
public Map<String,List<TemplateNode>> getSourceAssocs()
public Map<String,List<TemplateNode>> getSourceAssociations()
public Map<String,List<TemplateNode>> getChildAssocs()
public Map<String,List<TemplateNode>> getChildAssociations()
public List<TemplateNode> getChildAssocsByType(String type)
public boolean getIsLocked()
public boolean getIsCategory()
public TemplateProperties getParent()
getParent in interface TemplatePropertiespublic org.alfresco.service.cmr.repository.ChildAssociationRef getPrimaryParentAssoc()
public List<VersionHistoryNode> getVersionHistory()
VersionHistoryNodepublic freemarker.ext.dom.NodeModel getXmlNodeModel()
public Map getChildByNamePath()
public Map getChildrenByXPath()
public Map getChildrenBySavedSearch()
public Map getChildrenByLuceneSearch()
public Map getNodeByReference()
public List<TemplateNode.TemplateAuditInfo> getAuditTrail()
public TemplateImageResolver getImageResolver()
public String getShareUrl()
sysAdminParams
bean must have been configured.
Currently this method only produces valid URls for documents and not for folders.public org.alfresco.service.namespace.NamespacePrefixResolver getNamespacePrefixResolver()
getNamespacePrefixResolver in interface org.alfresco.service.namespace.NamespacePrefixResolverProviderCopyright © 2005–2018 Alfresco Software. All rights reserved.