Package org.guvnor.rest.client

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


    @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

        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

    @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

TOP

Related Classes of org.guvnor.rest.client.RepositoryResponse

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.