net.awired.visuwall.plugin.continuum
Class ContinuumConnection

java.lang.Object
  extended by net.awired.visuwall.plugin.continuum.ContinuumConnection
All Implemented Interfaces:
BasicCapability, BuildCapability, ViewCapability

public class ContinuumConnection
extends Object
implements BuildCapability, ViewCapability


Constructor Summary
ContinuumConnection()
           
 
Method Summary
 void close()
           
 void connect(String url, String login, String password)
           
 List<String> findProjectNamesByView(String viewName)
           
 List<SoftwareProjectId> findSoftwareProjectIdsByViews(List<String> views)
           
 List<String> findViews()
           
 List<Commiter> getBuildCommiters(SoftwareProjectId softwareProjectId, String buildId)
           
 List<String> getBuildIds(SoftwareProjectId softwareProjectId)
           
 BuildState getBuildState(SoftwareProjectId projectId, String buildId)
           
 BuildTime getBuildTime(SoftwareProjectId softwareProjectId, String buildId)
           
 String getDescription(SoftwareProjectId softwareProjectId)
           
 Date getEstimatedFinishTime(SoftwareProjectId projectId, String buildId)
           
 String getLastBuildId(SoftwareProjectId softwareProjectId)
           
 String getMavenId(SoftwareProjectId softwareProjectId)
           
 String getName(SoftwareProjectId softwareProjectId)
           
 SoftwareProjectId identify(ProjectKey projectKey)
           
 boolean isBuilding(SoftwareProjectId softwareProjectId, String buildId)
           
 boolean isClosed()
           
 boolean isProjectDisabled(SoftwareProjectId softwareProjectId)
           
 Map<SoftwareProjectId,String> listSoftwareProjectIds()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContinuumConnection

public ContinuumConnection()
Method Detail

getMavenId

public String getMavenId(SoftwareProjectId softwareProjectId)
                  throws ProjectNotFoundException,
                         MavenIdNotFoundException
Specified by:
getMavenId in interface BasicCapability
Throws:
ProjectNotFoundException
MavenIdNotFoundException

connect

public void connect(String url,
                    String login,
                    String password)
             throws ConnectionException
Specified by:
connect in interface BasicCapability
Throws:
ConnectionException

close

public void close()
Specified by:
close in interface BasicCapability

isClosed

public boolean isClosed()
Specified by:
isClosed in interface BasicCapability

getDescription

public String getDescription(SoftwareProjectId softwareProjectId)
                      throws ProjectNotFoundException
Specified by:
getDescription in interface BasicCapability
Throws:
ProjectNotFoundException

getName

public String getName(SoftwareProjectId softwareProjectId)
               throws ProjectNotFoundException
Specified by:
getName in interface BasicCapability
Throws:
ProjectNotFoundException

identify

public SoftwareProjectId identify(ProjectKey projectKey)
                           throws ProjectNotFoundException
Specified by:
identify in interface BasicCapability
Throws:
ProjectNotFoundException

listSoftwareProjectIds

public Map<SoftwareProjectId,String> listSoftwareProjectIds()
Specified by:
listSoftwareProjectIds in interface BasicCapability

isProjectDisabled

public boolean isProjectDisabled(SoftwareProjectId softwareProjectId)
                          throws ProjectNotFoundException
Specified by:
isProjectDisabled in interface BasicCapability
Throws:
ProjectNotFoundException

getBuildCommiters

public List<Commiter> getBuildCommiters(SoftwareProjectId softwareProjectId,
                                        String buildId)
                                 throws BuildNotFoundException,
                                        ProjectNotFoundException
Specified by:
getBuildCommiters in interface BuildCapability
Throws:
BuildNotFoundException
ProjectNotFoundException

getBuildTime

public BuildTime getBuildTime(SoftwareProjectId softwareProjectId,
                              String buildId)
                       throws BuildNotFoundException,
                              ProjectNotFoundException
Specified by:
getBuildTime in interface BuildCapability
Throws:
BuildNotFoundException
ProjectNotFoundException

getBuildIds

public List<String> getBuildIds(SoftwareProjectId softwareProjectId)
                         throws ProjectNotFoundException
Specified by:
getBuildIds in interface BuildCapability
Throws:
ProjectNotFoundException

getBuildState

public BuildState getBuildState(SoftwareProjectId projectId,
                                String buildId)
                         throws ProjectNotFoundException,
                                BuildNotFoundException
Specified by:
getBuildState in interface BuildCapability
Throws:
ProjectNotFoundException
BuildNotFoundException

getEstimatedFinishTime

public Date getEstimatedFinishTime(SoftwareProjectId projectId,
                                   String buildId)
                            throws ProjectNotFoundException,
                                   BuildNotFoundException
Specified by:
getEstimatedFinishTime in interface BuildCapability
Throws:
ProjectNotFoundException
BuildNotFoundException

isBuilding

public boolean isBuilding(SoftwareProjectId softwareProjectId,
                          String buildId)
                   throws ProjectNotFoundException,
                          BuildNotFoundException
Specified by:
isBuilding in interface BuildCapability
Throws:
ProjectNotFoundException
BuildNotFoundException

getLastBuildId

public String getLastBuildId(SoftwareProjectId softwareProjectId)
                      throws ProjectNotFoundException,
                             BuildIdNotFoundException
Specified by:
getLastBuildId in interface BuildCapability
Throws:
ProjectNotFoundException
BuildIdNotFoundException

findSoftwareProjectIdsByViews

public List<SoftwareProjectId> findSoftwareProjectIdsByViews(List<String> views)
Specified by:
findSoftwareProjectIdsByViews in interface ViewCapability

findViews

public List<String> findViews()
Specified by:
findViews in interface ViewCapability

findProjectNamesByView

public List<String> findProjectNamesByView(String viewName)
                                    throws ViewNotFoundException
Specified by:
findProjectNamesByView in interface ViewCapability
Throws:
ViewNotFoundException


Copyright © 2012 Awired Network. All Rights Reserved.