Examples of UntypedItemCollection


Examples of org.platformlayer.common.UntypedItemCollection

      return new AddHostUntyped(inner);
    }

    @Override
    public UntypedItemCollection apply(final ChildClient child) throws PlatformLayerClientException {
      UntypedItemCollection innerItems = inner.apply(child);
      Iterable<UntypedItem> items = Iterables.transform(innerItems.getItems(),
          new Function<UntypedItem, UntypedItem>() {
            @Override
            public UntypedItem apply(UntypedItem item) {
              child.setHost(item);
              return item;
View Full Code Here

Examples of org.platformlayer.common.UntypedItemCollection

  @Override
  public <T> List<T> listItems(Class<T> clazz) throws OpsException {
    JaxbHelper jaxbHelper = PlatformLayerClientBase.toJaxbHelper(clazz, ManagedItemCollection.class);
    PlatformLayerKey path = PlatformLayerClientBase.toKey(jaxbHelper, null, listServices(true));

    UntypedItemCollection untypedItems = listItemsUntyped(path);

    List<T> items = Lists.newArrayList();

    for (UntypedItem untypedItem : untypedItems.getItems()) {
      T item = promoteToTyped(untypedItem, clazz);
      items.add(item);
    }

    return items;
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.