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
Site support in FreeMarker templates.
- Author:
- Mike Hatfield, Kevin Roast
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetShareSiteUrl(String siteShortName) This method returns a URL which resolves to the configured Alfresco Share site URL.This method returns a URL stem which resolves to the configured Alfresco Share URL.getSiteInfo(String shortName) Gets the SiteInfo given the shortNamevoidsetServiceRegistry(ServiceRegistry serviceRegistry) Set the service registryvoidsetSiteService(SiteService siteService) Set the site serviceMethods inherited from class org.alfresco.repo.template.BaseTemplateProcessorExtension
getTemplateImageResolver, setTemplateImageResolverMethods inherited from class org.alfresco.repo.processor.BaseProcessorExtension
getExtensionName, register, setExtensionName, setProcessorMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.alfresco.processor.ProcessorExtension
getExtensionName
-
Constructor Details
-
Site
public Site()
-
-
Method Details
-
setServiceRegistry
Set the service registry- Parameters:
serviceRegistry- the service registry
-
setSiteService
Set the site service- Parameters:
siteService- The siteService to set.
-
getSiteInfo
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
-