gpt4 book ai didi

org.xowl.platform.kernel.XSPReplyServiceUnavailable.instance()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-25 19:35:05 28 4
gpt4 key购买 nike

本文整理了Java中org.xowl.platform.kernel.XSPReplyServiceUnavailable.instance()方法的一些代码示例,展示了XSPReplyServiceUnavailable.instance()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XSPReplyServiceUnavailable.instance()方法的具体详情如下:
包路径:org.xowl.platform.kernel.XSPReplyServiceUnavailable
类名称:XSPReplyServiceUnavailable
方法名:instance

XSPReplyServiceUnavailable.instance介绍

暂无

代码示例

代码示例来源:origin: org.xowl.platform/xowl-service-lts

@Override
  public void doRun() {
    ArtifactStorageService storage = ServiceUtils.getService(ArtifactStorageService.class);
    if (storage == null) {
      result = XSPReplyServiceUnavailable.instance();
      return;
    }
    result = storage.delete(artifactId);
  }
}

代码示例来源:origin: org.xowl.platform/xowl-service-collaboration

@Override
  public void doRun() {
    CollaborationNetworkService networkService = Register.getComponent(CollaborationNetworkService.class);
    if (networkService == null) {
      result = XSPReplyServiceUnavailable.instance();
      return;
    }
    result = networkService.spawn(specification);
  }
}

代码示例来源:origin: org.xowl.platform/xowl-service-collaboration

@Override
public XSPReply delete(String collaborationId) {
  SecurityService securityService = Register.getComponent(SecurityService.class);
  if (securityService == null)
    return XSPReplyServiceUnavailable.instance();
  XSPReply reply = securityService.checkAction(ACTION_NETWORK_DELETE);
  if (!reply.isSuccess())
    return reply;
  RemoteCollaborationManaged neighbour = collaborations.get(collaborationId);
  if (neighbour == null)
    return XSPReplyNotFound.instance();
  return XSPReplyUnsupported.instance();
}

代码示例来源:origin: org.xowl.platform/xowl-service-collaboration

@Override
public XSPReply getNeighbourManifest(String collaborationId) {
  SecurityService securityService = Register.getComponent(SecurityService.class);
  if (securityService == null)
    return XSPReplyServiceUnavailable.instance();
  XSPReply reply = securityService.checkAction(ACTION_GET_NEIGHBOUR_MANIFEST);
  if (!reply.isSuccess())
    return reply;
  return XSPReplyNotFound.instance();
}

代码示例来源:origin: org.xowl.platform/xowl-service-collaboration

@Override
public XSPReply getNeighbourOutputsFor(String collaborationId, String specificationId) {
  SecurityService securityService = Register.getComponent(SecurityService.class);
  if (securityService == null)
    return XSPReplyServiceUnavailable.instance();
  XSPReply reply = securityService.checkAction(ACTION_GET_NEIGHBOUR_OUTPUTS);
  if (!reply.isSuccess())
    return reply;
  return XSPReplyNotFound.instance();
}

代码示例来源:origin: org.xowl.platform/xowl-service-collaboration

@Override
public XSPReply restart(String collaborationId) {
  SecurityService securityService = Register.getComponent(SecurityService.class);
  if (securityService == null)
    return XSPReplyServiceUnavailable.instance();
  XSPReply reply = securityService.checkAction(ACTION_NETWORK_RESTART);
  if (!reply.isSuccess())
    return reply;
  return XSPReplyUnsupported.instance();
}

代码示例来源:origin: org.xowl.platform/xowl-service-collaboration

@Override
public XSPReply getNeighbourInputsFor(String collaborationId, String specificationId) {
  SecurityService securityService = Register.getComponent(SecurityService.class);
  if (securityService == null)
    return XSPReplyServiceUnavailable.instance();
  XSPReply reply = securityService.checkAction(ACTION_GET_NEIGHBOUR_INPUTS);
  if (!reply.isSuccess())
    return reply;
  return XSPReplyNotFound.instance();
}

代码示例来源:origin: org.xowl.platform/xowl-service-connection

@Override
public XSPReply pullArtifact() {
  SecurityService securityService = Register.getComponent(SecurityService.class);
  if (securityService == null)
    return XSPReplyServiceUnavailable.instance();
  XSPReply reply = securityService.checkAction(actionPull);
  if (!reply.isSuccess())
    return reply;
  return doPullArtifact();
}

代码示例来源:origin: org.xowl.platform/xowl-service-collaboration

@Override
public XSPReply archive(String collaborationId) {
  SecurityService securityService = Register.getComponent(SecurityService.class);
  if (securityService == null)
    return XSPReplyServiceUnavailable.instance();
  XSPReply reply = securityService.checkAction(ACTION_NETWORK_ARCHIVE);
  if (!reply.isSuccess())
    return reply;
  return XSPReplyUnsupported.instance();
}

代码示例来源:origin: org.xowl.platform/xowl-service-collaboration

@Override
public XSPReply spawn(CollaborationSpecification specification) {
  SecurityService securityService = Register.getComponent(SecurityService.class);
  if (securityService == null)
    return XSPReplyServiceUnavailable.instance();
  XSPReply reply = securityService.checkAction(ACTION_NETWORK_SPAWN);
  if (!reply.isSuccess())
    return reply;
  return XSPReplyUnsupported.instance();
}

