Class UserHistoryHelper
- java.lang.Object
-
- com.atlassian.confluence.user.history.UserHistoryHelper
-
public class UserHistoryHelper extends Object
Provides methods for retrieving and processingUserHistory
objects.
-
-
Constructor Summary
Constructors Constructor Description UserHistoryHelper(com.atlassian.user.User remoteUser, ContentEntityManager contentEntityManager, PermissionManager permissionManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<ContentEntityObject>
getHistoryContent(int maxResults, ContentTypeEnum... requestedTypes)
Returns user historyContentEntityObject
s, filtered to only include the requested types.List<ContentEntityObject>
getHistoryContent(ContentTypeEnum... requestedTypes)
-
-
-
Constructor Detail
-
UserHistoryHelper
public UserHistoryHelper(com.atlassian.user.User remoteUser, ContentEntityManager contentEntityManager, PermissionManager permissionManager)
- Parameters:
contentEntityManager
- a ContentEntityManager to retrieve the ContentEntityObjects by Id.
-
-
Method Detail
-
getHistoryContent
public List<ContentEntityObject> getHistoryContent(int maxResults, ContentTypeEnum... requestedTypes)
Returns user historyContentEntityObject
s, filtered to only include the requested types. If requestedTypes is empty returns all objects.- Parameters:
maxResults
- the maximum number of history objects to returnrequestedTypes
- array ofContentTypeEnum
s to filter on. If empty no filtering is done.- Returns:
- a list of
ContentEntityObject
s of the requested types
-
getHistoryContent
public List<ContentEntityObject> getHistoryContent(ContentTypeEnum... requestedTypes)
-
-