Class ExternalizableDataProviderExtensionPoint
- java.lang.Object
-
- org.ametys.runtime.plugin.component.AbstractLogEnabled
-
- org.ametys.runtime.plugin.component.AbstractThreadSafeComponentExtensionPoint<ExternalizableDataProvider>
-
- org.ametys.plugins.repository.data.external.ExternalizableDataProviderExtensionPoint
-
- All Implemented Interfaces:
LogEnabled
,ExtensionPoint<ExternalizableDataProvider>
,Disposable
,Initializable
,Component
,Contextualizable
,Serviceable
,ThreadSafe
public class ExternalizableDataProviderExtensionPoint extends AbstractThreadSafeComponentExtensionPoint<ExternalizableDataProvider>
Extension point forExternalizableDataProvider
s.
-
-
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 ExternalizableDataProviderExtensionPoint()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<String>
getExternalizableDataPaths(ModelAwareDataHolder dataHolder)
Get the path of data that can be valued externally or locally by aExternalizableDataProvider
boolean
isDataExternalizable(ModelAwareDataHolder dataHolder, ModelItem modelItem)
Checks if the data of given model item is externalizableboolean
isDataExternalizable(ModelAwareDataHolder dataHolder, ModelItem modelItem, Map<String,Object> context)
Checks if the data of given model item is externalizable in the given context-
Methods inherited from class org.ametys.runtime.plugin.component.AbstractThreadSafeComponentExtensionPoint
addComponent, addExtension, contextualize, dispose, getExtension, getExtensionsIds, hasExtension, initialize, initializeExtensions, service
-
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
-
-
-
Constructor Detail
-
ExternalizableDataProviderExtensionPoint
public ExternalizableDataProviderExtensionPoint()
-
-
Method Detail
-
getExternalizableDataPaths
public Set<String> getExternalizableDataPaths(ModelAwareDataHolder dataHolder)
Get the path of data that can be valued externally or locally by aExternalizableDataProvider
- Parameters:
dataHolder
- The externalizable data holder- Returns:
- The paths of data that can be valued externally or locally
-
isDataExternalizable
public boolean isDataExternalizable(ModelAwareDataHolder dataHolder, ModelItem modelItem)
Checks if the data of given model item is externalizable- Parameters:
dataHolder
- The externalizable data holdermodelItem
- the model item- Returns:
true
if the data of given model item is externalizable,false
otherwise
-
isDataExternalizable
public boolean isDataExternalizable(ModelAwareDataHolder dataHolder, ModelItem modelItem, Map<String,Object> context)
Checks if the data of given model item is externalizable in the given context- Parameters:
dataHolder
- The externalizable data holdermodelItem
- the model itemcontext
- the context that can be used to determine if the data is externalizable- Returns:
true
if the data of given model item is externalizable,false
otherwise
-
-