Class SynchronizableContentsCollectionMetadataProvider
- java.lang.Object
-
- org.ametys.runtime.plugin.component.AbstractLogEnabled
-
- org.ametys.plugins.contentio.synchronize.SynchronizableContentsCollectionMetadataProvider
-
- All Implemented Interfaces:
ExternalizableMetadataProvider
,LogEnabled
,Serviceable
public class SynchronizableContentsCollectionMetadataProvider extends AbstractLogEnabled implements ExternalizableMetadataProvider, Serviceable
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.ametys.cms.content.external.ExternalizableMetadataProvider
ExternalizableMetadataProvider.ExternalizableMetadataStatus
-
-
Field Summary
Fields Modifier and Type Field Description protected SynchronizableContentsCollectionDAO
_synchronizableContentsCollectionDAO
The DAO for synchronizable contents collections
-
Constructor Summary
Constructors Constructor Description SynchronizableContentsCollectionMetadataProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private List<String>
_getCollectionIds(Content content)
private Map<String,Object>
buildParametersMap(Content content)
Set<String>
getExternalAndLocalMetadata(Content content)
Get the path of metadata that can be valued externally or locally.Set<String>
getExternalOnlyMetadata(Content content)
Get the path of metadata that are valued externally only.void
service(ServiceManager manager)
-
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
-
-
-
Field Detail
-
_synchronizableContentsCollectionDAO
protected SynchronizableContentsCollectionDAO _synchronizableContentsCollectionDAO
The DAO for synchronizable contents collections
-
-
Constructor Detail
-
SynchronizableContentsCollectionMetadataProvider
public SynchronizableContentsCollectionMetadataProvider()
-
-
Method Detail
-
service
public void service(ServiceManager manager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
getExternalOnlyMetadata
public Set<String> getExternalOnlyMetadata(Content content)
Description copied from interface:ExternalizableMetadataProvider
Get the path of metadata that are valued externally only.- Specified by:
getExternalOnlyMetadata
in interfaceExternalizableMetadataProvider
- Parameters:
content
- The content- Returns:
- The path of external metadata
-
getExternalAndLocalMetadata
public Set<String> getExternalAndLocalMetadata(Content content)
Description copied from interface:ExternalizableMetadataProvider
Get the path of metadata that can be valued externally or locally.- Specified by:
getExternalAndLocalMetadata
in interfaceExternalizableMetadataProvider
- Parameters:
content
- The content- Returns:
- The path of external or local metadata
-
buildParametersMap
private Map<String,Object> buildParametersMap(Content content)
-
_getCollectionIds
private List<String> _getCollectionIds(Content content) throws AmetysRepositoryException
- Throws:
AmetysRepositoryException
-
-