com.atlassian.greenhopper.service.rapid
Class RapidViewHistoryServiceImpl

java.lang.Object
  extended by com.atlassian.greenhopper.global.AbstractLoggable
      extended by com.atlassian.greenhopper.service.rapid.RapidViewHistoryServiceImpl
All Implemented Interfaces:
RapidViewHistoryService

@Service
public class RapidViewHistoryServiceImpl
extends AbstractLoggable
implements RapidViewHistoryService

Implementation of RapidViewHistoryService Users UserHistoryManager under the covers

Since:
5.10.3

Field Summary
 
Fields inherited from class com.atlassian.greenhopper.global.AbstractLoggable
logger
 
Constructor Summary
RapidViewHistoryServiceImpl()
           
 
Method Summary
 java.util.List<RapidView> getAllRecentViews(com.atlassian.crowd.embedded.api.User user)
          Get the most recent rapid view id
 RapidView getMostRecent(com.atlassian.crowd.embedded.api.User user)
          Get the most recent rapid view
 java.util.List<RapidView> getRecentViews(com.atlassian.crowd.embedded.api.User user, int count)
          Get the number of recent views for the specified user
 void storeRapidView(com.atlassian.crowd.embedded.api.User user, RapidView rapidView)
          Store a rapid view in the history
 
Methods inherited from class com.atlassian.greenhopper.global.AbstractLoggable
logDebug, logError, logException, logInfo, logTrace, logWarn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RapidViewHistoryServiceImpl

public RapidViewHistoryServiceImpl()
Method Detail

storeRapidView

public void storeRapidView(com.atlassian.crowd.embedded.api.User user,
                           RapidView rapidView)
Description copied from interface: RapidViewHistoryService
Store a rapid view in the history

Specified by:
storeRapidView in interface RapidViewHistoryService
Parameters:
user - the user to find; may be null

getAllRecentViews

public java.util.List<RapidView> getAllRecentViews(@Nullable
                                                   com.atlassian.crowd.embedded.api.User user)
Description copied from interface: RapidViewHistoryService
Get the most recent rapid view id

Specified by:
getAllRecentViews in interface RapidViewHistoryService
Parameters:
user - the user to find; may be null
Returns:
a list of views

getRecentViews

public java.util.List<RapidView> getRecentViews(com.atlassian.crowd.embedded.api.User user,
                                                int count)
Description copied from interface: RapidViewHistoryService
Get the number of recent views for the specified user

Specified by:
getRecentViews in interface RapidViewHistoryService
Parameters:
user - the user to find; may be null
count - the number of recent views to return
Returns:
a list of views

getMostRecent

public RapidView getMostRecent(com.atlassian.crowd.embedded.api.User user)
Description copied from interface: RapidViewHistoryService
Get the most recent rapid view

Specified by:
getMostRecent in interface RapidViewHistoryService
Parameters:
user - the user to find; may be null
Returns:
a view or null if none found


Copyright © 2007-2012 Atlassian. All Rights Reserved.