Class BaseContentNode.TemplateContentData

java.lang.Object
org.alfresco.repo.template.BaseContentNode.TemplateContentData
All Implemented Interfaces:
Serializable
Enclosing class:
BaseContentNode

public class BaseContentNode.TemplateContentData extends Object implements Serializable
Inner class wrapping and providing access to a ContentData property
See Also:
  • Constructor Details

    • TemplateContentData

      public TemplateContentData(ContentData contentData, QName property)
      Constructor
      Parameters:
      contentData - The ContentData object this object wraps
      property - The property the ContentData is attached too
  • Method Details

    • getContent

      public String getContent()
      Returns:
      the content stream
    • getContentMaxLength

      public String getContentMaxLength(int length)
      Returns:
      the content stream to the specified maximum length in characters
    • getContentAsText

      public String getContentAsText(int length)
      Parameters:
      length - Length of the character stream to return, or -1 for all
      Returns:
      the binary content stream converted to text using any available transformer if fails to convert then null will be returned
    • getUrl

      public String getUrl()
    • getDownloadUrl

      public String getDownloadUrl()
    • getServiceUrl

      public String getServiceUrl()
    • getSize

      public long getSize()
    • getMimetype

      public String getMimetype()
    • getDisplayMimetype

      public String getDisplayMimetype()
    • getEncoding

      public String getEncoding()