|
|||||||||
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 iconspublic 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 iconspublic AVMTemplateNode(AVMNodeDescriptor descriptor, ServiceRegistry services, TemplateImageResolver resolver)
descriptor
- AVMNodeDescriptiorservices
- resolver
- Method Detail |
---|
public java.lang.String getId()
getId
in interface TemplateNodeRef
public java.lang.String getPath()
public int getVersion()
public java.lang.String getName()
getName
in interface TemplateNodeRef
public java.lang.String getParentPath()
public NodeRef getNodeRef()
getNodeRef
in interface TemplateNodeRef
TemplateNodeRef.getNodeRef()
public QName getType()
getType
in interface TemplateNodeRef
TemplateNodeRef.getType()
public boolean getIsDeleted()
public boolean getIsLocked()
public boolean getIsLockOwner()
public boolean getHasLockAccess()
public TemplateProperties getParent()
getParent
in interface TemplateProperties
public boolean getIsContainer()
getIsContainer
in class BaseContentNode
public boolean getIsDocument()
getIsDocument
in class BaseContentNode
public java.util.List getChildren()
getChildren
in interface TemplateProperties
getChildren
in class BaseContentNode
TemplateProperties.getChildren()
public java.util.Map getProperties()
getProperties
in interface TemplateProperties
TemplateProperties.getProperties()
public java.util.Set getAspects()
getAspects
in interface TemplateProperties
getAspects
in class BaseContentNode
public java.lang.String getContent()
getContent
in interface TemplateContent
getContent
in class BaseContentNode
public java.lang.String getUrl()
getUrl
in interface TemplateContent
getUrl
in class BaseContentNode
For 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 TemplateContent
getDownloadUrl
in class BaseContentNode
For a container node, this method returns an empty string
public java.lang.String getMimetype()
getMimetype
in interface TemplateContent
getMimetype
in class BaseContentNode
public java.lang.String getDisplayMimetype()
getDisplayMimetype
in class BaseContentNode
public java.lang.String getEncoding()
getEncoding
in class BaseContentNode
public long getSize()
getSize
in interface TemplateContent
getSize
in class BaseContentNode
public java.util.List getAuditTrail()
public freemarker.ext.dom.NodeModel getXmlNodeModel()
public java.lang.String getDisplayPath()
getDisplayPath
in class BaseContentNode
public NamespacePrefixResolver getNamespacePrefixResolver()
NamespacePrefixResolverProvider
getNamespacePrefixResolver
in interface NamespacePrefixResolverProvider
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |