Thursday, October 15, 2015

How to get Alfresco Share link in Alfresco Repository side

How to get Alfresco Share link in Alfresco Repository side?

If sometime, we might need Alfresco Share link while sending email notification from Alfresco Repository side. I encountered the same thing today, while sending an email notification to the user. 

There is a class called UrlUtil which helps us to get the Alfresco Share url in the Repository side.

Package Name : org.alfresco.util;
Class Name : UrlUtil 
Method Name : getShareUrl


String alfrescoShareURL = UrlUtil.getShareUrl(sysAdminParams);

This will return the Alfresco Share Url like, "http://localhost:8080/Share".

We can extend this alfresco share url, as per our needs.


Hope this helps someone.


Happy Coding,
Murali !

No comments:

Post a Comment