Class SlingshotContentGet
java.lang.Object
org.springframework.extensions.webscripts.AbstractWebScript
org.alfresco.repo.web.scripts.content.StreamContent
org.alfresco.repo.web.scripts.content.ContentGet
org.alfresco.slingshot.web.scripts.SlingshotContentGet
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.extensions.webscripts.WebScript,org.springframework.web.context.ServletContextAware
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
-
Nested Class Summary
Nested classes/interfaces inherited from class org.springframework.extensions.webscripts.AbstractWebScript
org.springframework.extensions.webscripts.AbstractWebScript.ScriptDetails -
Field Summary
FieldsFields inherited from class org.alfresco.repo.web.scripts.content.StreamContent
delegate, mimetypeService, nodeService, permissionService, repository -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute(org.springframework.extensions.webscripts.WebScriptRequest req, org.springframework.extensions.webscripts.WebScriptResponse res) voidsetPoster(org.alfresco.service.cmr.activities.ActivityPoster poster) voidsetSiteService(org.alfresco.service.cmr.site.SiteService siteService) voidsetTransactionHelper(org.alfresco.repo.transaction.RetryingTransactionHelper transactionHelper) Methods inherited from class org.alfresco.repo.web.scripts.content.ContentGet
setContentService, setDictionaryService, setNamespaceService, setNonAttachContentTypes, setServletContext, streamContentLocalMethods inherited from class org.alfresco.repo.web.scripts.content.StreamContent
createObjectReferenceFromUrl, executeImpl, executeImpl, executeImpl, renderFormatTemplate, setAttachment, setDelegate, setMimetypeService, setNodeService, setPermissionService, setRepository, streamContent, streamContent, streamContent, streamContentImplMethods 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
-
Field Details
-
siteService
protected org.alfresco.service.cmr.site.SiteService siteService
-
-
Constructor Details
-
SlingshotContentGet
public SlingshotContentGet()
-
-
Method Details
-
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:
executein interfaceorg.springframework.extensions.webscripts.WebScript- Overrides:
executein classContentGet- Throws:
IOException
-