Class CardLayoutManagerImpl
java.lang.Object
com.atlassian.greenhopper.manager.cardlayout.CardLayoutManagerImpl
- All Implemented Interfaces:
CardLayoutManager
,GreenHopperCache
Manager for card layouts.
- Since:
- v6.5
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadd
(RapidView rapidView, CardLayoutField cardLayoutFieldToAdd) Add a card layout field at the beginning of the card layout field configuration for a specific board.Copy card layout from source rapid view to target rapid viewRemove a given layout configuration item.void
Invoked when all caches in the plugin need to be cleared.Return a list of card layout fields for a given board.void
init()
void
invalidate
(RapidView view) invalidates the cache entry for a given rapid view.moveAfter
(RapidView rapidView, long cardLayoutFieldId, io.atlassian.fugue.Option<Long> optionalFieldIdToMoveAfter) Move a field after another field.
-
Constructor Details
-
CardLayoutManagerImpl
public CardLayoutManagerImpl()
-
-
Method Details
-
init
@PostConstruct public void init() -
getAll
Description copied from interface:CardLayoutManager
Return a list of card layout fields for a given board.- Specified by:
getAll
in interfaceCardLayoutManager
- Parameters:
rapidView
- is the board- Returns:
- a list of card layout fields
-
add
public ServiceOutcome<CardLayoutField> add(RapidView rapidView, CardLayoutField cardLayoutFieldToAdd) Description copied from interface:CardLayoutManager
Add a card layout field at the beginning of the card layout field configuration for a specific board.- Specified by:
add
in interfaceCardLayoutManager
- Parameters:
rapidView
- is the board configurationcardLayoutFieldToAdd
- is the card layout field to be added- Returns:
- service outcome
-
delete
Description copied from interface:CardLayoutManager
Remove a given layout configuration item.- Specified by:
delete
in interfaceCardLayoutManager
- Parameters:
rapidView
- the rapid viewcardLayoutFieldId
- the item id- Returns:
- nothing
-
moveAfter
public ServiceResult moveAfter(RapidView rapidView, long cardLayoutFieldId, io.atlassian.fugue.Option<Long> optionalFieldIdToMoveAfter) Description copied from interface:CardLayoutManager
Move a field after another field.- Specified by:
moveAfter
in interfaceCardLayoutManager
- Parameters:
rapidView
- the rapid viewcardLayoutFieldId
- the field Id to moveoptionalFieldIdToMoveAfter
- the field to move after, or when empty then move to beginning- Returns:
-
copy
public ServiceOutcome<List<CardLayoutField>> copy(RapidView sourceRapidView, RapidView targetRapidView) Description copied from interface:CardLayoutManager
Copy card layout from source rapid view to target rapid view- Specified by:
copy
in interfaceCardLayoutManager
- Parameters:
sourceRapidView
- the sourceRapidView
targetRapidView
- the targetRapidView
to copy to- Returns:
ServiceOutcome
-
invalidate
Description copied from interface:CardLayoutManager
invalidates the cache entry for a given rapid view.- Specified by:
invalidate
in interfaceCardLayoutManager
-
flushCache
public void flushCache()Description copied from interface:GreenHopperCache
Invoked when all caches in the plugin need to be cleared.- Specified by:
flushCache
in interfaceGreenHopperCache
-