public ProxyPlace getPlace(String token) {
   String bits[] = token.split(SEPARATOR);
   Operation operation = Operation.valueOf(bits[1]);
   if (Operation.CREATE == operation) {
     return new ProxyPlace(requests.getProxyClass(bits[0]));
   }
   return new ProxyPlace(requests.getProxyId(bits[0]), operation);
 }
Esempio n. 2
0
 public String getToken(ProxyListPlace place) {
   return requests.getHistoryToken(place.getProxyClass());
 }
Esempio n. 3
0
 public ProxyListPlace getPlace(String token) {
   return new ProxyListPlace(requests.getProxyClass(token));
 }
 public String getToken(ProxyPlace place) {
   if (Operation.CREATE == place.getOperation()) {
     return requests.getHistoryToken(place.getProxyClass()) + SEPARATOR + place.getOperation();
   }
   return requests.getHistoryToken(place.getProxyId()) + SEPARATOR + place.getOperation();
 }