Class BaseContentNode.TemplateContentData

  • All Implemented Interfaces:
    java.io.Serializable
    Enclosing class:
    BaseContentNode

    public class BaseContentNode.TemplateContentData
    extends java.lang.Object
    implements java.io.Serializable
    Inner class wrapping and providing access to a ContentData property
    See Also:
    Serialized Form
    • Constructor Detail

      • TemplateContentData

        public TemplateContentData​(org.alfresco.service.cmr.repository.ContentData contentData,
                                   org.alfresco.service.namespace.QName property)
        Constructor
        Parameters:
        contentData - The ContentData object this object wraps
        property - The property the ContentData is attached too
    • Method Detail

      • getContent

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

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

        public java.lang.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 java.lang.String getUrl()
      • getDownloadUrl

        public java.lang.String getDownloadUrl()
      • getServiceUrl

        public java.lang.String getServiceUrl()
      • getSize

        public long getSize()
      • getMimetype

        public java.lang.String getMimetype()
      • getDisplayMimetype

        public java.lang.String getDisplayMimetype()
      • getEncoding

        public java.lang.String getEncoding()