public class WebSiteImpl extends Object implements WebSite
CONFIG_IS_EDITORIAL, PROP_CONTEXT, PROP_HOSTNAME, PROP_HOSTPORT, PROP_SITE_CONFIG| Constructor and Description |
|---|
WebSiteImpl(String id,
String hostName,
int hostPort,
int sectonsRefreshAfter)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
Asset |
getAssetByPath(String path) |
Map<String,String> |
getConfig()
Obtain the map of configuration properties set on this website.
|
String |
getContext()
Get context of the webapp used to deliver this site.
|
String |
getDescription()
Get the web site's title
|
String |
getHostName()
Gets the host name
|
int |
getHostPort()
Gets the host port
|
String |
getId()
Obtain the identifier of this website
|
Asset |
getLogo()
Get the asset which is the site logo
|
Section |
getRootSection()
Gets the web sites root section
|
Section |
getSectionByPath(String path)
Get a section by path
|
List<Section> |
getSections()
Gets the child sections.
|
String |
getTitle()
Get the web site's title
|
UgcService |
getUgcService()
Get the UGC service
|
boolean |
isEditorialSite()
Returns true if this website has been marked as an editorial site.
|
PathResolutionDetails |
resolvePath(String path) |
void |
setConfig(Map<String,String> configProperties) |
void |
setContext(String context) |
void |
setDescription(String description) |
void |
setLogo(Asset logo) |
void |
setRootSectionId(String rootSectionId) |
void |
setSectionFactory(SectionFactory sectionFactory) |
void |
setTitle(String title) |
void |
setUgcService(UgcService ugcService) |
public String getHostName()
WebSitegetHostName in interface WebSiteWebSite.getHostName()public int getHostPort()
WebSitegetHostPort in interface WebSiteWebSite.getHostPort()public String getContext()
WebSitegetContext in interface WebSiteWebSite.getContext()public void setContext(String context)
public String getId()
WebSitepublic Section getRootSection()
WebSitegetRootSection in interface WebSiteWebSite.getRootSection()public List<Section> getSections()
WebSitegetSections in interface WebSiteWebSite.getSections()public Asset getAssetByPath(String path)
getAssetByPath in interface WebSiteExceptionWebSite.getAssetByPath(java.lang.String)public Section getSectionByPath(String path)
WebSitegetSectionByPath in interface WebSiteExceptionWebSite.getSectionByPath(java.lang.String)public void setSectionFactory(SectionFactory sectionFactory)
public UgcService getUgcService()
WebSitegetUgcService in interface WebSitepublic void setUgcService(UgcService ugcService)
public String getDescription()
WebSitegetDescription in interface WebSitepublic void setDescription(String description)
public String getTitle()
WebSitepublic void setTitle(String title)
public Asset getLogo()
WebSitepublic void setLogo(Asset logo)
public void setRootSectionId(String rootSectionId)
public Map<String,String> getConfig()
WebSitepublic boolean isEditorialSite()
WebSiteisEditorialSite in interface WebSitepublic PathResolutionDetails resolvePath(String path)
resolvePath in interface WebSiteCopyright © 2005–2014 Alfresco Software. All rights reserved.