partially removed dependency towards portal manager

git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/application-support-layer/applicationSupportLayerSocial@141593 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Massimiliano Assante 2017-01-16 17:19:39 +00:00
parent 52838134e5
commit 4ccc5b1ab5
2 changed files with 28 additions and 5 deletions

View File

@ -1,5 +1,10 @@
<ReleaseNotes>
<Changeset component="org.gcube.applicationsupportlayer.aslsocial.1-1-0" date="2016-09-29">
<Changeset component="org.gcube.applicationsupportlayer.aslsocial.1-2-0"
date="2017-01-16">
<Change>partially removed portal context dependency (where possible)</Change>
</Changeset>
<Changeset component="org.gcube.applicationsupportlayer.aslsocial.1-1-0"
date="2016-09-29">
<Change>Revised notification text</Change>
<Change>Vre's name is now reported in email's subject</Change>
</Changeset>

View File

@ -21,6 +21,10 @@ public class SocialNetworkingSite implements Serializable{
private String siteURL;
private String siteLandingPagePath;
/**
* <p>
* 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)
* </p>
*
* @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);
}
/**
*
* <p>
* 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)
* </p>
*
* @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());
}
/**
*
* <p>
* Use this constructor when you use this class within web application/portlets not deployed in Liferay's Tomcat Bundle
* </p>
*
* @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 + "]";
}
}