Class SiteGetterExtensionPoint
- java.lang.Object
-
- org.ametys.runtime.plugin.component.AbstractLogEnabled
-
- org.ametys.runtime.plugin.component.AbstractThreadSafeComponentExtensionPoint<T>
-
- org.ametys.runtime.plugin.component.AbstractThreadSafeComponentPrioritizableExtensionPoint<SiteGetter>
-
- org.ametys.web.content.sitegetter.SiteGetterExtensionPoint
-
- All Implemented Interfaces:
LogEnabled
,ExtensionPoint<SiteGetter>
,Disposable
,Initializable
,Component
,Contextualizable
,Serviceable
,ThreadSafe
public class SiteGetterExtensionPoint extends AbstractThreadSafeComponentPrioritizableExtensionPoint<SiteGetter>
Extension point linking a website to a content.
-
-
Field Summary
Fields Modifier and Type Field Description static String
ROLE
Avalon Role-
Fields inherited from class org.ametys.runtime.plugin.component.AbstractThreadSafeComponentExtensionPoint
_cocoonManager, _context, _manager
-
-
Constructor Summary
Constructors Constructor Description SiteGetterExtensionPoint()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<Site>
getSiteByContent(Content content)
Returns the site computed with higher priority extension if exists-
Methods inherited from class org.ametys.runtime.plugin.component.AbstractThreadSafeComponentPrioritizableExtensionPoint
getComparator, getExtensionsIds, initializeExtensions, sortPriorityAscending
-
Methods inherited from class org.ametys.runtime.plugin.component.AbstractThreadSafeComponentExtensionPoint
addComponent, addExtension, contextualize, dispose, getExtension, hasExtension, initialize, service
-
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
-
-
-
Constructor Detail
-
SiteGetterExtensionPoint
public SiteGetterExtensionPoint()
-
-
Method Detail
-
getSiteByContent
public Optional<Site> getSiteByContent(Content content)
Returns the site computed with higher priority extension if exists- Parameters:
content
- the content- Returns:
- the site computed with higher priority extension if exists
-
-