Class SynchronizableContentsCollectionDataProvider
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.plugins.contentio.synchronize.SynchronizableContentsCollectionDataProvider
- All Implemented Interfaces:
ExternalizableDataProvider
,LogEnabled
,Component
,Serviceable
public class SynchronizableContentsCollectionDataProvider
extends AbstractLogEnabled
implements ExternalizableDataProvider, Component, Serviceable
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.ametys.plugins.repository.data.external.ExternalizableDataProvider
ExternalizableDataProvider.ExternalizableDataStatus
-
Field Summary
Modifier and TypeFieldDescriptionprotected SynchronizableContentsCollectionHelper
SCC helperprotected SynchronizableContentsCollectionDAO
The DAO for synchronizable contents collectionsstatic final String
Constant for storing the scc identifier into the externalizable data context -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetExternalizableDataPaths
(ModelAwareDataHolder dataHolder) Get the paths of data that can be valued externally or locally.boolean
isDataExternalizable
(ModelAwareDataHolder dataHolder, ModelItem modelItem, Map<String, Object> context) Checks if the data of given model item is externalizable in the given contextvoid
service
(ServiceManager manager) Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.ametys.plugins.repository.data.external.ExternalizableDataProvider
isDataExternalizable
-
Field Details
-
SCC_ID_CONTEXT_KEY
Constant for storing the scc identifier into the externalizable data context- See Also:
-
_synchronizableContentsCollectionDAO
The DAO for synchronizable contents collections -
_sccHelper
SCC helper
-
-
Constructor Details
-
SynchronizableContentsCollectionDataProvider
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
getExternalizableDataPaths
Description copied from interface:ExternalizableDataProvider
Get the paths of data that can be valued externally or locally.- Specified by:
getExternalizableDataPaths
in interfaceExternalizableDataProvider
- 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, Map<String, Object> context) Description copied from interface:ExternalizableDataProvider
Checks if the data of given model item is externalizable in the given context- Specified by:
isDataExternalizable
in interfaceExternalizableDataProvider
- 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
-