private void addOrgAndSpaceIfNecessary(CloudApplication application, Pair<String, String> orgAndSpace) { // The entity returned by the getApplication(String appName) method of // the CF Java client does not contain a CloudOrganization, // because the value of the 'inline-relations-depth' is hardcoded to 1 // (see the findApplicationResource method of // org.cloudfoundry.client.lib.rest.CloudControllerClientImpl). if (application.getSpace() == null || application.getSpace() .getOrganization() == null) { CloudSpace space = createDummySpace(orgAndSpace); application.setSpace(space); } }
private void addOrgAndSpaceIfNecessary(CloudApplication application, Pair<String, String> orgAndSpace) { // The entity returned by the getApplication(String appName) method of // the CF Java client does not contain a CloudOrganization, // because the value of the 'inline-relations-depth' is hardcoded to 1 // (see the findApplicationResource method of // org.cloudfoundry.client.lib.rest.CloudControllerClientImpl). if (application.getSpace() == null || application.getSpace() .getOrganization() == null) { CloudSpace space = createDummySpace(orgAndSpace); application.setSpace(space); } }
private CloudControllerClient getClientForApplicationSpace(ExecutionWrapper execution, CloudApplication app) { CloudSpace space = app.getSpace(); CloudOrganization organization = space.getOrganization(); return execution.getControllerClient(organization.getName(), space.getName()); }
private CloudControllerClient getClientForApplicationSpace(ExecutionWrapper execution, CloudApplication app) { CloudSpace space = app.getSpace(); CloudOrganization organization = space.getOrganization(); return execution.getControllerClient(organization.getName(), space.getName()); }