Example usage for org.springframework.ide.eclipse.boot.dash.cloudfoundry.client CFSpace getOrganization

List of usage examples for org.springframework.ide.eclipse.boot.dash.cloudfoundry.client CFSpace getOrganization

Introduction

In this page you can find the example usage for org.springframework.ide.eclipse.boot.dash.cloudfoundry.client CFSpace getOrganization.

Prototype

CFOrganization getOrganization();

Source Link

Usage

From source file:org.springframework.ide.eclipse.boot.dash.cloudfoundry.CloudFoundryTargetWizardModel.java

protected RunTarget getExistingRunTarget(CFSpace space) {
    if (space != null) {
        String targetId = CloudFoundryTargetProperties.getId(getUsername(), getUrl(),
                space.getOrganization().getName(), space.getName());
        for (RunTarget target : existingTargets) {
            if (targetId.equals(target.getId())) {
                return target;
            }/* w  w w.j a v a2 s.  c  o m*/
        }
    }
    return null;
}

From source file:org.springframework.ide.eclipse.boot.dash.cloudfoundry.CloudFoundryTargetWizardModel.java

public String getOrganizationName() {
    CFSpace space = this.space.getValue();
    if (space != null) {
        return space.getOrganization().getName();
    }//ww  w . java  2 s. c  o m
    return null;
}