Package org.platformlayer.core.model

Examples of org.platformlayer.core.model.Link


    UntypedItemXml item = (UntypedItemXml) client.getItemUntyped(resolved, Format.XML);

    Links links = item.getLinks();

    Link link = new Link();
    link.name = name;
    link.target = target.resolve(getContext());

    Link existing = links.findLink(name);
    List<Link> linkList = links.getLinks();
    if (existing != null) {
      linkList.remove(existing);
    }
    linkList.add(link);
View Full Code Here


    UntypedItemXml item = (UntypedItemXml) client.getItemUntyped(resolved, Format.XML);

    Links links = item.getLinks();

    Link existing = links.findLink(name);
    List<Link> linkList = links.getLinks();
    if (existing != null) {
      linkList.remove(existing);

      item.setLinks(links);
View Full Code Here

    }

    {
      PlatformLayerKey metricsKey = metricsManager.findMetricsServer();
      if (metricsKey != null) {
        Link link = new Link();
        link.name = "metrics";
        link.target = metricsKey;
        links.add(link);
      }
    }
View Full Code Here

    List<Link> links = Lists.newArrayList();

    links.addAll(super.getLinks());

    {
      Link link = new Link();
      link.name = "auth";
      link.target = getAuthDatabaseKey();
      links.add(link);
    }
View Full Code Here

    links.addAll(super.getLinks());

    {
      // Link to database
      Link link = new Link();
      link.name = "platformlayer";
      link.target = getDatabaseKey();
      links.add(link);
    }

    {
      // Link to user auth
      Link link = new Link();
      link.name = "auth.user";
      link.target = model.auth;
      links.add(link);
    }

    {
      // Link to system auth (token validation)
      Link link = new Link();
      link.name = "auth.system";
      link.target = model.systemAuth;
      links.add(link);
    }
View Full Code Here

TOP

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

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.