Retrieving and Setting CUG's on a DAM asset programmatically | Community
Skip to main content
October 16, 2015
Solved

Retrieving and Setting CUG's on a DAM asset programmatically

  • October 16, 2015
  • 1 reply
  • 580 views

Hello All,

How can I retrieve and set the CUG's on an asset in the DAM programmatically in Java?  I am trying to use a workflow to get the CUG's on the parent folder in the DAM for a new asset that is created (uploaded), and apply those CUG's to that asset (essentially inheriting the CUG's from the parent folder).  

Thanks in advance for your help.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by JustinEd3

A CUG is just represented as a set of properties; there's no special API for reading these properties. Just use the JCR or Sling Resource APIs.

That said, what you are describing is both unnecessary and may lead to poor performance (at scale). In JCR, permissions are already inherited, so copying the CUG properties from parent to child isn't necessary.

1 reply

JustinEd3Accepted solution
Employee
October 16, 2015

A CUG is just represented as a set of properties; there's no special API for reading these properties. Just use the JCR or Sling Resource APIs.

That said, what you are describing is both unnecessary and may lead to poor performance (at scale). In JCR, permissions are already inherited, so copying the CUG properties from parent to child isn't necessary.