com.atlassian.confluence.user.history
Class UserHistoryHelper
java.lang.Object
com.atlassian.confluence.user.history.UserHistoryHelper
public class UserHistoryHelper
- extends java.lang.Object
Provides methods for retrieving and processing UserHistory
objects.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
getHistoryContent
public java.util.List<ContentEntityObject> getHistoryContent(int maxResults,
ContentTypeEnum... requestedTypes)
- Returns user history
ContentEntityObject
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 of ContentTypeEnum
s to filter on. If empty no filtering is done.
- Returns:
- a list of
ContentEntityObject
s of the requested types
getHistoryContent
public java.util.List<ContentEntityObject> getHistoryContent(ContentTypeEnum... requestedTypes)
Copyright © 2003-2011 Atlassian. All Rights Reserved.