Package org.platformlayer.core.model

Examples of org.platformlayer.core.model.Tags


      if (tagChanges != null) {
        log.info("Setting tags on " + platformLayerKey);

        if (OpsContext.isDelete()) {
          // Swap the tags for a removal
          Tags x = tagChanges.addTags;
          tagChanges.addTags = tagChanges.removeTags;
          tagChanges.removeTags = x;
        }

        platformLayer.changeTags(platformLayerKey, tagChanges, null);
View Full Code Here


    if (networkPoint == null) {
      List<InetAddress> matching = Lists.newArrayList();

      // String privateNetworkId = src.getPrivateNetworkId();
      {
        Tags tags = machine.getTags();
        List<InetAddress> addresses = Tag.NETWORK_ADDRESS.find(tags);

        for (InetAddress address : addresses) {
          if (InetAddressUtils.isPublic(address)) {
            matching.add(address);
View Full Code Here

  @Produces({ XML, JSON })
  public Tags listTags() throws RepositoryException {
    boolean fetchTags = true;
    ItemBase managedItem = getManagedItem(fetchTags);

    Tags tags = managedItem.getTags();

    cleanup(tags);
    return tags;
  }
View Full Code Here

  @Consumes({ XML, JSON })
  @Produces({ XML, JSON })
  public Tags changeTags(TagChanges changeTags) throws RepositoryException {
    ModelClass<?> modelClass = getModelClass();

    Tags tags = repository.changeTags(modelClass, getProject(), getItemId(), changeTags, null);

    cleanup(tags);
    return tags;
  }
View Full Code Here

TOP

Related Classes of org.platformlayer.core.model.Tags

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.