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 for
ExternalizableDataProvider
s.-
Field Summary
Fields inherited from class org.ametys.runtime.plugin.component.AbstractThreadSafeComponentExtensionPoint
_cocoonManager, _context, _manager
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetExternalizableDataPaths
(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 contextMethods 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
-
Field Details
-
ROLE
Avalon Role
-
-
Constructor Details
-
ExternalizableDataProviderExtensionPoint
-
-
Method Details
-
getExternalizableDataPaths
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
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
-