Examples of ProjectId


Examples of org.platformlayer.ids.ProjectId

      itemType = path;
      serviceType = getServiceTypeFromItemType(client, itemType);
    }

    FederationKey host = null;
    ProjectId project = client.getProject();
    return new PlatformLayerKey(host, project, new ServiceType(serviceType), new ItemType(itemType), null);
  }
View Full Code Here

Examples of org.platformlayer.ids.ProjectId

    ClientAction action = null;
    if (sshAddress != null) {
      String user = "root";

      ProjectId project = key.getProject();
      if (project == null) {
        project = client.getProject();
      }
      if (project == null) {
        throw new CliException("Cannot determine project");
      }
      String projectKey = project.getKey();
      String serviceKey = "service-" + key.getServiceType().getKey();

      File sshKey = IoUtils.resolve("~/.credentials/ssh/" + projectKey + "/" + serviceKey);

      // Hmmm... user? key?
View Full Code Here

Examples of org.platformlayer.ids.ProjectId

      ModelClass<?> modelClass = serviceProvider.getModelClass(key.getItemType());

      ServiceType serviceType = key.getServiceType();
      ItemType itemType = key.getItemType();
      ProjectId project = key.getProject();
      ManagedItemId itemId = key.getItemId();

      return fetchItem(db, serviceType, itemType, project, itemId, modelClass.getJavaClass(), secretProvider,
          fetchTags);
    } catch (SQLException e) {
View Full Code Here

Examples of org.platformlayer.ids.ProjectId

    FederationKey host = plk.getHost();
    if (host == null) {
      host = FederationKey.LOCAL;
    }

    ProjectId project = plk.getProject();
    if (project == null) {
      project = defaultProject;
      // project = federationMap.getLocalClient().getProject();
    }
View Full Code Here

Examples of org.platformlayer.ids.ProjectId

  OperationQueue operationQueue;

  @Override
  public JobData enqueueOperation(Action action, ProjectAuthorization auth, PlatformLayerKey targetItem)
      throws OpsException {
    ProjectId projectId;
    try {
      projectId = opsContextBuilder.getRunAsProjectId(auth);
    } catch (OpsException e) {
      throw new OpsException("Error getting projectId", e);
    }
View Full Code Here

Examples of org.platformlayer.ids.ProjectId

  }

  private static PlatformLayerEndpointInfo rehydrateEndpoint(final EndpointRecord in) {
    final Authenticator authenticator;
    final String platformlayerBaseUrl = in.url;
    final ProjectId projectId = new ProjectId(in.project);
    final List<String> trustKeys;

    if (Strings.isNullOrEmpty(in.trustKeys)) {
      trustKeys = Collections.emptyList();
    } else {
View Full Code Here

Examples of org.platformlayer.ids.ProjectId

  @Override
  @JdbcTransaction
  public List<JobExecutionData> listExecutions(PlatformLayerKey jobKey) throws RepositoryException {
    DbHelper db = new DbHelper();
    try {
      ProjectId projectId = jobKey.getProject();
      String jobId = jobKey.getItemIdString();

      List<JobExecutionEntity> executions = db.queries.listExecutions(db.mapToValue(projectId), jobId);
      List<JobExecutionData> ret = Lists.newArrayList();
      for (JobExecutionEntity execution : executions) {
View Full Code Here

Examples of org.platformlayer.ids.ProjectId

  @Override
  @JdbcTransaction
  public List<JobData> listRecentJobs(JobQuery jobQuery) throws RepositoryException {
    DbHelper db = new DbHelper();
    try {
      ProjectId projectId = jobQuery.project;
      Preconditions.checkNotNull(projectId);
      int project = db.mapToValue(projectId);

      Long maxAge = null;
      if (jobQuery.maxAge != null) {
View Full Code Here

Examples of org.platformlayer.ids.ProjectId

  @Override
  @JdbcTransaction
  public JobExecutionData findExecution(PlatformLayerKey jobKey, String executionId) throws RepositoryException {
    DbHelper db = new DbHelper();
    try {
      ProjectId projectId = jobKey.getProject();
      String jobId = jobKey.getItemIdString();

      JobExecutionEntity execution = db.queries.findExecution(db.mapToValue(projectId), jobId, executionId);

      if (execution == null) {
View Full Code Here

Examples of org.platformlayer.ids.ProjectId

  @Override
  @JdbcTransaction
  public JobData findJob(PlatformLayerKey jobKey) throws RepositoryException {
    DbHelper db = new DbHelper();
    try {
      ProjectId projectId = jobKey.getProject();
      String jobId = jobKey.getItemIdString();

      JobEntity execution = db.queries.findJob(db.mapToValue(projectId), jobId);

      if (execution == null) {
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.