com.atlassian.greenhopper.web.api
Class RankResource

java.lang.Object
  extended by com.atlassian.greenhopper.global.AbstractLoggable
      extended by com.atlassian.greenhopper.web.AbstractResource
          extended by com.atlassian.greenhopper.web.api.RankResource

public class RankResource
extends AbstractResource

TODO

Since:
v5.8.1
Author:
mtokar

Field Summary
 
Fields inherited from class com.atlassian.greenhopper.web.AbstractResource
HTTP_HEADER_GREENHOPPER_GADGET
 
Fields inherited from class com.atlassian.greenhopper.global.AbstractLoggable
logger
 
Constructor Summary
RankResource(RankHelper rankHelper)
           
 
Method Summary
 javax.ws.rs.core.Response rankAfter(RankAfterRequest rankAfterRequest)
          Attempts to rank issues after a specified issue, using the specified global rank custom field, via PUT method.
 javax.ws.rs.core.Response rankBefore(RankBeforeRequest rankBeforeRequest)
          Attempts to rank issues before a specified issue, using the specified global rank custom field, via PUT method.
 
Methods inherited from class com.atlassian.greenhopper.web.AbstractResource
check, createErrorResponse, createFromServiceOutcome, createNoContentResponse, createOkResponse, createOkResponse, getUser, isGadgetRequest, nullSafe, response
 
Methods inherited from class com.atlassian.greenhopper.global.AbstractLoggable
logDebug, logError, logException, logInfo, logTrace, logWarn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RankResource

public RankResource(RankHelper rankHelper)
Method Detail

rankBefore

public javax.ws.rs.core.Response rankBefore(RankBeforeRequest rankBeforeRequest)
Attempts to rank issues before a specified issue, using the specified global rank custom field, via PUT method.

Issues can be specified using IDs or Keys. If both are specified, IDs will take precedence.

If the user does not have permission to rank any of the specified issues, no ranking operations will take place.

The specified custom field ID must refer to a Global Rank custom field.

Parameters:
rankBeforeRequest - the encoded request in application/json format
Returns:
nothing if successful; errors otherwise.

rankAfter

public javax.ws.rs.core.Response rankAfter(RankAfterRequest rankAfterRequest)
Attempts to rank issues after a specified issue, using the specified global rank custom field, via PUT method.

Issues can be specified using IDs or Keys. If both are specified, IDs will take precedence.

If the user does not have permission to rank any of the specified issues, no ranking operations will take place.

The specified custom field ID must refer to a Global Rank custom field.

Parameters:
rankAfterRequest - the encoded request in application/json format
Returns:
nothing if successful; errors otherwise.


Copyright © 2007-2012 Atlassian. All Rights Reserved.