Package org.platformlayer.common

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


  @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

Related Classes of org.platformlayer.common.UntypedItemCollection

Copyright © 2018 www.massapicom. 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.