Package org.opencms.db.userpublishlist
Class CmsPublishListResourceState
java.lang.Object
org.opencms.db.userpublishlist.CmsPublishListResourceState
Keeps track of publish list changes for a single resource.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds a removal from the publish list for the given user id.void
Adds an update for the publish list for the given user id.Gets the users from whose publish list the resource should be removed.long
getTimestamp
(CmsUUID userId) Gets the log timestamp for the given user id.Gets the users to whose publish list the resource should be addedboolean
Returns true if the structure id should be removed for all users.void
Sets the 'remove all' status to 'true'.
-
Constructor Details
-
CmsPublishListResourceState
public CmsPublishListResourceState()
-
-
Method Details
-
addRemove
Adds a removal from the publish list for the given user id.- Parameters:
userId
- a user id
-
addUpdate
Adds an update for the publish list for the given user id.- Parameters:
userId
- a user idtimestamp
- the change timestamp
-
getRemoveUsers
Gets the users from whose publish list the resource should be removed.- Returns:
- list of user ids
-
getTimestamp
Gets the log timestamp for the given user id.- Parameters:
userId
- the user id- Returns:
- the timestamp for the change with the given user id
-
getUpdateUsers
Gets the users to whose publish list the resource should be added- Returns:
- list of user ids
-
isRemoveAll
Returns true if the structure id should be removed for all users.- Returns:
- true if resource should be removed from all publish lists
-
setRemoveAll
Sets the 'remove all' status to 'true'.All collected changes/removals done before this will be discarded. Changes/removals done after this will not clear the removeAll status.
-