public abstract class BaseContentNode extends Object implements TemplateContent
| Modifier and Type | Class and Description |
|---|---|
class |
BaseContentNode.TemplateContentData
Inner class wrapping and providing access to a ContentData property
|
| Modifier and Type | Field and Description |
|---|---|
protected Set<org.alfresco.service.namespace.QName> |
aspects |
protected List<TemplateProperties> |
children
The children of this node
|
protected static String |
CONTENT_DOWNLOAD_PROP_URL |
protected static String |
CONTENT_DOWNLOAD_URL |
protected static String |
CONTENT_GET_PROP_URL |
protected static String |
CONTENT_GET_URL |
protected static String |
CONTENT_SERVICE_GET_PROP_URL |
protected static String |
CONTENT_SERVICE_GET_URL |
protected static String |
FOLDER_BROWSE_URL |
protected TemplateImageResolver |
imageResolver |
protected static String |
NAMESPACE_BEGIN |
protected ServiceRegistry |
services |
| Constructor and Description |
|---|
BaseContentNode() |
| Modifier and Type | Method and Description |
|---|---|
Set<org.alfresco.service.namespace.QName> |
getAspects() |
List<TemplateProperties> |
getChildren() |
String |
getContent() |
String |
getDisplayMimetype() |
String |
getDisplayPath() |
String |
getDownloadUrl() |
String |
getEncoding() |
boolean |
getHasChildren() |
String |
getIcon16() |
String |
getIcon32() |
String |
getIcon64() |
boolean |
getIsContainer() |
boolean |
getIsDocument() |
boolean |
getIsLinkToContainer() |
boolean |
getIsLinkToDocument() |
String |
getMimetype() |
String |
getQnamePath() |
String |
getServiceUrl() |
String |
getSiteShortName()
Returns the short name of the site this node is located within.
|
long |
getSize() |
String |
getUrl() |
String |
getWebdavUrl() |
boolean |
hasAspect(String aspect) |
boolean |
isTemplateContent(Object o)
Helper to return true if the supplied property value is a TemplateContentData object
|
boolean |
isTemplateNodeRef(Object o)
Helper to return true if the supplied property value is a TemplateNodeRef object
|
String |
toString()
Override Object.toString() to provide useful debug output
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetParent, getPropertiesgetId, getName, getNodeRef, getTypeprotected static final String CONTENT_GET_URL
protected static final String CONTENT_GET_PROP_URL
protected static final String CONTENT_DOWNLOAD_URL
protected static final String CONTENT_DOWNLOAD_PROP_URL
protected static final String CONTENT_SERVICE_GET_URL
protected static final String CONTENT_SERVICE_GET_PROP_URL
protected static final String FOLDER_BROWSE_URL
protected static final String NAMESPACE_BEGIN
protected List<TemplateProperties> children
protected ServiceRegistry services
protected TemplateImageResolver imageResolver
protected Set<org.alfresco.service.namespace.QName> aspects
public boolean getIsContainer()
public boolean getIsDocument()
public boolean getIsLinkToContainer()
public boolean getIsLinkToDocument()
public String toString()
public String getQnamePath()
public String getIcon16()
public String getIcon32()
public String getIcon64()
public String getDisplayPath()
public List<TemplateProperties> getChildren()
getChildren in interface TemplatePropertiespublic boolean getHasChildren()
public Set<org.alfresco.service.namespace.QName> getAspects()
getAspects in interface TemplatePropertiespublic boolean hasAspect(String aspect)
hasAspect in interface TemplatePropertiesaspect - The aspect name to test forpublic String getContent()
getContent in interface TemplateContentpublic String getUrl()
getUrl in interface TemplateContentFor a container node, this method return the URL to browse to the folder in the web-client
public String getDownloadUrl()
getDownloadUrl in interface TemplateContentFor a container node, this method returns an empty string
public String getServiceUrl()
public String getWebdavUrl()
public String getMimetype()
getMimetype in interface TemplateContentpublic String getDisplayMimetype()
public String getEncoding()
public long getSize()
getSize in interface TemplateContentpublic boolean isTemplateContent(Object o)
o - Object to testpublic boolean isTemplateNodeRef(Object o)
o - Object to testpublic String getSiteShortName()
Copyright © 2005–2018 Alfresco Software. All rights reserved.