com.atlassian.greenhopper.web.rapid.view
Class QuickFilterResource

java.lang.Object
  extended by com.atlassian.greenhopper.global.AbstractLoggable
      extended by com.atlassian.greenhopper.web.AbstractResource
          extended by com.atlassian.greenhopper.web.rapid.view.QuickFilterResource

public class QuickFilterResource
extends AbstractResource


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
QuickFilterResource(com.atlassian.jira.security.JiraAuthenticationContext authContext, QuickFilterHelper quickFilterHelper)
           
 
Method Summary
 javax.ws.rs.core.Response addQuickFilter(java.lang.Long rapidViewId, QuickFilterEntry editModel)
          Add a quick filter to the rapid view.
 javax.ws.rs.core.Response deleteQuickFilter(java.lang.Long rapidViewId, java.lang.Long id)
          Delete a rapid view
 javax.ws.rs.core.Response getQuickFilter(java.lang.Long rapidViewId, java.lang.Long id)
          Get the quick filter for a given rapidView and id
 javax.ws.rs.core.Response moveQuickFilter(java.lang.Long rapidViewId, java.lang.Long id, EntryMoveModel model)
          Modify a quick filters sequence within a rapidview.
 javax.ws.rs.core.Response updateQuickFilter(java.lang.Long rapidViewId, java.lang.Long id, QuickFilterEntry editModel)
          Update a quick filter given its id and the id of the rapid view it belongs to
 
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

QuickFilterResource

public QuickFilterResource(com.atlassian.jira.security.JiraAuthenticationContext authContext,
                           QuickFilterHelper quickFilterHelper)
Method Detail

getQuickFilter

public javax.ws.rs.core.Response getQuickFilter(java.lang.Long rapidViewId,
                                                java.lang.Long id)
Get the quick filter for a given rapidView and id


updateQuickFilter

public javax.ws.rs.core.Response updateQuickFilter(java.lang.Long rapidViewId,
                                                   java.lang.Long id,
                                                   QuickFilterEntry editModel)
Update a quick filter given its id and the id of the rapid view it belongs to


addQuickFilter

public javax.ws.rs.core.Response addQuickFilter(java.lang.Long rapidViewId,
                                                QuickFilterEntry editModel)
Add a quick filter to the rapid view. The quick filter is added as first quick filter in the list


deleteQuickFilter

public javax.ws.rs.core.Response deleteQuickFilter(java.lang.Long rapidViewId,
                                                   java.lang.Long id)
Delete a rapid view


moveQuickFilter

public javax.ws.rs.core.Response moveQuickFilter(java.lang.Long rapidViewId,
                                                 java.lang.Long id,
                                                 EntryMoveModel model)
Modify a quick filters sequence within a rapidview.

NOTE: We only implement position=FIRST and after=... parameters.

The alternative field value pairs:

position
An absolute position, which may have a value of 'First', 'Last', 'Earlier' or 'Later'
after
A version to place this version after. The value should be the self link of another version

NOTE: For this resource we only implement position=FIRST and after=... parameters.



Copyright © 2007-2012 Atlassian. All Rights Reserved.