added Go To Calendar in email notificaiton

git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/application-support-layer/applicationSupportLayerSocial@92532 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Massimiliano Assante 2014-03-02 22:51:28 +00:00
parent e16de78048
commit c6bc5e1bef
2 changed files with 17 additions and 3 deletions

View File

@ -94,9 +94,14 @@ public class ApplicationNotificationsManager extends SocialPortalBridge implemen
* @return .
*/
private String getApplicationUrl() {
if (applicationProfile != null && applicationProfile.getUrl() != null)
return applicationProfile.getUrl();
else return "";
if (applicationProfile != null && applicationProfile.getUrl() != null) {
_log.trace("getApplicationUrl="+applicationProfile.getUrl());
return applicationProfile.getUrl();
}
else {
_log.warn("applicationProfile NULL or url is empty");
return "";
}
}
/**
* {@inheritDoc}

View File

@ -249,6 +249,15 @@ public class EmailPlugin {
case DOCUMENT_WORKFLOW_FORWARD_STEP_COMPLETED_OWNER:
actionLink.append("\">.").append(" Go to Document Workflow Manager").append("</a>");
break;
case CALENDAR_ADDED_EVENT:
actionLink.append("\">.").append(" Go to Calendar").append("</a>");
break;
case CALENDAR_UPDATED_EVENT:
actionLink.append("\">.").append(" Go to Calendar").append("</a>");
break;
case CALENDAR_DELETED_EVENT:
actionLink.append("\">.").append(" Go to Calendar").append("</a>");
break;
default:
actionLink.append("\">.").append("").append("</a>");
break;