Interface SwimlaneService
- All Superinterfaces:
GreenHopperCache
- All Known Implementing Classes:
SwimlaneServiceImpl
Provides swimlanes configuration related functionality
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionAdds a new swimlanevoid
delete
(com.atlassian.jira.user.ApplicationUser user, RapidView rapidView, long swimlaneId, ErrorCollection errors) Delete a single swimlaneget
(com.atlassian.jira.user.ApplicationUser user, RapidView rapidView, long swimlaneId, ErrorCollection errors) Get a swimlane given its idGet all valid strategiesvoid
invalidate
(RapidView rapidView) loadSwimlanes
(RapidView rapidView) moveAfter
(com.atlassian.jira.user.ApplicationUser user, RapidView rapidView, long swimlaneId, Long moveToSwimlaneIds) replace
(com.atlassian.jira.user.ApplicationUser user, RapidView rapidView, List<Swimlane> swimlanes) Replaces all swimlanes for a given rapid view with the specified swimlanes (keeping the order in the list).update
(com.atlassian.jira.user.ApplicationUser user, RapidView rapidView, Swimlane swimlane, ErrorCollection errors) Updates a single swimlane for a given rapidViewMethods inherited from interface com.atlassian.greenhopper.manager.GreenHopperCache
flushCache
-
Field Details
-
SWIMLANE_NAME_ERROR_CONTEXT
- See Also:
-
SWIMLANE_QUERY_ERROR_CONTEXT
- See Also:
-
SWIMLANE_DESCRIPTION_ERROR_CONTEXT
- See Also:
-
SWIMLANE_DEFAULT_LANE_ERROR_CONTEXT
- See Also:
-
-
Method Details
-
getValidStrategies
Set<SwimlaneStrategy> getValidStrategies()Get all valid strategies -
loadSwimlanes
-
get
Swimlane get(com.atlassian.jira.user.ApplicationUser user, RapidView rapidView, long swimlaneId, ErrorCollection errors) Get a swimlane given its id -
add
@Transactional ServiceOutcome<Swimlane> add(com.atlassian.jira.user.ApplicationUser user, RapidView rapidView, Swimlane swimlane) Adds a new swimlane -
update
@Transactional Swimlane update(com.atlassian.jira.user.ApplicationUser user, RapidView rapidView, Swimlane swimlane, ErrorCollection errors) Updates a single swimlane for a given rapidView -
replace
@Transactional ServiceOutcome<List<Swimlane>> replace(com.atlassian.jira.user.ApplicationUser user, RapidView rapidView, List<Swimlane> swimlanes) 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. -
delete
@Transactional void delete(com.atlassian.jira.user.ApplicationUser user, RapidView rapidView, long swimlaneId, ErrorCollection errors) Delete a single swimlane -
moveAfter
@Transactional ServiceResult moveAfter(com.atlassian.jira.user.ApplicationUser user, RapidView rapidView, long swimlaneId, Long moveToSwimlaneIds) - Parameters:
user
- the user doing the moverapidView
- the swimlane is associated withswimlaneId
- the id of the swimlane being movedmoveToSwimlaneIds
- the id of the swimlane to move the target swimlane after. Ifnull
moves the swimlane to the start- Returns:
- whether or not the move was successful
-
invalidate
-