Hi Sliders,
I have developped a method who erase a "webfolder" and all his content.
The problem is that I need to test if a ressource within this folder is
locked or not.
But everytime I tested the lock propertie on an open ressource (like a
word document), I receive false as the result of the isLocked method.
And when I try to access the same document in word from another PC, the
program opens it in read only mode, so I know that the locking works.
Here is the code :
private boolean checkLock(ObjectNode node,SubjectNode
subject,ActionNode action) throws Exception {
boolean result = false;
Date expirationDate = new Date((new Date()).getTime()+
10000000);
NodeLock token = new
NodeLock(node,subject,action,expirationDate, false);
result = lock.isLocked(slideToken,token,false);
System.out.println(result);
return result;
}
If anyone can help me...
Stef