Getting Asset Metadata from Granite Asset API

Avatar

Avatar

rohits64600205

Avatar

rohits64600205

rohits64600205

05-04-2018

Hi ,

Can anyone tell me how we can get asset metadata property value from Granite Asset API.

Thanks

Replies

Avatar

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Reply

2.3K

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Reply

2.3K
smacdonald2008

05-04-2018

Check the Asset API in the Javadocs here: "The CQ5 Quickstart and Web Application."

Avatar

Avatar

rohits64600205

Avatar

rohits64600205

rohits64600205

05-04-2018

Hi Scott,

Thanks for your response. I tried that but I am not sure what to give in Xpath.

I am using asset.getAssetMetadata().getProperty(XMPPath path, <T>class). Could you please explain how we can get the Xpath of a particular metadata property?

Avatar

Avatar

kautuk_sahni

Community Manager

Total Posts

5.8K

Likes

1.0K

Correct Reply

1.1K

Avatar

kautuk_sahni

Community Manager

Total Posts

5.8K

Likes

1.0K

Correct Reply

1.1K
kautuk_sahni
Community Manager

06-04-2018