com.atlassian.greenhopper.service.rapid
Interface RapidViewHistoryService

All Known Implementing Classes:
RapidViewHistoryServiceImpl

public interface RapidViewHistoryService

Stores recently viewed rapid view ids for a given user.


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
 

Method Detail

storeRapidView

void storeRapidView(@Nullable
                    com.atlassian.crowd.embedded.api.User user,
                    RapidView rapidView)
Store a rapid view in the history

Parameters:
user - the user to find; may be null

getAllRecentViews

@NotNull
java.util.List<RapidView> getAllRecentViews(@Nullable
                                                    com.atlassian.crowd.embedded.api.User user)
Get the most recent rapid view id

Parameters:
user - the user to find; may be null
Returns:
a list of views

getRecentViews

@NotNull
java.util.List<RapidView> getRecentViews(@Nullable
                                                 com.atlassian.crowd.embedded.api.User user,
                                                 int count)
Get the number of recent views for the specified user

Parameters:
user - the user to find; may be null
count - the number of recent views to return
Returns:
a list of views

getMostRecent

RapidView getMostRecent(com.atlassian.crowd.embedded.api.User user)
Get the most recent rapid view

Parameters:
user - the user to find; may be null
Returns:
a view or null if none found


Copyright © 2007-2012 Atlassian. All Rights Reserved.