Package org.alfresco.repo.webdav
Class WebDAVMethod.Condition
- java.lang.Object
-
- org.alfresco.repo.webdav.WebDAVMethod.Condition
-
- Enclosing class:
- WebDAVMethod
protected class WebDAVMethod.Condition extends Object
Class used for storing conditions which comes with "If" header of the request- Author:
- ivanry
-
-
Constructor Summary
Constructors Constructor Description Condition()Default constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddETag(String eTag, boolean notMatch)Add ETag to checkvoidaddLockTocken(String lockToken, boolean notMatch)Adds lock token to checkLinkedList<String>getETagsMatch()Returns the list of ETags that should be checked against node's ETag on equivalence.LinkedList<String>getETagsNotMatch()Returns the list of ETags that should be checked against node's ETag on non-equivalence.LinkedList<String>getLockTokensMatch()Returns the list of lock tokens that should be checked against node's lock token on equivalence.LinkedList<String>getLockTokensNotMatch()Returns the list of lock tokens that should be checked against node's lock token on non-equivalence.
-
-
-
Method Detail
-
getLockTokensMatch
public LinkedList<String> getLockTokensMatch()
Returns the list of lock tokens that should be checked against node's lock token on equivalence.- Returns:
- lock tokens
-
getLockTokensNotMatch
public LinkedList<String> getLockTokensNotMatch()
Returns the list of lock tokens that should be checked against node's lock token on non-equivalence.- Returns:
- lock tokens
-
getETagsMatch
public LinkedList<String> getETagsMatch()
Returns the list of ETags that should be checked against node's ETag on equivalence.- Returns:
- ETags list
-
getETagsNotMatch
public LinkedList<String> getETagsNotMatch()
Returns the list of ETags that should be checked against node's ETag on non-equivalence.- Returns:
- ETags list
-
addLockTocken
public void addLockTocken(String lockToken, boolean notMatch)
Adds lock token to check- Parameters:
lockToken- StringnotMatch- true is lock token should be added to the list matched tokens. false if should be added to the list of non-matches.
-
addETag
public void addETag(String eTag, boolean notMatch)
Add ETag to check- Parameters:
eTag- StringnotMatch- true is ETag should be added to the list matched ETags. false if should be added to the list of non-matches.
-
-