com.atlassian.bamboo.plugins.rest.resource
Class QueueResource
java.lang.Object
com.atlassian.bamboo.plugins.rest.resource.QueueResource
@Singleton
public class QueueResource
- extends java.lang.Object
Method Summary |
RestQueuedBuilds |
getBuildQueue(javax.ws.rs.core.UriInfo uriInfo)
|
RestQueuedBuild |
startBuild(java.lang.String projectKey,
java.lang.String buildKey,
javax.ws.rs.core.UriInfo uriInfo,
com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext,
java.lang.String fakeParam,
javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> formParams)
fakeParam is a trick. |
javax.ws.rs.core.Response |
stopBuild(java.lang.String projectKey,
java.lang.String buildKey,
int buildNumber)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
QueueResource
public QueueResource(PlanManager planManager,
BambooUserManager bambooUserManager,
BuildQueueManager buildQueueManager,
PlanExecutionManager planExecutionManager)
getBuildQueue
public RestQueuedBuilds getBuildQueue(@Context
javax.ws.rs.core.UriInfo uriInfo)
startBuild
public RestQueuedBuild startBuild(java.lang.String projectKey,
java.lang.String buildKey,
@Context
javax.ws.rs.core.UriInfo uriInfo,
@Context
com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext,
java.lang.String fakeParam,
javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> formParams)
- fakeParam is a trick. It is not used at all. We need a
@FormParam
annotation to formParams multimap be properly injected into the method.
Requires follow up - probably bug in Jersey.
- Parameters:
projectKey
- buildKey
- uriInfo
- authenticationContext
- fakeParam
- - not used - just to fix Jersey bugformParams
-
- Returns:
stopBuild
public javax.ws.rs.core.Response stopBuild(java.lang.String projectKey,
java.lang.String buildKey,
int buildNumber)
Copyright © 2011 Atlassian. All Rights Reserved.