Implementing new Solution refs #13207
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/social-networking/social-util-library@176783 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
13d8bc5d39
commit
73b98fb122
|
@ -8,7 +8,7 @@ import java.util.List;
|
|||
import org.gcube.common.portal.GCubePortalConstants;
|
||||
import org.gcube.portal.databook.client.GCubeSocialNetworking;
|
||||
import org.gcube.portlets.widgets.pickitem.shared.ItemBean;
|
||||
import org.gcube.socialnetworking.tokenization.SocialStringTokenizer;
|
||||
import org.gcube.socialnetworking.tokenization.GCubeStringTokenizer;
|
||||
import org.gcube.socialnetworking.tokenization.Token;
|
||||
import org.gcube.vomanagement.usermanagement.impl.LiferayGroupManager;
|
||||
import org.gcube.vomanagement.usermanagement.impl.LiferayRoleManager;
|
||||
|
@ -34,7 +34,7 @@ public class SocialMessageParser {
|
|||
public List<ReplaceableToken> getTokens() {
|
||||
if(tokens==null){
|
||||
tokens = new ArrayList<>();
|
||||
SocialStringTokenizer socialStringTokenizer = new SocialStringTokenizer(originalMessage);
|
||||
GCubeStringTokenizer socialStringTokenizer = new GCubeStringTokenizer(originalMessage);
|
||||
for(Token token : socialStringTokenizer.getTokens()) {
|
||||
String tokenString = token.getToken();
|
||||
if(tokenString.startsWith("#")) {
|
||||
|
|
|
@ -5,7 +5,7 @@ import java.util.List;
|
|||
import java.util.regex.Matcher;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
public class SocialStringTokenizer {
|
||||
public class GCubeStringTokenizer {
|
||||
|
||||
private final String originalString;
|
||||
|
||||
|
@ -14,7 +14,7 @@ public class SocialStringTokenizer {
|
|||
|
||||
private List<Token> tokens;
|
||||
|
||||
public SocialStringTokenizer(String string) {
|
||||
public GCubeStringTokenizer(String string) {
|
||||
this.originalString = string;
|
||||
this.pattern = Pattern.compile("\\s");
|
||||
this.matcher = pattern.matcher(originalString);
|
Loading…
Reference in New Issue