代码示例来源:origin: org.xowl.platform/xowl-service-connection

@Override
public XSPReply pushArtifact(Artifact artifact) {
  SecurityService securityService = Register.getComponent(SecurityService.class);
  if (securityService == null)
    return XSPReplyServiceUnavailable.instance();
  XSPReply reply = securityService.checkAction(actionPush);
  if (!reply.isSuccess())
    return reply;
  return doPushArtifact(artifact);
}

代码示例来源:origin: org.xowl.platform/xowl-service-collaboration

@Override
  public XSPReply delete(String collaborationId) {
    SecurityService securityService = Register.getComponent(SecurityService.class);
    if (securityService == null)
      return XSPReplyServiceUnavailable.instance();
    XSPReply reply = securityService.checkAction(ACTION_NETWORK_DELETE);
    if (!reply.isSuccess())
      return reply;
    return XSPReplyUnsupported.instance();
  }
}

代码示例来源:origin: org.xowl.platform/xowl-service-collaboration

@Override
public XSPReply spawn(CollaborationSpecification specification) {
  SecurityService securityService = Register.getComponent(SecurityService.class);
  if (securityService == null)
    return XSPReplyServiceUnavailable.instance();
  XSPReply reply = securityService.checkAction(ACTION_NETWORK_SPAWN);
  if (!reply.isSuccess())
    return reply;
  return provision(specification);
}

代码示例来源:origin: org.xowl.platform/xowl-service-collaboration

@Override
public XSPReply registerInput(String specificationId, String artifactId) {
  SecurityService securityService = Register.getComponent(SecurityService.class);
  if (securityService == null)
    return XSPReplyServiceUnavailable.instance();
  XSPReply reply = securityService.checkAction(ACTION_REGISTER_INPUT);
  if (!reply.isSuccess())
    return reply;
  manifest.addInputArtifact(specificationId, artifactId);
  return serializeManifest();
}

代码示例来源:origin: org.xowl.platform/xowl-service-collaboration

@Override
public XSPReply unregisterOutput(String specificationId, String artifactId) {
  SecurityService securityService = Register.getComponent(SecurityService.class);
  if (securityService == null)
    return XSPReplyServiceUnavailable.instance();
  XSPReply reply = securityService.checkAction(ACTION_UNREGISTER_OUTPUT);
  if (!reply.isSuccess())
    return reply;
  manifest.removeOutputArtifact(specificationId, artifactId);
  return serializeManifest();
}

代码示例来源:origin: org.xowl.platform/xowl-service-collaboration

@Override
public XSPReply unregisterInput(String specificationId, String artifactId) {
  SecurityService securityService = Register.getComponent(SecurityService.class);
  if (securityService == null)
    return XSPReplyServiceUnavailable.instance();
  XSPReply reply = securityService.checkAction(ACTION_UNREGISTER_INPUT);
  if (!reply.isSuccess())
    return reply;
  manifest.removeInputArtifact(specificationId, artifactId);
  return serializeManifest();
}

代码示例来源:origin: org.xowl.platform/xowl-kernel-impl

@Override
public XSPReply getConfiguration() {
  SecurityService securityService = Register.getComponent(SecurityService.class);
  if (securityService == null)
    return XSPReplyServiceUnavailable.instance();
  XSPReply reply = securityService.checkAction(SecurityService.ACTION_GET_POLICY);
  if (!reply.isSuccess())
    return reply;
  KernelSecurityPolicyConfiguration configuration = resolveConfig();
  return new XSPReplyResult<>(configuration.synchronize());
}

代码示例来源:origin: org.xowl.platform/xowl-service-collaboration

@Override
public XSPReply removeRole(String roleId) {
  SecurityService securityService = Register.getComponent(SecurityService.class);
  if (securityService == null)
    return XSPReplyServiceUnavailable.instance();
  XSPReply reply = securityService.checkAction(ACTION_REMOVE_ROLE);
  if (!reply.isSuccess())
    return reply;
  if (!manifest.removeRole(roleId))
    return XSPReplyNotFound.instance();
  return serializeManifest();
}

代码示例来源:origin: org.xowl.platform/xowl-service-collaboration

@Override
public XSPReply removeInputSpecification(String specificationId) {
  SecurityService securityService = Register.getComponent(SecurityService.class);
  if (securityService == null)
    return XSPReplyServiceUnavailable.instance();
  XSPReply reply = securityService.checkAction(ACTION_REMOVE_INPUT_SPEC);
  if (!reply.isSuccess())
    return reply;
  if (!manifest.removeInputSpecification(specificationId))
    return XSPReplyNotFound.instance();
  return serializeManifest();
}

代码示例来源:origin: org.xowl.platform/xowl-service-collaboration

@Override
public XSPReply removeOutputSpecification(String specificationId) {
  SecurityService securityService = Register.getComponent(SecurityService.class);
  if (securityService == null)
    return XSPReplyServiceUnavailable.instance();
  XSPReply reply = securityService.checkAction(ACTION_REMOVE_OUTPUT_SPEC);
  if (!reply.isSuccess())
    return reply;
  if (!manifest.removeOutputSpecification(specificationId))
    return XSPReplyNotFound.instance();
  return serializeManifest();
}

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com