public class CmsAliasEditorLockTable
extends java.lang.Object
It consists of a table from site roots to users. The entries of the table will be removed if they haven't been updated in a given interval of time, but can also be removed manually.
限定符和类型 | 字段和说明 |
---|---|
static long |
TIMEOUT_INTERVAL
The interval after which a lock which has not been updated will be removed.
|
构造器和说明 |
---|
CmsAliasEditorLockTable()
Creates a new lock table instance.
|
限定符和类型 | 方法和说明 |
---|---|
void |
clear(CmsObject cms,
java.lang.String siteRoot)
Clears the entry for a given site root, but only if the user from the given CMS context matches the user in the entry.
|
CmsUser |
update(CmsObject cms,
java.lang.String siteRoot)
Tries to update or create an entry for the given user/site root combination.
|
public static final long TIMEOUT_INTERVAL
public void clear(CmsObject cms, java.lang.String siteRoot)
cms
- the current CMS contextsiteRoot
- the site root for which the entry should be clearedpublic CmsUser update(CmsObject cms, java.lang.String siteRoot)
If this method succeeds, it will return null, but if another user has created an entry for the site root, it will return that user.
cms
- the current CMS contextsiteRoot
- the site root