com.atlassian.confluence.user.history
Class UserHistoryHelper

java.lang.Object
  extended by com.atlassian.confluence.user.history.UserHistoryHelper

public class UserHistoryHelper
extends Object

Provides methods for retrieving and processing UserHistory objects.


Constructor Summary
UserHistoryHelper(com.atlassian.user.User remoteUser, ContentEntityManager contentEntityManager, PermissionManager permissionManager)
           
 
Method Summary
 List<ContentEntityObject> getHistoryContent(ContentTypeEnum... requestedTypes)
           
 List<ContentEntityObject> getHistoryContent(int maxResults, ContentTypeEnum... requestedTypes)
          Returns user history ContentEntityObjects, filtered to only include the requested types.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserHistoryHelper

public UserHistoryHelper(com.atlassian.user.User remoteUser,
                         ContentEntityManager contentEntityManager,
                         PermissionManager permissionManager)
Parameters:
contentEntityManager - a ContentEntityManager to retrieve the ContentEntityObjects by Id. WARNING : Must not be a DefaultPageManager due to CONF-17972
Method Detail

getHistoryContent

public List<ContentEntityObject> getHistoryContent(int maxResults,
                                                   ContentTypeEnum... requestedTypes)
Returns user history ContentEntityObjects, filtered to only include the requested types. If requestedTypes is empty returns all objects.

Parameters:
maxResults - the maximum number of history objects to return
requestedTypes - array of ContentTypeEnums to filter on. If empty no filtering is done.
Returns:
a list of ContentEntityObjects of the requested types

getHistoryContent

public List<ContentEntityObject> getHistoryContent(ContentTypeEnum... requestedTypes)


Copyright © 2003–2015 Atlassian. All rights reserved.