当前位置: 首页>>代码示例>>Java>>正文


Java InstanceInfo.setInstanceId方法代码示例

本文整理汇总了Java中org.oscm.provisioning.data.InstanceInfo.setInstanceId方法的典型用法代码示例。如果您正苦于以下问题:Java InstanceInfo.setInstanceId方法的具体用法?Java InstanceInfo.setInstanceId怎么用?Java InstanceInfo.setInstanceId使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.oscm.provisioning.data.InstanceInfo的用法示例。


在下文中一共展示了InstanceInfo.setInstanceId方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: createInstance

import org.oscm.provisioning.data.InstanceInfo; //导入方法依赖的package包/类
@Override
public InstanceResult createInstance(InstanceRequest request,
        User requestingUser) {
    checkThrowError();
    InstanceResult result = new InstanceResult();
    if (request.getOrganizationId() != null) {
        if (returnedInstanceInfo == null) {
            InstanceInfo info = new InstanceInfo();
            info.setAccessInfo(request.getDefaultLocale());
            info.setBaseUrl(ApplicationServiceBeanTest.BASE_URL);
            info.setInstanceId(request.getOrganizationId()
                    + request.getSubscriptionId());
            info.setLoginPath(request.getLoginUrl());
            result.setInstance(info);
        } else {
            result.setInstance(returnedInstanceInfo);
        }
    }
    setParameters(request.getParameterValue());
    this.requestingUser = requestingUser;

    return setRcAndDesc(result);
}
 
开发者ID:servicecatalog,项目名称:oscm,代码行数:24,代码来源:ProvisioningServicePortStub.java

示例2: createInstance

import org.oscm.provisioning.data.InstanceInfo; //导入方法依赖的package包/类
@Override
public InstanceResult createInstance(InstanceRequest request,
        User requestingUser) {
    final RequestLogEntry entry = createLogEntry("createInstance");
    entry.addParameter("request", request);
    entry.addParameter("requestingUser", requestingUser);

    InstanceInfo instance = new InstanceInfo();
    instance.setInstanceId(request.getSubscriptionId());
    instance.setAccessInfo(null);

    InstanceResult result = new InstanceResult();
    result.setInstance(instance);

    String message = Messages.get(requestingUser.getLocale(),
            "info.subscription.created");
    setOk(result, message);

    return result;
}
 
开发者ID:servicecatalog,项目名称:development,代码行数:21,代码来源:ProvisioningServiceBean.java

示例3: createInstanceResult

import org.oscm.provisioning.data.InstanceInfo; //导入方法依赖的package包/类
private InstanceResult createInstanceResult(ServiceInstance currentSI) {

        InstanceInfo instance = new InstanceInfo();
        instance.setInstanceId(currentSI.getSubscriptionId());
        instance.setAccessInfo(currentSI.getServiceAccessInfo());
        instance.setBaseUrl(currentSI.getServiceBaseURL());
        instance.setLoginPath(currentSI.getServiceLoginPath());
        InstanceResult instanceResult = new InstanceResult();
        instanceResult.setInstance(instance);

        return instanceResult;
    }
 
开发者ID:servicecatalog,项目名称:oscm-app,代码行数:13,代码来源:ServiceInstanceServiceBean.java

示例4: getInstanceResult

import org.oscm.provisioning.data.InstanceInfo; //导入方法依赖的package包/类
private InstanceResult getInstanceResult(int returnCode) {
    InstanceResult instanceResult = new InstanceResult();
    InstanceInfo instanceInfo = new InstanceInfo();
    instanceInfo.setAccessInfo("TSReturnAccessInfo");
    instanceInfo.setBaseUrl(TS_RETURN_BASE_URL);
    instanceInfo.setInstanceId("TSReturnInstanceId");
    instanceInfo.setLoginPath("TSReturnLoginPath");
    instanceResult.setInstance(instanceInfo);
    instanceResult.setRc(returnCode);
    return instanceResult;
}
 
开发者ID:servicecatalog,项目名称:oscm-app,代码行数:12,代码来源:APPTimerServiceBeanIT.java

示例5: givenInstanceResult

import org.oscm.provisioning.data.InstanceInfo; //导入方法依赖的package包/类
private InstanceResult givenInstanceResult(int returnCode) {
    InstanceResult instanceResult = new InstanceResult();
    InstanceInfo instanceInfo = new InstanceInfo();
    instanceInfo.setAccessInfo("TSReturnAccessInfo");
    instanceInfo.setBaseUrl("TS_RETURN_BASE_URL");
    instanceInfo.setInstanceId("TSReturnInstanceId");
    instanceInfo.setLoginPath("TSReturnLoginPath");
    instanceResult.setInstance(instanceInfo);
    instanceResult.setRc(returnCode);
    return instanceResult;
}
 
开发者ID:servicecatalog,项目名称:oscm-app,代码行数:12,代码来源:BesDAOTest.java

示例6: createInstanceInfo

import org.oscm.provisioning.data.InstanceInfo; //导入方法依赖的package包/类
private InstanceInfo createInstanceInfo() {
    InstanceInfo info = new InstanceInfo();
    info.setInstanceId("abc");
    info.setBaseUrl("http://localhost:8080");
    info.setLoginPath("/login");
    info.setAccessInfo("Some access info");
    return info;
}
 
开发者ID:servicecatalog,项目名称:oscm,代码行数:9,代码来源:ApplicationServiceBeanTest.java

示例7: createInstance

import org.oscm.provisioning.data.InstanceInfo; //导入方法依赖的package包/类
@Override
public InstanceResult createInstance(Subscription subscription)
        throws TechnicalServiceNotAliveException,
        TechnicalServiceOperationException {
    InstanceResult result = new InstanceResult();
    InstanceInfo info = new InstanceInfo();
    info.setInstanceId(subscription.getSubscriptionId());
    result.setInstance(info);
    return result;
}
 
开发者ID:servicecatalog,项目名称:oscm,代码行数:11,代码来源:ApplicationServiceStub.java

示例8: createInstance

import org.oscm.provisioning.data.InstanceInfo; //导入方法依赖的package包/类
@Override
@TransactionAttribute(TransactionAttributeType.MANDATORY)
public InstanceResult createInstance(Subscription subscription)
        throws TechnicalServiceNotAliveException,
        TechnicalServiceOperationException {
    InstanceResult result = new InstanceResult();
    InstanceInfo info = new InstanceInfo();
    info.setInstanceId(subscription.getSubscriptionId());
    result.setInstance(info);
    return result;
}
 
开发者ID:servicecatalog,项目名称:oscm,代码行数:12,代码来源:ApplicationServiceStub.java


注:本文中的org.oscm.provisioning.data.InstanceInfo.setInstanceId方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。