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

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


  }

  public Cloud createTempCloud(URL url) {
    CFExtServiceHelper helper = CFExtServiceHelper.getDefault();
    if (helper != null && helper.getService() != null) {
      Cloud someCloud = helper.getService().getClouds().get(url);
      if (someCloud != null)
        return new DarkCloud(someCloud, null);
    }

    return new DarkCloud(url, null, null);
View Full Code Here


      url = URLUtil.normalizeURL(url);
      if (url == null || (defaultTarget != null && url.equals(defaultTarget.getCloud().getUrl()))) {
        return defaultTarget != null ? defaultTarget.getCloud() : null;
      }

      Cloud cloud = userCloudMap.get(url);
      if (cloud == null) {
        CFExtServiceHelper helper = CFExtServiceHelper.getDefault();
        if (helper != null && helper.getService() != null) {
          Cloud someCloud = helper.getService().getClouds().get(url);
          if (someCloud != null) {
            cloud = new DarkCloud(someCloud, userId);
          }
        }

        if (cloud == null) {
          Cloud someCloud = getConfigCloud();
          if (someCloud != null && someCloud.getUrl().equals(url)) {
            cloud = someCloud;
          } else {
            cloud = new DarkCloud(url, null, this.userId);
          }
        }
View Full Code Here

    private Target getTarget(URL url) {
      url = URLUtil.normalizeURL(url);
      if (url == null || (defaultTarget != null && url.equals(defaultTarget.getCloud().getUrl()))) {
        return defaultTarget;
      }
      Cloud cloud = getCloud(url);
      return new Target(cloud);
    }
View Full Code Here

      Cloud cloud = getCloud(url);
      return new Target(cloud);
    }

    private void setDefaulTarget(Target target) {
      Cloud cloud = getCloud(target.getCloud().getUrl());
      Target newTarget = new Target(cloud);
      newTarget.setOrg(target.getOrg());
      newTarget.setSpace(target.getSpace());
      defaultTarget = newTarget;
    }
View Full Code Here

TOP

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

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.