Class SlingshotContentGet

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

    public class SlingshotContentGet
    extends ContentGet
    Share specific ContentGet implementation.

    Checks to see if: a) the request is an explicit download (attachment) b) the requested NodeRef within the context of a Share Site

    If both tests are true then generates an Activity feed item to record the Download request. All other requests and any further processing is performed by the super class.

    Author:
    Kevin Roast
    • Field Detail

      • siteService

        protected org.alfresco.service.cmr.site.SiteService siteService
    • Constructor Detail

      • SlingshotContentGet

        public SlingshotContentGet()
    • Method Detail

      • setSiteService

        public void setSiteService​(org.alfresco.service.cmr.site.SiteService siteService)
      • setPoster

        public void setPoster​(org.alfresco.service.cmr.activities.ActivityPoster poster)
      • setTransactionHelper

        public void setTransactionHelper​(org.alfresco.repo.transaction.RetryingTransactionHelper transactionHelper)
      • 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