Class QuickShareContentGet

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

    public class QuickShareContentGet
    extends ContentGet
    implements org.springframework.web.context.ServletContextAware
    QuickShare/PublicView GET web script to get stream "shared" content (ie. enabled for public/unauthenticated access) from the repository WARNING: **unauthenticated** web script (equivalent to authenticated version - see ContentGet.java)
    Since:
    Cloud/4.2
    Author:
    janv
    • Constructor Detail

      • QuickShareContentGet

        public QuickShareContentGet()
    • Method Detail

      • setServletContext

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

        public void setQuickShareService​(QuickShareService quickShareService)
      • setEnabled

        public void setEnabled​(boolean enabled)
      • isEnabled

        protected boolean isEnabled()
      • execute

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

        protected void executeImpl​(NodeRef nodeRef,
                                   Map<String,​String> templateVars,
                                   org.springframework.extensions.webscripts.WebScriptRequest req,
                                   org.springframework.extensions.webscripts.WebScriptResponse res,
                                   Map<String,​Object> model)
                            throws IOException
        Throws:
        IOException