hasLock

Returns true if a lock applies to this resource. This may be either a
lock on this resource itself or a deep lock inherited from a collection
above this resource.
Note, that true is returned whenever a lock applies to that resource even
if the lock is expired or not effective due to the fact that the request
provides the proper lock token.

Parameters:

type -

Returns:

true if a lock applies to this resource.

getLock

Return the lock present on this webdav resource or null
if the resource is either not locked or not lockable at all. Note, that
a resource may have a lock that is inherited by a deep lock inforced on
one of its 'parent' resources.

Parameters:

type -

Returns:

lock information of this resource or null if this
resource has no lock applying it. If an error occurs while retrieving the
lock information null is returned as well.