Implementing new Solution refs #13207
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/social-networking/social-util-library@176782 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
3a05130732
commit
13d8bc5d39
|
@ -4,6 +4,7 @@ import java.util.HashMap;
|
|||
import java.util.Map;
|
||||
|
||||
import org.apache.commons.codec.binary.Base64;
|
||||
import org.gcube.socialnetworking.tokenization.Token;
|
||||
|
||||
public class ReplaceableToken extends Token {
|
||||
|
||||
|
|
|
@ -8,6 +8,8 @@ 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.Token;
|
||||
import org.gcube.vomanagement.usermanagement.impl.LiferayGroupManager;
|
||||
import org.gcube.vomanagement.usermanagement.impl.LiferayRoleManager;
|
||||
import org.gcube.vomanagement.usermanagement.model.GCubeTeam;
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
package org.gcube.socialnetworking.socialtoken;
|
||||
|
||||
import org.gcube.portal.databook.client.GCubeSocialNetworking;
|
||||
import org.gcube.socialnetworking.tokenization.Token;
|
||||
|
||||
public class TagToken extends ReplaceableToken {
|
||||
|
||||
|
@ -14,7 +15,7 @@ public class TagToken extends ReplaceableToken {
|
|||
|
||||
public String getTokenReplacement() {
|
||||
if(!replaced) {
|
||||
String linkTarget = ReplaceableToken.createHref("", GCubeSocialNetworking.HASHTAG_OID, token);
|
||||
String linkTarget = ReplaceableToken.createHref("", GCubeSocialNetworking.HASHTAG_OID, super.token);
|
||||
tokenReplacement = ReplaceableToken.createLink(linkTarget, token, null);
|
||||
replaced = true;
|
||||
}
|
||||
|
|
|
@ -5,6 +5,8 @@ import java.net.URL;
|
|||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
import org.gcube.socialnetworking.tokenization.Token;
|
||||
|
||||
public class URLToken extends ReplaceableToken {
|
||||
|
||||
public URLToken(String token, String delimiter, int start, int end) {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package org.gcube.socialnetworking.socialtoken;
|
||||
package org.gcube.socialnetworking.tokenization;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
|
@ -1,11 +1,11 @@
|
|||
package org.gcube.socialnetworking.socialtoken;
|
||||
package org.gcube.socialnetworking.tokenization;
|
||||
|
||||
public class Token{
|
||||
|
||||
final String token;
|
||||
final String delimiter;
|
||||
final int start;
|
||||
final int end;
|
||||
protected final String token;
|
||||
protected final String delimiter;
|
||||
protected final int start;
|
||||
protected final int end;
|
||||
|
||||
/**
|
||||
* @param token the Token String
|
Loading…
Reference in New Issue