本文整理汇总了Java中org.cloudfoundry.community.servicebroker.model.ServiceInstance.getOrganizationGuid方法的典型用法代码示例。如果您正苦于以下问题:Java ServiceInstance.getOrganizationGuid方法的具体用法?Java ServiceInstance.getOrganizationGuid怎么用?Java ServiceInstance.getOrganizationGuid使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.cloudfoundry.community.servicebroker.model.ServiceInstance
的用法示例。
在下文中一共展示了ServiceInstance.getOrganizationGuid方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: generateOauthRegServiceInstance
import org.cloudfoundry.community.servicebroker.model.ServiceInstance; //导入方法依赖的package包/类
private OauthRegServiceInstance generateOauthRegServiceInstance(ServiceInstance serviceInstance) {
return new OauthRegServiceInstance(
serviceInstance.getServiceInstanceId(),
serviceInstance.getPlanId(),
serviceInstance.getOrganizationGuid(),
serviceInstance.getSpaceGuid(),
serviceInstance.getDashboardUrl()
);
}
示例2: getExpectedOutputCredentialsMap
import org.cloudfoundry.community.servicebroker.model.ServiceInstance; //导入方法依赖的package包/类
ImmutableMap<String, Object> getExpectedOutputCredentialsMap(ServiceInstance serviceInstance) {
String orgId = serviceInstance.getOrganizationGuid();
String instanceId = serviceInstance.getServiceInstanceId();
//@formatter:off
return ImmutableMap.of(
"key1", ImmutableMap.of(
"innerKey1", "innerValue1",
"innerKey2", "innerValue2"
),
"key2", "value2",
"fs.defaultFS", "hdfs://name1",
"uri", "hdfs://name1/org/" + orgId + "/userspace/" + instanceId + "/"
);
//@formatter:on
}
示例3: getDirectoryPathToProvision
import org.cloudfoundry.community.servicebroker.model.ServiceInstance; //导入方法依赖的package包/类
String getDirectoryPathToProvision(ServiceInstance serviceInstance) {
String orgId = serviceInstance.getOrganizationGuid();
String instanceId = serviceInstance.getServiceInstanceId();
return "/org/" + orgId + "/userspace/" + instanceId;
}