return (ReleaseResult) releaseManager.getReleaseResults().get( releaseId );
}
public Map getListener( String releaseId )
{
ContinuumReleaseManagerListener listener = (ContinuumReleaseManagerListener) releaseManager.getListeners().get( releaseId );
Map map = new HashMap();
if ( listener != null )
{
map.put( ContinuumBuildAgentUtil.KEY_RELEASE_STATE, new Integer( listener.getState() ) );
if ( listener.getPhases() != null )
{
map.put( ContinuumBuildAgentUtil.KEY_RELEASE_PHASES, listener.getPhases() );
}
if ( listener.getCompletedPhases() != null )
{
map.put( ContinuumBuildAgentUtil.KEY_COMPLETED_RELEASE_PHASES, listener.getCompletedPhases() );
}
if ( listener.getInProgress() != null )
{
map.put( ContinuumBuildAgentUtil.KEY_RELEASE_IN_PROGRESS, listener.getInProgress() );
}
if ( listener.getError() != null )
{
map.put( ContinuumBuildAgentUtil.KEY_RELEASE_ERROR, listener.getError() );
}
}
return map;
}