Dam asset references

Avatar

Avatar

HarishDv

Avatar

HarishDv

HarishDv

15-10-2015

Hi EveryOne ,

I would liketo know if there is a way to get the list of references of an asset  (The WCM pages it is being used ) through APIs.

Something like Asset.getReferences();

Or if there is some other alternative to get the same, please suggest.

 

Regards

Harish

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

Yogesh_Upadhyay

Avatar

Yogesh_Upadhyay

Yogesh_Upadhyay

15-10-2015

You can also get example from here http://wemcode.wemblog.com/get_asset_reference_in_page

Yogesh

Answers (3)

Answers (3)

Avatar

Avatar

martina54439202

Avatar

martina54439202

martina54439202

22-05-2020

Check out 

https://github.com/frappierer/unrefAemAssets

it will give you a list of all unrealted assets in AEM.

 

its not the best code, but its working fine.

Avatar

Avatar

dgordon86

Employee

Avatar

dgordon86

Employee

dgordon86
Employee

15-10-2015

There is the AssetReferenceSearch: http://dev.day.com/docs/en/cq/current/javadoc/com/day/cq/dam/commons/util/AssetReferenceSearch.html

There is also the ReferenceSearch api: http://dev.day.com/docs/en/cq/current/javadoc/com/day/cq/wcm/commons/ReferenceSearch.html and the ReferenceSearch.Info for the result set.

Avatar

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Answer

2.3K

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Answer

2.3K
smacdonald2008

15-10-2015

HAve you looked at the API documentation listed here: http://dev.day.com/docs/en/cq/current/javadoc/com/day/cq/dam/api/Asset.html ?