Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list

Scene7Service API | search asset by metadata

Avatar

Level 4

Hi,

I am using AEM 6.1 + SP1 and trying to implement a service which searches scene7 asset by metadata.

com.day.cq.dam.scene7.api.Scene7Service#searchAssetsByMetadata

in pom.xml, I have the dependency

<dependency>

   <groupId>com.day.cq.dam</groupId>

   <artifactId>cq-dam-scene7</artifactId>

   <version>5.8.26</version>

   <scope>provided</scope>

</dependency>

in the service

. . . .

@Reference

S7Service s7Service;

MetadataCondition metadataCondition = new MetadataCondition("name", 4, "s7-asset-name");

MetadataCondition[] conditions = {metadataCondition};

List<Scene7Asset> scene7Assets = null;

scene7Assets = s7Service.searchAssetsByMetadata("S7DAMFolder/", false, assetTypes, assetSubTypes, true, conditions, s7Config);

the issue here is MetadataCondition is a class in Private-packages (MANIFEST.MF) and I need this class in my bundle.

The question here is If the API needs the user to pass MetadataCondition as an argument, why it is in private-package?

Thanks,

Radha Krishna N

0 Replies