public final class CmsLockFilter
extends java.lang.Object
implements java.lang.Cloneable
限定符和类型 | 字段和说明 |
---|---|
static CmsLockFilter |
FILTER_ALL
To filter all locks.
|
static CmsLockFilter |
FILTER_INHERITED
To filter all inherited locks.
|
static CmsLockFilter |
FILTER_NON_INHERITED
To filter all non inherited locks.
|
限定符和类型 | 方法和说明 |
---|---|
java.lang.Object |
clone() |
CmsLockFilter |
filterIncludeChildren()
Returns an extended filter that will extend the result to the given path and all its children.
|
CmsLockFilter |
filterIncludeParents()
Returns an extended filter that will extend the result to the given path and all its parents.
|
CmsLockFilter |
filterLockableByUser(CmsUser user)
Returns an extended filter with the given user restriction.
|
CmsLockFilter |
filterNotLockableByUser(CmsUser user)
Returns an extended filter with the given user restriction.
|
CmsLockFilter |
filterNotOwnedByUserId(CmsUUID userId)
Returns an extended filter with the given user restriction.
|
CmsLockFilter |
filterOwnedByUserId(CmsUUID userId)
Returns an extended filter with the given user restriction.
|
CmsLockFilter |
filterProject(CmsUUID projectId)
Returns an extended filter with the given project restriction.
|
CmsLockFilter |
filterSharedExclusive()
Returns an extended filter that also matches shared exclusive locks (siblings).
|
CmsLockFilter |
filterType(CmsLockType type)
Returns an extended filter with the given type restriction.
|
CmsUser |
getLockableByUserId()
Returns the user that can overwrite the locks.
|
CmsUser |
getNotLockableByUserId()
Returns the user that can not overwrite the locks.
|
CmsUUID |
getNotOwnedByUserId()
Returns the user that has not to own the locks.
|
CmsUUID |
getOwnedByUserId()
Returns the user that has to own the locks.
|
CmsUUID |
getProjectId()
Returns the project restriction.
|
java.util.Set<CmsLockType> |
getTypes()
Returns the types to filter.
|
boolean |
isIncludeChildren()
Returns the include children flag.
|
boolean |
isIncludeParent()
Returns the include parents flag.
|
boolean |
isSharedExclusive()
Returns the
true if this filter also matches shared exclusive locks. |
boolean |
match(java.lang.String rootPath,
CmsLock lock)
Matches the given lock against this filter and the given path.
|
java.lang.String |
toString() |
public static final CmsLockFilter FILTER_ALL
public static final CmsLockFilter FILTER_INHERITED
public static final CmsLockFilter FILTER_NON_INHERITED
public java.lang.Object clone()
clone
在类中 java.lang.Object
Object.clone()
public CmsLockFilter filterNotOwnedByUserId(CmsUUID userId)
userId
- the user id to filterpublic CmsLockFilter filterNotLockableByUser(CmsUser user)
user
- the user to filterpublic CmsLockFilter filterLockableByUser(CmsUser user)
user
- the user to filterpublic CmsLockFilter filterIncludeChildren()
public CmsLockFilter filterOwnedByUserId(CmsUUID userId)
userId
- the user id to filterpublic CmsLockFilter filterIncludeParents()
public CmsLockFilter filterProject(CmsUUID projectId)
projectId
- the project to filter the locks withpublic CmsLockFilter filterSharedExclusive()
public CmsLockFilter filterType(CmsLockType type)
type
- the lock type to filterpublic CmsUUID getOwnedByUserId()
public CmsUUID getNotOwnedByUserId()
public CmsUser getLockableByUserId()
public CmsUser getNotLockableByUserId()
public CmsUUID getProjectId()
public java.util.Set<CmsLockType> getTypes()
public boolean isIncludeChildren()
public boolean isIncludeParent()
public boolean isSharedExclusive()
true
if this filter also matches shared exclusive locks.true
if this filter also matches shared exclusive lockspublic boolean match(java.lang.String rootPath, CmsLock lock)
rootPath
- the path to match the lock againstlock
- the lock to matchtrue
if the given lock matchespublic java.lang.String toString()
toString
在类中 java.lang.Object
Object.toString()