|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.alfresco.repo.template.BaseContentNode
org.alfresco.repo.template.BasePermissionsNode
org.alfresco.repo.template.AVMTemplateNode
public class AVMTemplateNode
AVM node class for use by a Template model.
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 http://wiki.alfresco.com/wiki/Template_Guide
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.alfresco.repo.template.BaseContentNode |
|---|
BaseContentNode.TemplateContentData |
| Field Summary |
|---|
| 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, services |
| Constructor Summary | |
|---|---|
AVMTemplateNode(AVMNodeDescriptor descriptor,
ServiceRegistry services,
TemplateImageResolver resolver)
Constructor |
|
AVMTemplateNode(NodeRef nodeRef,
ServiceRegistry services,
TemplateImageResolver resolver)
Constructor |
|
AVMTemplateNode(java.lang.String path,
int version,
ServiceRegistry services,
TemplateImageResolver resolver)
Constructor |
|
| Method Summary | |
|---|---|
java.util.Set |
getAspects()
|
java.util.List |
getAuditTrail()
|
java.util.List |
getChildren()
|
java.lang.String |
getContent()
|
java.lang.String |
getDisplayMimetype()
|
java.lang.String |
getDisplayPath()
|
java.lang.String |
getDownloadUrl()
|
java.lang.String |
getEncoding()
|
boolean |
getHasLockAccess()
|
java.lang.String |
getId()
|
boolean |
getIsContainer()
|
boolean |
getIsDeleted()
|
boolean |
getIsDocument()
|
boolean |
getIsLocked()
|
boolean |
getIsLockOwner()
|
java.lang.String |
getMimetype()
|
java.lang.String |
getName()
|
NamespacePrefixResolver |
getNamespacePrefixResolver()
Get an object that implements the NamespacePrefixResolver interface |
NodeRef |
getNodeRef()
|
TemplateProperties |
getParent()
|
java.lang.String |
getParentPath()
|
java.lang.String |
getPath()
|
java.util.Map |
getProperties()
|
long |
getSize()
|
QName |
getType()
|
java.lang.String |
getUrl()
|
int |
getVersion()
|
freemarker.ext.dom.NodeModel |
getXmlNodeModel()
|
| Methods inherited from class org.alfresco.repo.template.BasePermissionsNode |
|---|
getDirectPermissions, getFullPermissions, getInheritsPermissions, getPermissions, hasPermission |
| Methods inherited from class org.alfresco.repo.template.BaseContentNode |
|---|
getIcon16, getIcon32, getIcon64, getIsLinkToContainer, getIsLinkToDocument, getQnamePath, getServiceUrl, getWebdavUrl, hasAspect, isTemplateContent, isTemplateNodeRef, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AVMTemplateNode(NodeRef nodeRef,
ServiceRegistry services,
TemplateImageResolver resolver)
nodeRef - The NodeRef for the AVM node this wrapper representsservices - The ServiceRegistry the Node can use to access servicesresolver - Image resolver to use to retrieve icons
public AVMTemplateNode(java.lang.String path,
int version,
ServiceRegistry services,
TemplateImageResolver resolver)
path - AVM path to the nodeversion - Version number for avm pathservices - The ServiceRegistry the Node can use to access servicesresolver - Image resolver to use to retrieve icons
public AVMTemplateNode(AVMNodeDescriptor descriptor,
ServiceRegistry services,
TemplateImageResolver resolver)
descriptor - AVMNodeDescriptiorservices - resolver - | Method Detail |
|---|
public java.lang.String getId()
getId in interface TemplateNodeRefpublic java.lang.String getPath()
public int getVersion()
public java.lang.String getName()
getName in interface TemplateNodeRefpublic java.lang.String getParentPath()
public NodeRef getNodeRef()
getNodeRef in interface TemplateNodeRefTemplateNodeRef.getNodeRef()public QName getType()
getType in interface TemplateNodeRefTemplateNodeRef.getType()public boolean getIsDeleted()
public boolean getIsLocked()
public boolean getIsLockOwner()
public boolean getHasLockAccess()
public TemplateProperties getParent()
getParent in interface TemplatePropertiespublic boolean getIsContainer()
getIsContainer in class BaseContentNodepublic boolean getIsDocument()
getIsDocument in class BaseContentNodepublic java.util.List getChildren()
getChildren in interface TemplatePropertiesgetChildren in class BaseContentNodeTemplateProperties.getChildren()public java.util.Map getProperties()
getProperties in interface TemplatePropertiesTemplateProperties.getProperties()public java.util.Set getAspects()
getAspects in interface TemplatePropertiesgetAspects in class BaseContentNodepublic java.lang.String getContent()
getContent in interface TemplateContentgetContent in class BaseContentNodepublic java.lang.String getUrl()
getUrl in interface TemplateContentgetUrl in class BaseContentNodeFor a container node, this method return the URL to browse to the folder in the web-client
public java.lang.String getDownloadUrl()
getDownloadUrl in interface TemplateContentgetDownloadUrl in class BaseContentNodeFor a container node, this method returns an empty string
public java.lang.String getMimetype()
getMimetype in interface TemplateContentgetMimetype in class BaseContentNodepublic java.lang.String getDisplayMimetype()
getDisplayMimetype in class BaseContentNodepublic java.lang.String getEncoding()
getEncoding in class BaseContentNodepublic long getSize()
getSize in interface TemplateContentgetSize in class BaseContentNodepublic java.util.List getAuditTrail()
public freemarker.ext.dom.NodeModel getXmlNodeModel()
public java.lang.String getDisplayPath()
getDisplayPath in class BaseContentNodepublic NamespacePrefixResolver getNamespacePrefixResolver()
NamespacePrefixResolverProvider
getNamespacePrefixResolver in interface NamespacePrefixResolverProvider
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||