Example #1
0
 public ResolvedGlobalId fromGlobalId(String globalId) {
   String[] split = Base64.fromBase64(globalId).split(":", 2);
   return new ResolvedGlobalId(split[0], split[1]);
 }
Example #2
0
 public String toGlobalId(String type, String id) {
   return Base64.toBase64(type + ":" + id);
 }