Package org.alfresco.repo.template
Class Site
- java.lang.Object
-
- org.alfresco.repo.processor.BaseProcessorExtension
-
- org.alfresco.repo.template.BaseTemplateProcessorExtension
-
- org.alfresco.repo.template.Site
-
- All Implemented Interfaces:
org.alfresco.processor.ProcessorExtension,TemplateProcessorExtension
public class Site extends BaseTemplateProcessorExtension
Site support in FreeMarker templates.- Author:
- Mike Hatfield, Kevin Roast
-
-
Constructor Summary
Constructors Constructor Description Site()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetShareSiteUrl(java.lang.String siteShortName)This method returns a URL which resolves to the configured Alfresco Share site URL.java.lang.StringgetShareUrl()This method returns a URL stem which resolves to the configured Alfresco Share URL.SiteInfogetSiteInfo(java.lang.String shortName)Gets the SiteInfo given the shortNamevoidsetServiceRegistry(ServiceRegistry serviceRegistry)Set the service registryvoidsetSiteService(SiteService siteService)Set the site service-
Methods inherited from class org.alfresco.repo.template.BaseTemplateProcessorExtension
getTemplateImageResolver, setTemplateImageResolver
-
Methods inherited from class org.alfresco.repo.processor.BaseProcessorExtension
getExtensionName, register, setExtensionName, setProcessor
-
-
-
-
Method Detail
-
setServiceRegistry
public void setServiceRegistry(ServiceRegistry serviceRegistry)
Set the service registry- Parameters:
serviceRegistry- the service registry
-
setSiteService
public void setSiteService(SiteService siteService)
Set the site service- Parameters:
siteService- The siteService to set.
-
getSiteInfo
public SiteInfo getSiteInfo(java.lang.String shortName)
Gets the SiteInfo given the shortName- Parameters:
shortName- the shortName of the Site to get- Returns:
- the Site or null if no such site exists
-
getShareUrl
public java.lang.String getShareUrl()
This method returns a URL stem which resolves to the configured Alfresco Share URL.
-
getShareSiteUrl
public java.lang.String getShareSiteUrl(java.lang.String siteShortName)
This method returns a URL which resolves to the configured Alfresco Share site URL.- Parameters:
siteShortName- the shortName of the Site to build URL for- Returns:
- the Site or null if no such site exists
- See Also:
SysAdminParamsImpl.setAlfrescoHost(String),SysAdminParamsImpl.setShareHost(String)
-
-