Package org.eclipse.orion.server.core.resources

Examples of org.eclipse.orion.server.core.resources.Base64Counter


  /**
   * Returns a new site id that is unique for the given user.
   */
  private static String nextSiteId(UserInfo user) {
    Base64Counter counter = new Base64Counter();
    String userName = user.getUserName();
    JSONObject sitesObject = getSites(user);
    String candidate = userName + '-' + counter.toString();
    while (sitesObject.has(candidate)) {
      counter.increment();
      candidate = userName + '-' + counter.toString();
    }
    return candidate;
  }
View Full Code Here

TOP

Related Classes of org.eclipse.orion.server.core.resources.Base64Counter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.