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.voidInvoked when all caches in the plugin need to be cleared.Return a list of card layout fields for a given board.voidinit()voidinvalidate(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:CardLayoutManagerReturn a list of card layout fields for a given board.- Specified by:
getAllin 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:CardLayoutManagerAdd a card layout field at the beginning of the card layout field configuration for a specific board.- Specified by:
addin interfaceCardLayoutManager- Parameters:
rapidView- is the board configurationcardLayoutFieldToAdd- is the card layout field to be added- Returns:
- service outcome
-
delete
Description copied from interface:CardLayoutManagerRemove a given layout configuration item.- Specified by:
deletein 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:CardLayoutManagerMove a field after another field.- Specified by:
moveAfterin 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:CardLayoutManagerCopy card layout from source rapid view to target rapid view- Specified by:
copyin interfaceCardLayoutManager- Parameters:
sourceRapidView- the sourceRapidViewtargetRapidView- the targetRapidViewto copy to- Returns:
ServiceOutcome
-
invalidate
Description copied from interface:CardLayoutManagerinvalidates the cache entry for a given rapid view.- Specified by:
invalidatein interfaceCardLayoutManager
-
flushCache
public void flushCache()Description copied from interface:GreenHopperCacheInvoked when all caches in the plugin need to be cleared.- Specified by:
flushCachein interfaceGreenHopperCache
-