public Enumeration getLocks ( ) throws DAVException { LockDiscovery lockdiscovery = null ; try { Element element = getProperty ( DAV_LOCK_DISCOVERY ) . getProperty ( ) ; lockdiscovery = new LockDiscovery ( element ) ; return lockdiscovery . getActiveLocks ( ) ; } catch ( WebDAVException exception ) { if ( exception . getStatusCode ( ) == IResponse . SC_NOT_FOUND ) return new EmptyEnumeration ( ) ; throw exception ; } catch ( MalformedElementException elemException ) { throw new SystemException ( elemException ) ; } }
Return an Enumeration over ActiveLocks which lists the locks currently held on this resource . Return an empty enumeration if the lock discovery property is not found on the resource .