diff --git a/pom.xml b/pom.xml
index b972939..63e589b 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,13 +4,13 @@
maven-parent
org.gcube.tools
- 1.1.0-SNAPSHOT
+ 1.1.0
org.gcube.socialnetworking
social-util-library
- 1.6.0-SNAPSHOT
+ 1.7.0-SNAPSHOT
social-util-library
The social-util-library contains utility functions that can be used by the social-networking portlets.
@@ -203,6 +203,24 @@
+
+ org.apache.maven.plugins
+ maven-javadoc-plugin
+
+ -Xdoclint:none
+ -Xdoclint:none
+
+ 3.1.0
+
+
+ generate-doc
+ install
+
+ jar
+
+
+
+
diff --git a/src/main/java/org/gcube/social_networking/socialutillibrary/Utils.java b/src/main/java/org/gcube/social_networking/socialutillibrary/Utils.java
index 80ad189..bbb8dbc 100644
--- a/src/main/java/org/gcube/social_networking/socialutillibrary/Utils.java
+++ b/src/main/java/org/gcube/social_networking/socialutillibrary/Utils.java
@@ -98,10 +98,12 @@ public class Utils {
}
return mentions;
}
+
+
/**
*
- * @param session the Asl Session
+ * @param scope the context
* @param withinPortal true when is on Liferay portal
* @return the users plus the groups belonging to the current organization (scope)
*/
@@ -316,6 +318,7 @@ public class Utils {
return item;
}
+
/**
* convert the mentioned people in HTML anchor and also Encode the params Base64
* @param escapedFeedText
@@ -364,6 +367,29 @@ public class Utils {
return escapedFeedText;
}
+ /**
+ * convert the mentioned people in HTML anchor and also Encode the params Base64
+ * @param escapedFeedText
+ * @param taggedPeople
+ * @return
+ */
+
+ public static String convertMentionUsernamesAnchorHTML(String escapedPostText, ArrayList mentionedUsers) {
+ String pageToRedirectURL = "";
+ String httpGETAttrName = "";
+ String httpGETAttrValue ="";
+
+ for (ItemBean tagged : mentionedUsers) {
+ String taggedHTML = ""+tagged.getAlternativeName()+" ";
+ escapedPostText = escapedPostText.replace(tagged.getName(), taggedHTML);
+ }
+ return escapedPostText;
+ }
+
+
/**
* convert the hashtag in HTML anchor and also Encode the params Base64
* @param escapedFeedText