Examples of PlatformLayerKey


Examples of org.platformlayer.core.model.PlatformLayerKey

    ChildClient childClient = getClient(childKey);

    MappedPlatformLayerKey mapped = new MappedPlatformLayerKey();
    mapped.child = childClient;
    mapped.key = new PlatformLayerKey(childKey.host, childKey.project, plk.getServiceType(), plk.getItemType(),
        childItemId);
    return mapped;
  }
View Full Code Here

Examples of org.platformlayer.core.model.PlatformLayerKey

    ChildClient childClient = getClient(new FederationMapping(host, project));

    MappedPlatformLayerKey mapped = new MappedPlatformLayerKey();
    mapped.child = childClient;

    mapped.key = new PlatformLayerKey(host, project, plk.getServiceType(), plk.getItemType(), plk.getItemId());

    return mapped;

    // Iterable<ChildClient> childClients = getChildClients(plk);
View Full Code Here

Examples of org.platformlayer.core.model.PlatformLayerKey

    // return item;
    // }

    public JobData setHost(JobData item) {
      // if (!key.equals(FederationKey.LOCAL_FEDERATION_KEY)) {
      PlatformLayerKey plk = item.key;
      item.key = changeHost(plk);
      // }
      return item;
    }
View Full Code Here

Examples of org.platformlayer.core.model.PlatformLayerKey

      // }
      return item;
    }

    private PlatformLayerKey changeHost(PlatformLayerKey plk) {
      return new PlatformLayerKey(key.host, key.project, plk.getServiceType(), plk.getItemType(), plk.getItemId());
    }
View Full Code Here

Examples of org.platformlayer.core.model.PlatformLayerKey

      // if (!key.equals(FederationKey.LOCAL_FEDERATION_KEY)) {
      if (item instanceof ItemBase) {
        ItemBase itemBase = (ItemBase) item;

        // if (!key.equals(FederationKey.LOCAL_FEDERATION_KEY)) {
        PlatformLayerKey plk = itemBase.getKey();
        if (plk == null) {
          throw new IllegalStateException();
        }
        itemBase.setKey(changeHost(plk));
        // }
      } else if (item instanceof UntypedItemXml) {
        UntypedItemXml untypedItemXml = (UntypedItemXml) item;
        PlatformLayerKey plk = untypedItemXml.getKey();
        untypedItemXml.setPlatformLayerKey(changeHost(plk));
      } else {
        throw new UnsupportedOperationException();
      }
      // }
View Full Code Here

Examples of org.platformlayer.core.model.PlatformLayerKey

  public Secret getDatabasePassword() throws OpsException {
    return getModel().password;
  }

  public PlatformLayerKey getDatabaseServerKey() throws OpsException {
    PlatformLayerKey serverKey = getModel().server;
    return serverKey;
  }
View Full Code Here

Examples of org.platformlayer.core.model.PlatformLayerKey

  @Inject
  ServiceContext service;

  @Handler
  public void handler(GitRepository model) throws Exception {
    PlatformLayerKey assignedTo = Tag.ASSIGNED_TO.findUnique(model.getTags());

    if (OpsContext.isConfigure()) {
      if (assignedTo == null) {
        List<GitService> gitServices = platformLayer.listItems(GitService.class);
View Full Code Here

Examples of org.platformlayer.core.model.PlatformLayerKey

  public String getDatabaseName() throws OpsException {
    return getModel().databaseName;
  }

  protected String getAuthJdbcUrl() throws OpsException {
    PlatformLayerKey serverKey = getModel().server;

    ItemBase serverItem = (ItemBase) platformLayer.getItem(serverKey);
    DatabaseServer server = databases.toDatabase(serverItem);

    String jdbc = server.getJdbcUrl(getDatabaseName(), InetAddressChooser.preferIpv6());
View Full Code Here

Examples of org.platformlayer.core.model.PlatformLayerKey

    return getDatabase().password;
    // return Secret.build("platformlayer-password");
  }

  public GerritDatabase getDatabase() throws OpsException {
    PlatformLayerKey databaseKey = getDatabaseKey();
    GerritDatabase database = platformLayer.getItem(databaseKey, GerritDatabase.class);
    return database;
  }
View Full Code Here

Examples of org.platformlayer.core.model.PlatformLayerKey

  protected PlatformLayerKey getDatabaseKey() {
    return getGerritService().database;
  }

  protected String getJdbcUrl() throws OpsException {
    PlatformLayerKey serverKey = getDatabase().server;

    ItemBase serverItem = (ItemBase) platformLayer.getItem(serverKey);
    DatabaseServer server = databases.toDatabase(serverItem);

    String jdbc = server.getJdbcUrl(getDatabaseName(), InetAddressChooser.preferIpv6());
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.