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

    Fields
    Modifier and Type
    Field
    Description
    protected org.alfresco.service.cmr.dictionary.DictionaryService
     
    protected org.alfresco.service.cmr.repository.NodeService
     
    protected org.alfresco.service.cmr.site.SiteService
     
    protected org.alfresco.repo.admin.SysAdminParams
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected Map<String,Object>
    executeImpl(org.springframework.extensions.webscripts.WebScriptRequest req, org.springframework.extensions.webscripts.Status status, org.springframework.extensions.webscripts.Cache cache)
     
    protected String
    getShareRootUrl(org.springframework.extensions.webscripts.WebScriptRequest req)
    Returns the root of the Share WebApp, eg http://localhost:8081/share/
    protected String
    getShareSiteRootStem(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 String
    identifySharePage(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)
     
    void
    setDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)
     
    void
    setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
     
    void
    setSiteService(org.alfresco.service.cmr.site.SiteService siteService)
     
    void
    setSysAdminParams(org.alfresco.repo.admin.SysAdminParams sysAdminParams)
     

    Methods inherited from class org.springframework.extensions.webscripts.DeclarativeWebScript

    execute, executeFinallyImpl, executeImpl, executeImpl, getTemplateModel, renderFormatTemplate

    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
  • 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:
      executeImpl in class org.springframework.extensions.webscripts.DeclarativeWebScript
    • identifySharePage

      protected String identifySharePage(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)
    • getShareSiteRootStem

      protected String getShareSiteRootStem(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/
    • getShareRootUrl

      protected String getShareRootUrl(org.springframework.extensions.webscripts.WebScriptRequest req)
      Returns the root of the Share WebApp, eg http://localhost:8081/share/
    • 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)