updated pom version
This commit is contained in:
parent
c1a78e8724
commit
4a938e2e5b
22
pom.xml
22
pom.xml
|
@ -4,13 +4,13 @@
|
||||||
<parent>
|
<parent>
|
||||||
<artifactId>maven-parent</artifactId>
|
<artifactId>maven-parent</artifactId>
|
||||||
<groupId>org.gcube.tools</groupId>
|
<groupId>org.gcube.tools</groupId>
|
||||||
<version>1.1.0-SNAPSHOT</version>
|
<version>1.1.0</version>
|
||||||
<relativePath />
|
<relativePath />
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<groupId>org.gcube.socialnetworking</groupId>
|
<groupId>org.gcube.socialnetworking</groupId>
|
||||||
<artifactId>social-util-library</artifactId>
|
<artifactId>social-util-library</artifactId>
|
||||||
<version>1.6.0-SNAPSHOT</version>
|
<version>1.7.0-SNAPSHOT</version>
|
||||||
<name>social-util-library</name>
|
<name>social-util-library</name>
|
||||||
<description>
|
<description>
|
||||||
The social-util-library contains utility functions that can be used by the social-networking portlets.
|
The social-util-library contains utility functions that can be used by the social-networking portlets.
|
||||||
|
@ -203,6 +203,24 @@
|
||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</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>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
</project>
|
</project>
|
||||||
|
|
|
@ -98,10 +98,12 @@ public class Utils {
|
||||||
}
|
}
|
||||||
return mentions;
|
return mentions;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param session the Asl Session
|
* @param scope the context
|
||||||
* @param withinPortal true when is on Liferay portal
|
* @param withinPortal true when is on Liferay portal
|
||||||
* @return the users plus the groups belonging to the current organization (scope)
|
* @return the users plus the groups belonging to the current organization (scope)
|
||||||
*/
|
*/
|
||||||
|
@ -316,6 +318,7 @@ public class Utils {
|
||||||
return item;
|
return item;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* convert the mentioned people in HTML anchor and also Encode the params Base64
|
* convert the mentioned people in HTML anchor and also Encode the params Base64
|
||||||
* @param escapedFeedText
|
* @param escapedFeedText
|
||||||
|
@ -364,6 +367,29 @@ public class Utils {
|
||||||
return escapedFeedText;
|
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
|
* convert the hashtag in HTML anchor and also Encode the params Base64
|
||||||
* @param escapedFeedText
|
* @param escapedFeedText
|
||||||
|
|
Loading…
Reference in New Issue