We are building a website on AEM where the website visitors are allowed
to download few assets (Such as PDF files, zip files, images etc).
However, for certain assets, we have a requirement to capture the user's
name and email ID before they could download the asset. Is there a way
to implement this restriction on the publish side?
@arunpatidar : I see that you are suggesting to use the sling delegation
pattern. However, this works only when you extend the core component by
specifying the resource supertype property in the child component. My
use case is a little different. I'd like to build objects of type
"com.adobe.cq.wcm.core.components.commons.link.Link" so that I could use
them in custom components that I am developing. Here, Link is not a core
component model and hence I wouldn't be able to use the sling delegation
I have a requirement to build Link Objects (Type:
com.adobe.cq.wcm.core.components.commons.link.Link) for multiple custom
components that we are developing. I see that the LinkHandler (Type:
com.adobe.cq.wcm.core.components.internal.link.LinkHandler) does this
job. But, this class belongs to the internal package and hence I cannot
import it into any of my custom implementations. As this is not
associated with any core component, I'm not sure if there is a way to
get a reference of LinkHandler us...
Yes ajinkayk62582531, I have used adobe analytics to capture this
information. If you would like to go with the same solution, please be
cautious that adobe wouldn't let you store this information for more
than certain period of time (typically 36 months) due to compliance
reasons. Hope this helps. Please let me know if you need any additional
information . Thanks,Sai.