com.atlassian.greenhopper.service.rapid.view
Interface QuickFilterService

All Superinterfaces:
GreenHopperCache
All Known Implementing Classes:
QuickFilterServiceImpl

public interface QuickFilterService
extends GreenHopperCache

Provides quick filter configuration related functionality


Field Summary
static java.lang.String QUICK_FILTER_DESCRIPTION_ERROR_CONTEXT
           
static java.lang.String QUICK_FILTER_NAME_ERROR_CONTEXT
           
static java.lang.String QUICK_FILTER_QUERY_ERROR_CONTEXT
           
 
Method Summary
 ServiceOutcome<QuickFilter> add(com.atlassian.crowd.embedded.api.User user, RapidView rapidView, QuickFilter quickFilter)
          Adds a new quick filter
 java.util.List<QuickFilter> copy(java.util.List<QuickFilter> sourceQuickFilters)
          Copies the specified quick filters
 void delete(com.atlassian.crowd.embedded.api.User user, RapidView rapidView, long quickFilterId, ErrorCollection errors)
          Delete a single quick filter
 QuickFilter get(com.atlassian.crowd.embedded.api.User user, RapidView rapidView, long quickFilterId, ErrorCollection errors)
          gets the quick filter with id quickFilterId for rapid view with rapidViewId
 void invalidate(RapidView view)
          invalidates the cache entry for a given RV, should only be called by other services.
 java.util.List<QuickFilter> loadQuickFilters(RapidView rapidView)
           
 void moveBefore(com.atlassian.crowd.embedded.api.User user, RapidView rapidView, long quickFilterId, long moveToQuickFilterId, ErrorCollection errors)
          Moves a quick filter before another one
 void moveLast(com.atlassian.crowd.embedded.api.User user, RapidView rapidView, long quickFilterId, ErrorCollection errors)
          Moves a quick filter to the last spot
 ServiceOutcome<java.util.List<QuickFilter>> set(com.atlassian.crowd.embedded.api.User user, RapidView rapidView, java.util.List<QuickFilter> quickFilters)
          Replaces all quick filters for a given rapid view with the specified quick filters (keeping the order in the list)
 QuickFilter update(com.atlassian.crowd.embedded.api.User user, RapidView rapidView, QuickFilter quickFilter, ErrorCollection errors)
          Updates a single quick filter for the given rapidview
 
Methods inherited from interface com.atlassian.greenhopper.manager.GreenHopperCache
flushCache
 

Field Detail

QUICK_FILTER_NAME_ERROR_CONTEXT

static final java.lang.String QUICK_FILTER_NAME_ERROR_CONTEXT
See Also:
Constant Field Values

QUICK_FILTER_QUERY_ERROR_CONTEXT

static final java.lang.String QUICK_FILTER_QUERY_ERROR_CONTEXT
See Also:
Constant Field Values

QUICK_FILTER_DESCRIPTION_ERROR_CONTEXT

static final java.lang.String QUICK_FILTER_DESCRIPTION_ERROR_CONTEXT
See Also:
Constant Field Values
Method Detail

loadQuickFilters

java.util.List<QuickFilter> loadQuickFilters(RapidView rapidView)

copy

@Transactional
java.util.List<QuickFilter> copy(java.util.List<QuickFilter> sourceQuickFilters)
Copies the specified quick filters

Parameters:
sourceQuickFilters - the quick filters to copy
Returns:
the quick filters copied

get

QuickFilter get(com.atlassian.crowd.embedded.api.User user,
                RapidView rapidView,
                long quickFilterId,
                ErrorCollection errors)
gets the quick filter with id quickFilterId for rapid view with rapidViewId


add

@Transactional
ServiceOutcome<QuickFilter> add(com.atlassian.crowd.embedded.api.User user,
                                              RapidView rapidView,
                                              QuickFilter quickFilter)
Adds a new quick filter


update

@Transactional
QuickFilter update(com.atlassian.crowd.embedded.api.User user,
                                 RapidView rapidView,
                                 QuickFilter quickFilter,
                                 ErrorCollection errors)
Updates a single quick filter for the given rapidview


set

@Transactional
ServiceOutcome<java.util.List<QuickFilter>> set(com.atlassian.crowd.embedded.api.User user,
                                                              RapidView rapidView,
                                                              java.util.List<QuickFilter> quickFilters)
Replaces all quick filters for a given rapid view with the specified quick filters (keeping the order in the list)


delete

@Transactional
void delete(com.atlassian.crowd.embedded.api.User user,
                          RapidView rapidView,
                          long quickFilterId,
                          ErrorCollection errors)
Delete a single quick filter


moveBefore

@Transactional
void moveBefore(com.atlassian.crowd.embedded.api.User user,
                              RapidView rapidView,
                              long quickFilterId,
                              long moveToQuickFilterId,
                              ErrorCollection errors)
Moves a quick filter before another one


moveLast

@Transactional
void moveLast(com.atlassian.crowd.embedded.api.User user,
                            RapidView rapidView,
                            long quickFilterId,
                            ErrorCollection errors)
Moves a quick filter to the last spot


invalidate

void invalidate(RapidView view)
invalidates the cache entry for a given RV, should only be called by other services. Ideally, the cache should be in a manager which lies between the service and dao



Copyright © 2007-2012 Atlassian. All Rights Reserved.