Class ContentGet

  • All Implemented Interfaces:
    org.springframework.beans.factory.Aware, org.springframework.extensions.webscripts.WebScript, org.springframework.web.context.ServletContextAware
    Direct Known Subclasses:
    QuickShareContentGet

    public class ContentGet
    extends StreamContent
    implements org.springframework.web.context.ServletContextAware
    Content Retrieval Service Stream content from the Repository.
    Author:
    davidc
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.springframework.extensions.webscripts.AbstractWebScript

        org.springframework.extensions.webscripts.AbstractWebScript.ScriptDetails
    • Constructor Summary

      Constructors 
      Constructor Description
      ContentGet()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void execute​(org.springframework.extensions.webscripts.WebScriptRequest req, org.springframework.extensions.webscripts.WebScriptResponse res)  
      void setContentService​(org.alfresco.service.cmr.repository.ContentService contentService)  
      void setDictionaryService​(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)  
      void setNamespaceService​(org.alfresco.service.namespace.NamespaceService namespaceService)  
      void setServletContext​(javax.servlet.ServletContext servletContext)  
      protected void streamContentLocal​(org.springframework.extensions.webscripts.WebScriptRequest req, org.springframework.extensions.webscripts.WebScriptResponse res, org.alfresco.service.cmr.repository.NodeRef nodeRef, boolean attach, org.alfresco.service.namespace.QName propertyQName, java.util.Map<java.lang.String,​java.lang.Object> model)  
      • Methods inherited from class org.springframework.extensions.webscripts.AbstractWebScript

        addModuleBundleToCache, checkModuleBundleCache, createArgs, createArgsM, createHeaders, createHeadersM, createScriptParameters, createStatusException, createTemplateParameters, executeScript, getContainer, getDescription, getExecuteScript, getResources, getStatusTemplate, init, renderString, renderString, renderTemplate, sendStatus, setURLModelFactory, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ContentGet

        public ContentGet()
    • Method Detail

      • setServletContext

        public void setServletContext​(javax.servlet.ServletContext servletContext)
        Specified by:
        setServletContext in interface org.springframework.web.context.ServletContextAware
        Parameters:
        servletContext - ServletContext
      • setDictionaryService

        public void setDictionaryService​(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)
        Parameters:
        dictionaryService - DictionaryService
      • setNamespaceService

        public void setNamespaceService​(org.alfresco.service.namespace.NamespaceService namespaceService)
        Parameters:
        namespaceService - NamespaceService
      • setContentService

        public void setContentService​(org.alfresco.service.cmr.repository.ContentService contentService)
        Parameters:
        contentService - ContentService
      • execute

        public void execute​(org.springframework.extensions.webscripts.WebScriptRequest req,
                            org.springframework.extensions.webscripts.WebScriptResponse res)
                     throws java.io.IOException
        Specified by:
        execute in interface org.springframework.extensions.webscripts.WebScript
        Overrides:
        execute in class StreamContent
        Throws:
        java.io.IOException
        See Also:
        WebScript.execute(WebScriptRequest, WebScriptResponse)
      • streamContentLocal

        protected void streamContentLocal​(org.springframework.extensions.webscripts.WebScriptRequest req,
                                          org.springframework.extensions.webscripts.WebScriptResponse res,
                                          org.alfresco.service.cmr.repository.NodeRef nodeRef,
                                          boolean attach,
                                          org.alfresco.service.namespace.QName propertyQName,
                                          java.util.Map<java.lang.String,​java.lang.Object> model)
                                   throws java.io.IOException
        Throws:
        java.io.IOException