org.alfresco.repo.template
Class Site

java.lang.Object
  extended by org.alfresco.repo.processor.BaseProcessorExtension
      extended by org.alfresco.repo.template.BaseTemplateProcessorExtension
          extended by org.alfresco.repo.template.Site
All Implemented Interfaces:
org.alfresco.processor.ProcessorExtension, TemplateProcessorExtension

public class Site
extends BaseTemplateProcessorExtension

Site support in FreeMarker templates.


Constructor Summary
Site()
           
 
Method Summary
 SiteInfo getSiteInfo(java.lang.String shortName)
          Gets the SiteInfo given the shortName
 void setServiceRegistry(ServiceRegistry serviceRegistry)
          Set the service registry
 void setSiteService(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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.alfresco.processor.ProcessorExtension
getExtensionName
 

Constructor Detail

Site

public Site()
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


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.