Examples of CapabilityXO


Examples of org.sonatype.nexus.capabilities.model.CapabilityXO

  @Override
  protected CapabilityStatusXO createSettings(final String id) {
    return new CapabilityStatusXO()
        .withCapability(
            new CapabilityXO()
                .withId(id)
                .withEnabled(true)
                .withProperties(Lists.<PropertyXO>newArrayList())
        );
  }
View Full Code Here

Examples of org.sonatype.nexus.capabilities.model.CapabilityXO

    return capabilityStatus;
  }

  private static CapabilityXO asCapability(final CapabilityReference reference) {
    CapabilityXO capability = new CapabilityXO()
        .withId(reference.context().id().toString())
        .withNotes(reference.context().notes())
        .withEnabled(reference.context().isEnabled())
        .withTypeId(reference.context().type().toString());

    if (reference.context().properties() != null) {
      for (final Map.Entry<String, String> entry : reference.context().properties().entrySet()) {
        capability.getProperties().add(new PropertyXO().withKey(entry.getKey()).withValue(entry.getValue()));
      }
    }
    return capability;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.