diff --git a/distro/changelog.xml b/distro/changelog.xml index 9653503..94fda66 100644 --- a/distro/changelog.xml +++ b/distro/changelog.xml @@ -1,5 +1,10 @@ - + + partially removed portal context dependency (where possible) + + Revised notification text Vre's name is now reported in email's subject diff --git a/src/main/java/org/gcube/applicationsupportlayer/social/shared/SocialNetworkingSite.java b/src/main/java/org/gcube/applicationsupportlayer/social/shared/SocialNetworkingSite.java index 435c47c..d82f6ea 100644 --- a/src/main/java/org/gcube/applicationsupportlayer/social/shared/SocialNetworkingSite.java +++ b/src/main/java/org/gcube/applicationsupportlayer/social/shared/SocialNetworkingSite.java @@ -21,6 +21,10 @@ public class SocialNetworkingSite implements Serializable{ private String siteURL; private String siteLandingPagePath; /** + *

+ * Please note that this constructor works with web application/portlets deployed in Liferay's Tomcat Bundle + * If your application run on an external service please use the constructor SocialNetworkingSite(String siteName, String senderEmail, String siteURL, String siteLandingPagePath) + *

* * @param request make sure that is not expired when you call it */ @@ -33,7 +37,11 @@ public class SocialNetworkingSite implements Serializable{ siteURL = context.getGatewayURL(request); } /** - * + *

+ * Please note that this constructor works with web application/portlets deployed in Liferay's Tomcat Bundle + * If your application run on an external service please use the constructor SocialNetworkingSite(String siteName, String senderEmail, String siteURL, String siteLandingPagePath) + *

+ * * @param serverName e.g. myportal.mydomain.org */ public SocialNetworkingSite(final String serverName) { @@ -51,7 +59,17 @@ public class SocialNetworkingSite implements Serializable{ siteURL = context.getGatewayURL(serverName, port, https); _log.debug("SocialNetworkingSite by serverName instantiated = " + this.toString()); } - + /** + * + *

+ * Use this constructor when you use this class within web application/portlets not deployed in Liferay's Tomcat Bundle + *

+ * + * @param siteName + * @param senderEmail + * @param siteURL + * @param siteLandingPagePath + */ public SocialNetworkingSite(String siteName, String senderEmail, String siteURL, String siteLandingPagePath) { super(); @@ -98,6 +116,6 @@ public class SocialNetworkingSite implements Serializable{ + senderEmail + ", siteURL=" + siteURL + ", siteLandingPagePath=" + siteLandingPagePath + "]"; } - - + + }