Interface RapidViewManager
- All Superinterfaces:
GreenHopperCache
- All Known Implementing Classes:
RapidViewManagerImpl
For operating on RapidView objects
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface
Type of permission check that tests the visibility of a RapidBoard -
Method Summary
Modifier and TypeMethodDescriptioncopy
(RapidView sourceRapidView, RapidView destinationRapidView, com.atlassian.jira.user.ApplicationUser creator) Copy the contents of one RapidView into anothercreate
(RapidView view, com.atlassian.jira.user.ApplicationUser user, RapidViewPreset preset) Persist a new instance of a RapidBoardcreate
(com.atlassian.jira.user.ApplicationUser user, String name, Long filterId, RapidViewPreset preset) Persist a new instance of a RapidBoardDelete the RapidView that is associated to the provided RapidViewfind
(RapidViewSimpleQuery rapidViewQuery) Get a list of all RapidViews which fulfil query constraints.findByFilterId
(long filterId) Get a list of all RapidView objects that are configured to use the filter with the given id.Get a RapidBoard from cache directlygetAll()
Get a list of all RapidViews that exist, regardless of any security considerations.getAll
(RapidViewManager.RapidViewPermissionCheck permissionCheck) Get a list of all RapidViews that are visible for a permissionCheckgetFirst
(RapidViewManager.RapidViewPermissionCheck permissionCheck) Return the first RapidView found after iterating over the entire list.Update a RapidView associated to the id of the provided RapidView after first checking that it is valid.Methods inherited from interface com.atlassian.greenhopper.manager.GreenHopperCache
flushCache
-
Method Details
-
create
@Transactional ServiceOutcome<RapidView> create(RapidView view, com.atlassian.jira.user.ApplicationUser user, RapidViewPreset preset) Persist a new instance of a RapidBoard- Returns:
- the created RapidView from cache or the error that occurred
-
create
ServiceOutcome<RapidView> create(com.atlassian.jira.user.ApplicationUser user, String name, Long filterId, RapidViewPreset preset) Persist a new instance of a RapidBoard- Parameters:
user
- the user who is performing operation and whose permissions are checked. Null means anonymous access.name
- the name of the board.filterId
- the ID of JIRA's SearchRequest that is to be associated with the new view.preset
- the param which determine initial settings of created rapid view.- Returns:
- a created rapid view or error if operation failed.
-
delete
Delete the RapidView that is associated to the provided RapidView- Parameters:
view
- RapidView representing the rapid view to delete- Returns:
- Void or the error that occurred
-
update
Update a RapidView associated to the id of the provided RapidView after first checking that it is valid.- Parameters:
view
- RapidView containing the id and updates (over-writing existing values) of the target RapidView- Returns:
- Void or the error that occurred
-
copy
@Transactional ServiceOutcome<RapidView> copy(RapidView sourceRapidView, RapidView destinationRapidView, com.atlassian.jira.user.ApplicationUser creator) Copy the contents of one RapidView into another- Parameters:
creator
- the user creating this copysourceRapidView
- the RapidView to copydestinationRapidView
- the destination RapidView- Returns:
- a copied RapidView
-
getFirst
Return the first RapidView found after iterating over the entire list.- Parameters:
permissionCheck
- a permission check to perform to determine whether a RapidBoard should be included- Returns:
- a RapidView that is the first visible RapidView based on the permissionCheck
-
getAll
Get a list of all RapidViews that are visible for a permissionCheck- Parameters:
permissionCheck
- a permissionCheck to perform to determine if a RapidView is visible- Returns:
- a list of all visible rapid views
-
getAll
ServiceOutcome<List<RapidView>> getAll()Get a list of all RapidViews that exist, regardless of any security considerations.- Returns:
- a list of all rapid views
-
find
Get a list of all RapidViews which fulfil query constraints.- Parameters:
rapidViewQuery
- which contains expectation to rapidViews.- Returns:
- a filtered iterable of rapidView.
-
get
Get a RapidBoard from cache directly- Parameters:
id
- the id of the RapidBoard- Returns:
- a Option containing the rapid board which may or may not contain a result
-
findByFilterId
Get a list of all RapidView objects that are configured to use the filter with the given id.- Parameters:
filterId
- id of the filter- Returns:
- A list of all RapidView objects that are configured to use the filter with the given id.
-