Class RapidViewManagerImpl

java.lang.Object
com.atlassian.greenhopper.manager.rapidview.RapidViewManagerImpl
All Implemented Interfaces:
GreenHopperCache, RapidViewManager

@Service public class RapidViewManagerImpl extends Object implements RapidViewManager, GreenHopperCache
  • Constructor Details

    • RapidViewManagerImpl

      public RapidViewManagerImpl()
  • Method Details

    • create

      public ServiceOutcome<RapidView> create(RapidView view, com.atlassian.jira.user.ApplicationUser user, RapidViewPreset preset)
      Description copied from interface: RapidViewManager
      Persist a new instance of a RapidBoard
      Specified by:
      create in interface RapidViewManager
      Returns:
      the created RapidView from cache or the error that occurred
    • create

      public ServiceOutcome<RapidView> create(com.atlassian.jira.user.ApplicationUser user, String name, Long filterId, RapidViewPreset preset)
      Description copied from interface: RapidViewManager
      Persist a new instance of a RapidBoard
      Specified by:
      create in interface RapidViewManager
      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

      public ServiceResult delete(RapidView view)
      Description copied from interface: RapidViewManager
      Delete the RapidView that is associated to the provided RapidView
      Specified by:
      delete in interface RapidViewManager
      Parameters:
      view - RapidView representing the rapid view to delete
      Returns:
      Void or the error that occurred
    • update

      public ServiceResult update(RapidView view)
      Description copied from interface: RapidViewManager
      Update a RapidView associated to the id of the provided RapidView after first checking that it is valid.
      Specified by:
      update in interface RapidViewManager
      Parameters:
      view - RapidView containing the id and updates (over-writing existing values) of the target RapidView
      Returns:
      Void or the error that occurred
    • getFirst

      Description copied from interface: RapidViewManager
      Return the first RapidView found after iterating over the entire list.
      Specified by:
      getFirst in interface RapidViewManager
      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

      Description copied from interface: RapidViewManager
      Get a list of all RapidViews that are visible for a permissionCheck
      Specified by:
      getAll in interface RapidViewManager
      Parameters:
      permissionCheck - a permissionCheck to perform to determine if a RapidView is visible
      Returns:
      a list of all visible rapid views
    • getAll

      public ServiceOutcome<List<RapidView>> getAll()
      Description copied from interface: RapidViewManager
      Get a list of all RapidViews that exist, regardless of any security considerations.
      Specified by:
      getAll in interface RapidViewManager
      Returns:
      a list of all rapid views
    • find

      public ServiceOutcome<Iterable<RapidView>> find(RapidViewSimpleQuery rapidViewSimpleQuery)
      Description copied from interface: RapidViewManager
      Get a list of all RapidViews which fulfil query constraints.
      Specified by:
      find in interface RapidViewManager
      Parameters:
      rapidViewSimpleQuery - which contains expectation to rapidViews.
      Returns:
      a filtered iterable of rapidView.
    • copy

      public ServiceOutcome<RapidView> copy(RapidView sourceRapidView, RapidView destinationRapidView, com.atlassian.jira.user.ApplicationUser creator)
      Description copied from interface: RapidViewManager
      Copy the contents of one RapidView into another
      Specified by:
      copy in interface RapidViewManager
      Parameters:
      sourceRapidView - the RapidView to copy
      destinationRapidView - the destination RapidView
      creator - the user creating this copy
      Returns:
      a copied RapidView
    • get

      public ServiceOutcome<RapidView> get(Long id)
      Description copied from interface: RapidViewManager
      Get a RapidBoard from cache directly
      Specified by:
      get in interface RapidViewManager
      Parameters:
      id - the id of the RapidBoard
      Returns:
      a Option containing the rapid board which may or may not contain a result
    • findByFilterId

      public List<RapidView> findByFilterId(long filterId)
      Description copied from interface: RapidViewManager
      Get a list of all RapidView objects that are configured to use the filter with the given id.
      Specified by:
      findByFilterId in interface RapidViewManager
      Parameters:
      filterId - id of the filter
      Returns:
      A list of all RapidView objects that are configured to use the filter with the given id.
    • flushCache

      public void flushCache()
      Description copied from interface: GreenHopperCache
      Invoked when all caches in the plugin need to be cleared.
      Specified by:
      flushCache in interface GreenHopperCache