Class SiteShareViewUrlGet
java.lang.Object
org.springframework.extensions.webscripts.AbstractWebScript
org.springframework.extensions.webscripts.DeclarativeWebScript
org.alfresco.repo.web.scripts.site.SiteShareViewUrlGet
- All Implemented Interfaces:
org.springframework.extensions.webscripts.WebScript
public class SiteShareViewUrlGet
extends org.springframework.extensions.webscripts.DeclarativeWebScript
Returns the Share URL to view a given NodeRef.
The supplied NodeRef must be within a Site, and must be of a type supported by Share
- Since:
- 4.0.2
- Author:
- Nick Burch
-
Nested Class Summary
Nested classes/interfaces inherited from class org.springframework.extensions.webscripts.AbstractWebScript
org.springframework.extensions.webscripts.AbstractWebScript.ScriptDetails -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.alfresco.service.cmr.dictionary.DictionaryServiceprotected org.alfresco.service.cmr.repository.NodeServiceprotected org.alfresco.service.cmr.site.SiteServiceprotected org.alfresco.repo.admin.SysAdminParams -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexecuteImpl(org.springframework.extensions.webscripts.WebScriptRequest req, org.springframework.extensions.webscripts.Status status, org.springframework.extensions.webscripts.Cache cache) protected StringgetShareRootUrl(org.springframework.extensions.webscripts.WebScriptRequest req) Returns the root of the Share WebApp, eg http://localhost:8081/share/protected StringgetShareSiteRootStem(org.springframework.extensions.webscripts.WebScriptRequest req, org.alfresco.service.cmr.site.SiteInfo site) Returns the root of the Share Site pages for a given site, eg https://test.alfresco.com/share/page/site/test-site/protected StringidentifySharePage(org.alfresco.service.cmr.repository.NodeRef nodeRef, org.alfresco.service.cmr.site.SiteInfo site, org.alfresco.service.cmr.repository.NodeRef siteContainer, org.alfresco.service.namespace.QName nodeType) voidsetDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService) voidsetNodeService(org.alfresco.service.cmr.repository.NodeService nodeService) voidsetSiteService(org.alfresco.service.cmr.site.SiteService siteService) voidsetSysAdminParams(org.alfresco.repo.admin.SysAdminParams sysAdminParams) Methods inherited from class org.springframework.extensions.webscripts.DeclarativeWebScript
execute, executeFinallyImpl, executeImpl, executeImpl, getTemplateModel, renderFormatTemplateMethods 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
-
nodeService
protected org.alfresco.service.cmr.repository.NodeService nodeService -
siteService
protected org.alfresco.service.cmr.site.SiteService siteService -
sysAdminParams
protected org.alfresco.repo.admin.SysAdminParams sysAdminParams -
dictionaryService
protected org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService
-
-
Constructor Details
-
SiteShareViewUrlGet
public SiteShareViewUrlGet()
-
-
Method Details
-
executeImpl
protected Map<String,Object> executeImpl(org.springframework.extensions.webscripts.WebScriptRequest req, org.springframework.extensions.webscripts.Status status, org.springframework.extensions.webscripts.Cache cache) - Overrides:
executeImplin classorg.springframework.extensions.webscripts.DeclarativeWebScript
-
setNodeService
public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService) -
setSiteService
public void setSiteService(org.alfresco.service.cmr.site.SiteService siteService) -
setSysAdminParams
public void setSysAdminParams(org.alfresco.repo.admin.SysAdminParams sysAdminParams) -
setDictionaryService
public void setDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)
-