Class ODFWebSiteGetter
- java.lang.Object
-
- org.ametys.web.content.sitegetter.AbstractSiteGetter
-
- org.ametys.plugins.odfweb.content.ODFWebSiteGetter
-
- All Implemented Interfaces:
Prioritizable
,SiteGetter
,Configurable
,Serviceable
public class ODFWebSiteGetter extends AbstractSiteGetter implements Serviceable
Extension point linking a website to a content.
-
-
Field Summary
Fields Modifier and Type Field Description protected ContentTypesHelper
_cTypeHelper
Content types helperprotected SiteManager
_siteManager
The site manager-
Fields inherited from class org.ametys.web.content.sitegetter.AbstractSiteGetter
_priority
-
-
Constructor Summary
Constructors Constructor Description ODFWebSiteGetter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Site
getSite(Content content)
Returns true the site to use for this contentvoid
service(ServiceManager manager)
boolean
supports(Content content)
Returns true if this access controller supports the given object-
Methods inherited from class org.ametys.web.content.sitegetter.AbstractSiteGetter
configure, getPriority
-
-
-
-
Field Detail
-
_siteManager
protected SiteManager _siteManager
The site manager
-
_cTypeHelper
protected ContentTypesHelper _cTypeHelper
Content types helper
-
-
Constructor Detail
-
ODFWebSiteGetter
public ODFWebSiteGetter()
-
-
Method Detail
-
service
public void service(ServiceManager manager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
supports
public boolean supports(Content content)
Description copied from interface:SiteGetter
Returns true if this access controller supports the given object- Specified by:
supports
in interfaceSiteGetter
- Parameters:
content
- The content to test- Returns:
- true if this access controller supports the given object
-
getSite
public Site getSite(Content content)
Description copied from interface:SiteGetter
Returns true the site to use for this content- Specified by:
getSite
in interfaceSiteGetter
- Parameters:
content
- The content- Returns:
- the site to use for this content
-
-