Package org.eclipse.orion.server.cf.objects

Examples of org.eclipse.orion.server.cf.objects.Org


        return new ServerStatus(IStatus.ERROR, HttpServletResponse.SC_NOT_FOUND, "Organization not found", null);
      }

      if (this.org == null || "".equals(this.org)) {
        JSONObject org = orgs.getJSONObject(0);
        target.setOrg(new Org().setCFJSON(org));
      } else {
        for (int i = 0; i < orgs.length(); i++) {
          JSONObject orgJSON = orgs.getJSONObject(i);
          if ((!isGuid && org.equals(orgJSON.getJSONObject("entity").getString("name"))) || (isGuid && org.equals(orgJSON.getJSONObject("metadata").getString("guid")))) {
            target.setOrg(new Org().setCFJSON(orgJSON));
            break;
          }
        }
      }
View Full Code Here

TOP

Related Classes of org.eclipse.orion.server.cf.objects.Org

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.