Package com.day.cq.dam.scene7.api
Interface Scene7FileMetadataService
The
Scene7FileMetadataService is responsible for the management of Scene7 specific information for CQ DAM assets.-
Method Summary
Modifier and TypeMethodDescriptionvoidremoveAssetMetadataProperty(Asset asset, String propertyName) Removes a metadata property from a CQ DAM asset.voidsetAssetJcrContentProperty(Asset asset, String propertyName, Object propertyValue) Sets properties on thejcr:contentnode of a CQ DAM asset.voidsetAssetMetadataOnSync(Asset asset, Scene7Asset scene7Asset, S7Config s7Config, String status) Sets multiple properties at the same time on a CQ DAM asset to store its relevant Scene7 properties.voidsetAssetMetadataProperty(Asset asset, String propertyName, Object propertyValue) Sets properties on themetadatanode of a CQ DAM asset.voidsetResourceMetadataOnSync(Resource resource, String scene7Handle, S7Config s7Config, String status, Boolean deleteOnFail) Sets properties on theResourceJCR node to store its relevant Scene7 properties.
-
Method Details
-
setAssetMetadataProperty
void setAssetMetadataProperty(Asset asset, String propertyName, Object propertyValue) throws Exception Sets properties on themetadatanode of a CQ DAM asset. The session must be manually saved.- Parameters:
asset- the CQ DAM assetpropertyName- the property's namepropertyValue- the property's value- Throws:
Exception- if the property cannot be added / modified
-
setAssetMetadataOnSync
void setAssetMetadataOnSync(Asset asset, Scene7Asset scene7Asset, S7Config s7Config, String status) throws Exception Sets multiple properties at the same time on a CQ DAM asset to store its relevant Scene7 properties. The session must be manually saved.- Parameters:
asset- the CQ DAM asset on which to add metadata informationscene7Asset- theScene7Assetfrom which to extract the metadata informations7Config- the Scene7 configurationstatus- the status of the sync operation (e.g. the status of an upload job)- Throws:
Exception- if the property cannot be added / modified
-
removeAssetMetadataProperty
Removes a metadata property from a CQ DAM asset. The session must be manually saved.- Parameters:
asset- the CQ DAM assetpropertyName- the property's name- Throws:
Exception- if the property cannot be removed
-
setAssetJcrContentProperty
void setAssetJcrContentProperty(Asset asset, String propertyName, Object propertyValue) throws Exception Sets properties on thejcr:contentnode of a CQ DAM asset. The session must be manually saved.- Parameters:
asset- the CQ DAM assetpropertyName- the property's namepropertyValue- the property's value- Throws:
Exception- if the property cannot be added / modified
-
setResourceMetadataOnSync
void setResourceMetadataOnSync(Resource resource, String scene7Handle, S7Config s7Config, String status, Boolean deleteOnFail) throws Exception Sets properties on theResourceJCR node to store its relevant Scene7 properties. This method is compatible with Scene7 assets (e.g. images, videos) and company settings (e.g. image presets, viewer presets). The session must be manually saved.- Parameters:
resource- Resource object on which to add Scene7 metadatascene7Handle- Scene7 asset handle or asset IDs7Config- the Scene7 configurationstatus- the status of the sync operation (e.g. the status of an upload job)deleteOnFail- whether to delete Scene7 remote assets/settings when the properties save action fails,- Throws:
Exception
-