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
BedrockMission!

Learn More

View all

Sign in to view all badges

Scene7Service API | search asset by metadata

Avatar

Avatar
Validate 10
Level 3
Radha_Krishna_N
Level 3

Likes

15 likes

Total Posts

51 posts

Correct Reply

4 solutions
Top badges earned
Validate 10
Validate 1
Boost 5
Boost 3
Boost 10
View profile

Avatar
Validate 10
Level 3
Radha_Krishna_N
Level 3

Likes

15 likes

Total Posts

51 posts

Correct Reply

4 solutions
Top badges earned
Validate 10
Validate 1
Boost 5
Boost 3
Boost 10
View profile
Radha_Krishna_N
Level 3

09-07-2018

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