Examples of ItemBase


Examples of org.platformlayer.core.model.ItemBase

    // addChild(SimpleFile.build(getClass(), new File("/etc/racoon/psk.txt")));
    addChild(SimpleFile.build(getClass(), new File("/etc/ipsec-tools.conf")));

    addChild(IpsecBootstrap.class);

    ItemBase model = OpsContext.get().getInstance(ItemBase.class);
    String uuid = platformLayerClient.getOrCreateUuid(model).toString();

    // TODO: Rationalize between our complicated version that can open cloud ports, and this streamlined version
    for (Transport transport : Transport.all()) {
      {
View Full Code Here

Examples of org.platformlayer.core.model.ItemBase

    model.put("collectdHostname", getCollectdHostKey());
  }

  private String getCollectdHostKey() {
    // TODO: Multiple machines per service
    ItemBase managed = OpsContext.get().getInstance(ItemBase.class);
    PlatformLayerKey modelKey = managed.getKey();
    return CollectdHelpers.toCollectdKey(modelKey);
  }
View Full Code Here

Examples of org.platformlayer.core.model.ItemBase

  @Inject
  PlatformLayerHelpers platformLayerClient;

  @Handler
  public void handler() throws OpsException {
    ItemBase item = OpsContext.get().getInstance(ItemBase.class);
    String matchingTag = item.getTags().findUnique(tag.key);
    if (!Objects.equal(matchingTag, tag.getValue())) {
      platformLayerClient.addTag(item.getKey(), tag);
    }
  }
View Full Code Here

Examples of org.platformlayer.core.model.ItemBase

    return items;
  }

  @Override
  public <T> T findItem(PlatformLayerKey key, Class<T> itemClass) throws OpsException {
    ItemBase managedItem = findItem(key);
    return Casts.checkedCast(managedItem, itemClass);
  }
View Full Code Here

Examples of org.platformlayer.core.model.ItemBase

  @Override
  public <T> T findItem(PlatformLayerKey key) throws PlatformLayerClientException {
    key = resolveKey(key);

    boolean fetchTags = true;
    ItemBase managedItem;
    try {
      managedItem = itemRepository.getManagedItem(key, fetchTags, getSecretProvider());
    } catch (RepositoryException e) {
      throw new PlatformLayerClientException("Error fetching item", e);
    }
View Full Code Here

Examples of org.platformlayer.core.model.ItemBase

    return key;
  }

  @Override
  public Tags getItemTags(PlatformLayerKey key) throws PlatformLayerClientException {
    ItemBase item = findItem(key);
    if (item == null) {
      return null;
    }
    return item.getTags();
  }
View Full Code Here

Examples of org.platformlayer.core.model.ItemBase

    PlatformLayerKey caPath = getCaPath();
    if (caPath == null) {
      return null;
    }

    ItemBase sslKeyItem = (ItemBase) platformLayer.getItem(caPath);
    ManagedSecretKey key = providers.toInterface(sslKeyItem, ManagedSecretKey.class);

    return key;
  }
View Full Code Here

Examples of org.platformlayer.core.model.ItemBase

        }
      }

      return null;
    }
    ItemBase sslKeyItem = (ItemBase) platformLayer.getItem(sslKey);
    ManagedSecretKey key = providers.toInterface(sslKeyItem, ManagedSecretKey.class);
    return key;
  }
View Full Code Here

Examples of org.platformlayer.core.model.ItemBase

  public abstract String getDownloadSpecifier();

  public void getAdditionalKeys(Map<String, ManagedSecretKey> keys) throws OpsException {
    for (Link link : getLinks()) {
      ItemBase item = platformLayer.getItem(link.getTarget());
      LinkTarget linkTarget = providers.toInterface(item, LinkTarget.class);

      PlatformLayerKey caPath = linkTarget.getCaForClientKey();
      if (caPath != null) {
        String alias = links.buildKeyName(link);
View Full Code Here

Examples of org.platformlayer.core.model.ItemBase

    // To avoid any possible state problems, we set to null rather than copying
    this.tags = null;
  }

  public void setLinks(Links links) {
    ItemBase item = new ItemBase();
    item.links = links;

    Document document;

    JaxbHelper helper = JaxbHelper.get(ItemBase.class);
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.