propFindMethod.getProperty("current-user-privilege-set");
boolean readAccess = userPrivilege.hasReadAccess();
boolean writeAccess = userPrivilege.hasWriteAccess();
SPProperty p = propFindMethod.getProperty("resourcetype");
ResourceTypeProperty resourceType = (ResourceTypeProperty)
p.getPropertyHandle();
LockdiscoveryProperty lockdiscoveryProp =
(LockdiscoveryProperty)
propFindMethod.getProperty("lockdiscovery");
boolean readOnly=false;
if (lockdiscoveryProp != null) { //is being locked
String userName = client.getCredentials().getUserName();
if (lockdiscoveryProp.getLockToken(userName) == null) {
// is locked by others
readOnly = true;
}
}
if (! resourceType.isCollection()) {
theSPResourceNode = new SPWebFile(client, resourceUrlPath);
} else {
theSPResourceNode = new SPWebFolder(client, resourceUrlPath);
}