public interface IWebsiteManagerSPI extends IWebsiteManager
Modifier and Type | Method and Description |
---|---|
IWebsite |
getDefaultWebsite()
Returns the website flagged as the default website.
|
IWebsite |
getWebsiteByChannelId(String channelId)
Returns the website that the specific channel belongs to.
|
void |
setDefaultWebsite(IWebsite website)
Sets which website is the default website.
|
getWebsiteBaseURL, getWebsiteBaseURL, getWebsiteBaseURLAsURI
IWebsite getDefaultWebsite() throws PortalException
null
if there is no website
set as the default.PortalException
IWebsite.isDefaultWebsite()
,
setDefaultWebsite(IWebsite)
void setDefaultWebsite(IWebsite website) throws PortalException
If there is any website currently flagged as the default website, it will no longer be the default website. The given website (if any) will be set as the default website.
website
- the website to be the default, or null
for no
website to be the default.AccessDeniedException
- if the user does not have permission to
change the default website.PortalException
IWebsite.isDefaultWebsite()
,
getDefaultWebsite()
IWebsite getWebsiteByChannelId(String channelId) throws PortalException
The specified channel and its ancestral are searched for the first channel that corresponds to a website root. The channel belongs to that website, and it is returned.
If neither the channel or its ancestral is a website root, then the
channel does not belong to any website, and null
is returned.
channelId
- the channel identifier.null
if the
channel does not belong to any website.PortalObjectNotFoundException
- if the channel does not exist.PortalException
LumisXP 12.3.0.200408 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.