com.atlassian.greenhopper.service.rapid.view
Class SwimlaneServiceImpl

java.lang.Object
  extended by com.atlassian.greenhopper.global.AbstractLoggable
      extended by com.atlassian.greenhopper.service.rapid.view.SwimlaneServiceImpl
All Implemented Interfaces:
SwimlaneService

@Service
public class SwimlaneServiceImpl
extends AbstractLoggable
implements SwimlaneService

Provides swimlanes configuration related functionality


Field Summary
 
Fields inherited from class com.atlassian.greenhopper.global.AbstractLoggable
logger
 
Fields inherited from interface com.atlassian.greenhopper.service.rapid.view.SwimlaneService
SWIMLANE_DEFAULT_LANE_ERROR_CONTEXT, SWIMLANE_DESCRIPTION_ERROR_CONTEXT, SWIMLANE_NAME_ERROR_CONTEXT, SWIMLANE_QUERY_ERROR_CONTEXT
 
Constructor Summary
SwimlaneServiceImpl()
           
 
Method Summary
 Swimlane add(com.atlassian.crowd.embedded.api.User user, RapidView rapidView, Swimlane swimlane, ErrorCollection errors)
          Adds a new swimlane
 java.util.List<Swimlane> copy(java.util.List<Swimlane> sourceSwimlanes)
          Copies the Swimlanes specified.
 void delete(com.atlassian.crowd.embedded.api.User user, RapidView rapidView, long swimlaneId, ErrorCollection errors)
          Delete a single swimlane
 void flushCache()
           
 Swimlane get(com.atlassian.crowd.embedded.api.User user, RapidView rapidView, long swimlaneId, ErrorCollection errors)
          Get a swimlane given its id
 java.util.Set<SwimlaneStrategy> getValidStrategies()
          Get all valid strategies
 void invalidate(RapidView rapidView)
           
 java.util.List<Swimlane> loadSwimlanes(RapidView rapidView)
           
 void moveBefore(com.atlassian.crowd.embedded.api.User user, RapidView rapidView, long swimlaneId, long moveToSwimlaneId, ErrorCollection errors)
          Moves a swimlane before another one
 void moveLast(com.atlassian.crowd.embedded.api.User user, RapidView rapidView, long swimlaneId, ErrorCollection errors)
          Moves a swimlane to the last spot
 java.util.List<Swimlane> replace(com.atlassian.crowd.embedded.api.User user, RapidView rapidView, java.util.List<Swimlane> swimlanes, ErrorCollection errors)
          Replaces all swimlanes for a given rapid view with the specified swimlanes (keeping the order in the list).
 Swimlane update(com.atlassian.crowd.embedded.api.User user, RapidView rapidView, Swimlane swimlane, ErrorCollection errors)
          Updates a single swimlane for a given rapidView
 
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

SwimlaneServiceImpl

public SwimlaneServiceImpl()
Method Detail

copy

public java.util.List<Swimlane> copy(java.util.List<Swimlane> sourceSwimlanes)
Description copied from interface: SwimlaneService
Copies the Swimlanes specified.

Specified by:
copy in interface SwimlaneService
Parameters:
sourceSwimlanes - the swimlanes to copy
Returns:
the swimlanes copied

getValidStrategies

public java.util.Set<SwimlaneStrategy> getValidStrategies()
Description copied from interface: SwimlaneService
Get all valid strategies

Specified by:
getValidStrategies in interface SwimlaneService

loadSwimlanes

public java.util.List<Swimlane> loadSwimlanes(RapidView rapidView)
Specified by:
loadSwimlanes in interface SwimlaneService

get

public Swimlane get(com.atlassian.crowd.embedded.api.User user,
                    RapidView rapidView,
                    long swimlaneId,
                    ErrorCollection errors)
Description copied from interface: SwimlaneService
Get a swimlane given its id

Specified by:
get in interface SwimlaneService

add

public Swimlane add(com.atlassian.crowd.embedded.api.User user,
                    RapidView rapidView,
                    Swimlane swimlane,
                    ErrorCollection errors)
Adds a new swimlane

Specified by:
add in interface SwimlaneService

update

public Swimlane update(com.atlassian.crowd.embedded.api.User user,
                       RapidView rapidView,
                       Swimlane swimlane,
                       ErrorCollection errors)
Updates a single swimlane for a given rapidView

Specified by:
update in interface SwimlaneService

replace

public java.util.List<Swimlane> replace(com.atlassian.crowd.embedded.api.User user,
                                        RapidView rapidView,
                                        java.util.List<Swimlane> swimlanes,
                                        ErrorCollection errors)
Description copied from interface: SwimlaneService
Replaces all swimlanes for a given rapid view with the specified swimlanes (keeping the order in the list). The default swimlane must be contained in the list of swimlanes, otherwise an error is returned.

Specified by:
replace in interface SwimlaneService

delete

public void delete(com.atlassian.crowd.embedded.api.User user,
                   RapidView rapidView,
                   long swimlaneId,
                   ErrorCollection errors)
Delete a single swimlane

Specified by:
delete in interface SwimlaneService

moveBefore

public void moveBefore(com.atlassian.crowd.embedded.api.User user,
                       RapidView rapidView,
                       long swimlaneId,
                       long moveToSwimlaneId,
                       ErrorCollection errors)
Moves a swimlane before another one

Specified by:
moveBefore in interface SwimlaneService

moveLast

public void moveLast(com.atlassian.crowd.embedded.api.User user,
                     RapidView rapidView,
                     long swimlaneId,
                     ErrorCollection errors)
Moves a swimlane to the last spot

Specified by:
moveLast in interface SwimlaneService

invalidate

public void invalidate(RapidView rapidView)
Specified by:
invalidate in interface SwimlaneService

flushCache

public void flushCache()
Specified by:
flushCache in interface SwimlaneService


Copyright © 2007-2012 Atlassian. All Rights Reserved.