Examples of RepositoryResponse


Examples of org.eclipse.mylyn.tasks.core.RepositoryResponse

          }
        } else {
          service.editIssue(user , repo, issue, credentials);
        }
      }
      return new RepositoryResponse(taskData.isNew()?ResponseKind.TASK_CREATED:ResponseKind.TASK_UPDATED,issue.getNumber());
    } catch (GitHubServiceException e) {
      throw new CoreException(GitHub.createErrorStatus(e));
    }
   
  }
View Full Code Here

Examples of org.eclipse.mylyn.tasks.core.RepositoryResponse

        entry.setSendEmail(new SendEmail("False"));

        IssuesEntry created = client.createIssue(entry, monitor);
        String issueId = getIssueId(created);

        return new RepositoryResponse(ResponseKind.TASK_CREATED, issueId);
    }
View Full Code Here

Examples of org.eclipse.mylyn.tasks.core.RepositoryResponse

            entry.setContent(new HtmlTextConstruct(comment));
        }
        entry.setSendEmail(new SendEmail("False"));
        entry.setUpdates(updates);
        client.updateIssue(issueId, entry, monitor);
        return new RepositoryResponse(ResponseKind.TASK_UPDATED, issueId);
    }
View Full Code Here

Examples of org.guvnor.rest.client.RepositoryResponse

        logger.debug( "-----getRepositories--- " );

        Collection<org.guvnor.structure.repositories.Repository> repos = repositoryService.getRepositories();
        List<RepositoryResponse> result = new ArrayList<RepositoryResponse>();
        for ( org.guvnor.structure.repositories.Repository r : repos ) {
            RepositoryResponse repo = new RepositoryResponse();
            repo.setGitURL( r.getUri() );
            repo.setName( r.getAlias() );
            result.add( repo );
        }
        return result;
    }
View Full Code Here

Examples of org.guvnor.rest.client.RepositoryResponse

    @Path("/repositories/{repositoryName}")
    public RepositoryResponse getRepository( @PathParam("repositoryName") String repositoryName ) {
        logger.debug( "-----getRepository---, repository name: {}", repositoryName );
        org.guvnor.structure.repositories.Repository origRepo = checkRepositoryExistence( repositoryName );

        RepositoryResponse repo = new RepositoryResponse();
        repo.setGitURL( origRepo.getUri() );
        repo.setName( origRepo.getAlias() );

        return repo;
    }
View Full Code Here

Examples of org.guvnor.rest.client.RepositoryResponse

        logger.debug( "-----getRepositories--- " );

        Collection<org.guvnor.structure.repositories.Repository> repos = repositoryService.getRepositories();
        List<RepositoryResponse> result = new ArrayList<RepositoryResponse>();
        for ( org.guvnor.structure.repositories.Repository r : repos ) {
            RepositoryResponse repo = new RepositoryResponse();
            repo.setGitURL( r.getUri() );
            repo.setName( r.getAlias() );
            result.add( repo );
        }
        return result;
    }
View Full Code Here

Examples of org.guvnor.rest.client.RepositoryResponse

    @Path("/repositories/{repositoryName}")
    public RepositoryResponse getRepository( @PathParam("repositoryName") String repositoryName ) {
        logger.debug( "-----getRepository---, repository name: {}", repositoryName );
        org.guvnor.structure.repositories.Repository origRepo = checkRepositoryExistence( repositoryName );

        RepositoryResponse repo = new RepositoryResponse();
        repo.setGitURL( origRepo.getUri() );
        repo.setName( origRepo.getAlias() );

        return repo;
    }
View Full Code Here

Examples of org.kie.workbench.common.services.shared.rest.RepositoryResponse

        logger.info( "-----getRepositories--- " );

        Collection<org.uberfire.backend.repositories.Repository> repos = repositoryService.getRepositories();
        List<RepositoryResponse> result = new ArrayList<RepositoryResponse>();
        for ( org.uberfire.backend.repositories.Repository r : repos ) {
            RepositoryResponse repo = new RepositoryResponse();
            repo.setGitURL( r.getUri() );
            repo.setName( r.getAlias() );
            result.add( repo );
        }
        return result;
    }
View Full Code Here

Examples of org.kie.workbench.common.services.shared.rest.RepositoryResponse

        logger.info( "-----getRepositories--- " );

        Collection<org.uberfire.backend.repositories.Repository> repos = repositoryService.getRepositories();
        List<RepositoryResponse> result = new ArrayList<RepositoryResponse>();
        for ( org.uberfire.backend.repositories.Repository r : repos ) {
            RepositoryResponse repo = new RepositoryResponse();
            repo.setGitURL( r.getUri() );
            repo.setName( r.getAlias() );
            result.add( repo );
        }
        return result;
    }
View Full Code Here

Examples of org.kie.workbench.common.services.shared.rest.RepositoryResponse

        logger.debug( "-----getRepositories--- " );

        Collection<org.uberfire.backend.repositories.Repository> repos = repositoryService.getRepositories();
        List<RepositoryResponse> result = new ArrayList<RepositoryResponse>();
        for ( org.uberfire.backend.repositories.Repository r : repos ) {
            RepositoryResponse repo = new RepositoryResponse();
            repo.setGitURL( r.getUri() );
            repo.setName( r.getAlias() );
            result.add( repo );
        }
        return result;
    }
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.