fetch();
if (SpiConstants.PROPNAME_CONTENT.equals(name)) {
logger.log(Level.FINEST, "Getting property: " + name);
list.add(Value.getBinaryValue(document.getContent()));
return new SimpleProperty(list);
} else if (SpiConstants.PROPNAME_DISPLAYURL.equals(name)) {
logger.log(Level.FINEST, "Getting property: " + name);
list.add(Value.getStringValue(connector.getWorkplaceDisplayUrl()
+ vsDocId));
return new SimpleProperty(list);
} else if (SpiConstants.PROPNAME_ISPUBLIC.equals(name)) {
logger.log(Level.FINEST, "Getting property: " + name);
list.add(Value.getBooleanValue(connector.isPublic()));
return new SimpleProperty(list);
} else if (SpiConstants.PROPNAME_LASTMODIFIED.equals(name)) {
logger.log(Level.FINEST, "Getting property: " + name);
this.document.getPropertyDateValue("DateLastModified", list);
return new SimpleProperty(list);
} else if (SpiConstants.PROPNAME_MIMETYPE.equals(name)) {
document.getPropertyStringValue("MimeType", list);
logger.log(Level.FINEST, "Getting property: " + name);
return new SimpleProperty(list);
} else if (SpiConstants.PROPNAME_DOCID.equals(name)) {
logger.log(Level.FINEST, "Getting property: " + name);
list.add(Value.getStringValue(vsDocId));
return new SimpleProperty(list);
} else if (SpiConstants.PROPNAME_ACTION.equals(name)) {
list.add(Value.getStringValue(SpiConstants.ActionType.ADD.toString()));
logger.fine("Getting Property " + name + " : "
+ SpiConstants.ActionType.ADD.toString());
return new SimpleProperty(list);
} else if (SpiConstants.PROPNAME_ACLUSERS.equals(name)) {
addPrincipals(list, name,
permissions.getAllowUsers(PermissionSource.SOURCE_DEFAULT));
addPrincipals(list, name,
permissions.getAllowUsers(PermissionSource.SOURCE_DIRECT));
return new SimpleProperty(list);
} else if (SpiConstants.PROPNAME_ACLDENYUSERS.equals(name)) {
addPrincipals(list, name,
permissions.getDenyUsers(PermissionSource.SOURCE_DEFAULT));
addPrincipals(list, name,
permissions.getDenyUsers(PermissionSource.SOURCE_DIRECT));
return new SimpleProperty(list);
} else if (SpiConstants.PROPNAME_ACLGROUPS.equals(name)) {
addPrincipals(list, name,
permissions.getAllowGroups(PermissionSource.SOURCE_DEFAULT));
addPrincipals(list, name,
permissions.getAllowGroups(PermissionSource.SOURCE_DIRECT));
return new SimpleProperty(list);
} else if (SpiConstants.PROPNAME_ACLDENYGROUPS.equals(name)) {
addPrincipals(list, name,
permissions.getDenyGroups(PermissionSource.SOURCE_DEFAULT));
addPrincipals(list, name,
permissions.getDenyGroups(PermissionSource.SOURCE_DIRECT));
return new SimpleProperty(list);
} else if (SpiConstants.PROPNAME_ACLINHERITFROM_DOCID.equals(name)) {
String parentId = getParentId();
if (parentId == null) {
return null;
} else {
logger.log(Level.FINE, "{0}: {1}", new Object[] {
SpiConstants.PROPNAME_ACLINHERITFROM_DOCID, parentId});
list.add(Value.getStringValue(parentId));
return new SimpleProperty(list);
}
} else if (name.startsWith(SpiConstants.RESERVED_PROPNAME_PREFIX)) {
return null;
} else {
document.getProperty(name, list);
return new SimpleProperty(list);
}
}