Skip to main content
Level 2
Apr 7, 2017 1:56 PM UTC
Solved

Share Link for an Asset in AEM 6.1

Hi Team,

Do we have link share functionality for an asset in AEM 6.1 which helps the user to not log in to the system to access the asset after using the generated link? If Yes,how to do it?

 

~Venkat

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
kautuk_sahni
kautuk_sahniAccepted solution
Level 9
Apr 11, 2017 6:12 AM UTC

Hi 

There is no such functionality in 6.1. 

It was part of 6.2 :- https://docs.adobe.com/docs/en/aem/6-2/administer/content/assets/link-sharing.html

Also have a look at this reference post:- http://help-forums.adobe.com/content/adobeforums/en/experience-manager-forum/adobe-experience-manager.topic.html/forum__guex-hi_team_do_weha.html

You can request for back-port by filling a official support request.

Else, i agree with Vamsi, the approach mentioned would also work (On Author side you can create this URL and share it with the people you want to. ).

~kautuk

Kautuk Sahni

5 replies

Ratna_Kumar
Level 10
Apr 7, 2017 2:19 PM UTC

Hi Venkat,

I think there is no Share link functionality for AEM 6.1. It is there for AEM 6.2. See this below URL

//https://docs.adobe.com/docs/en/aem/6-2/administer/content/assets/link-sharing.html

~ Ratna.

Translate
vjetty
Level 4
Apr 7, 2017 3:16 PM UTC

Hi, Venkat

I can give some overview on this how to implement this. Basically you can write a service with a method which will take sling request and asset path.... inside that you can implement something like this 

ResourceResolver resResolver = slingRequest.getResourceResolver(); Externalizer externalizer = resResolver.adaptTo(Externalizer.class); String shareURL = slingRequest.getResourceResolver().map(assetPath); myExternalizedUrl = externalizer.externalLink(resourceResolver, "domain name from Day CQ Link Externalizer", URLDecoder.decode(shareURL));

Then from your JSP you can invoke this method by passing the asset path. It works. 

Based on your requirement you can include this in metadata of asset or you can include as a custom button. 

Hope this helps! 

Thanks,

Vamsi

Translate
Level 2
Apr 10, 2017 11:11 AM UTC
                        Hi Vamsi, Actually we need to create a link with authentication token which helps to the user not to login to the AEM to access it. We want to share this like through Link Share functionality. will it be possible?
Translate
vjetty
Level 4
Apr 10, 2017 1:15 PM UTC

Hi Venkat

Do you want to share the ssset though publish URL? Or you want to share it through author? 

The approach I explained you work with publish URL without any authentication. Author side you can create this URL and share it with the people you want to. You need to have a check that this URL will be created only if asset is published. 

Thanks, 

Vamsi

Translate
kautuk_sahni
kautuk_sahniAccepted solution
Level 9
Apr 11, 2017 6:12 AM UTC

Hi 

There is no such functionality in 6.1. 

It was part of 6.2 :- https://docs.adobe.com/docs/en/aem/6-2/administer/content/assets/link-sharing.html

Also have a look at this reference post:- http://help-forums.adobe.com/content/adobeforums/en/experience-manager-forum/adobe-experience-manager.topic.html/forum__guex-hi_team_do_weha.html

You can request for back-port by filling a official support request.

Else, i agree with Vamsi, the approach mentioned would also work (On Author side you can create this URL and share it with the people you want to. ).

~kautuk

Translate
Kautuk Sahni