updated pom version

This commit is contained in:
Massimiliano Assante 2019-09-18 16:36:04 +02:00
parent c1a78e8724
commit 4a938e2e5b
2 changed files with 47 additions and 3 deletions

22
pom.xml
View File

@ -4,13 +4,13 @@
<parent>
<artifactId>maven-parent</artifactId>
<groupId>org.gcube.tools</groupId>
<version>1.1.0-SNAPSHOT</version>
<version>1.1.0</version>
<relativePath />
</parent>
<groupId>org.gcube.socialnetworking</groupId>
<artifactId>social-util-library</artifactId>
<version>1.6.0-SNAPSHOT</version>
<version>1.7.0-SNAPSHOT</version>
<name>social-util-library</name>
<description>
The social-util-library contains utility functions that can be used by the social-networking portlets.
@ -203,6 +203,24 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<configuration>
<additionalparam>-Xdoclint:none</additionalparam>
<additionalJOption>-Xdoclint:none</additionalJOption>
</configuration>
<version>3.1.0</version>
<executions>
<execution>
<id>generate-doc</id>
<phase>install</phase>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

View File

@ -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<ItemBean> mentionedUsers) {
String pageToRedirectURL = "";
String httpGETAttrName = "";
String httpGETAttrValue ="";
for (ItemBean tagged : mentionedUsers) {
String taggedHTML = "<a class=\"link\" href=\""+pageToRedirectURL
+"?"+
new String(Base64.encodeBase64(httpGETAttrName.getBytes()))+"="+
new String(Base64.encodeBase64(httpGETAttrValue.getBytes()))+"\">"+tagged.getAlternativeName()+"</a> ";
escapedPostText = escapedPostText.replace(tagged.getName(), taggedHTML);
}
return escapedPostText;
}
/**
* convert the hashtag in HTML anchor and also Encode the params Base64
* @param escapedFeedText