added encoder decoder base 64 util from js

git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portal/social-networking-library@79375 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Massimiliano Assante 2013-07-18 15:45:58 +00:00
parent f600bab229
commit a2070fd273
3 changed files with 8728 additions and 0 deletions

File diff suppressed because it is too large Load Diff

View File

@ -8,6 +8,7 @@ import com.google.gwt.core.client.EntryPoint;
public class GCubeSocialNetworking implements EntryPoint {
public static final String USER_PROFILE_LINK = "/group/data-e-infrastructure-gateway/profile";
public static final String USER_PROFILE_OID = "userIdentificationParameter";
public void onModuleLoad() {
}

View File

@ -0,0 +1,15 @@
package org.gcube.portal.databook.client.util;
/**
* simply encode base64 strings
* @author massi
*
*/
public class Encoder {
public static native String encode(String toEncode) /*-{
return btoa(toEncode);
}-*/;
public static native String decode(String toDecode) /*-{
return atob(toDecode);
}-*/;
}