public class

UserHistoryHelper

extends Object
java.lang.Object
   ↳ com.atlassian.confluence.user.history.UserHistoryHelper

Class Overview

Provides methods for retrieving and processing UserHistory objects.

Summary

Public Constructors
UserHistoryHelper(User remoteUser, ContentEntityManager contentEntityManager, PermissionManager permissionManager)
Public Methods
List<ContentEntityObject> getHistoryContent(int maxResults, ContentTypeEnum... requestedTypes)
Returns user history ContentEntityObjects, filtered to only include the requested types.
List<ContentEntityObject> getHistoryContent(ContentTypeEnum... requestedTypes)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public UserHistoryHelper (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

Public Methods

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

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