public List getParents(SlideToken token, ObjectNode object, boolean pathOnly, boolean storeOnly, boolean includeSelf) throws ServiceAccessException, ObjectNotFoundException, LinkedObjectNotFoundException, AccessDeniedException, VetoException {
List result = new ArrayList();
if (pathOnly) {
String[] uriTokens = object.getPath().tokens();
UriPath path = new UriPath("/");
Uri currentUri = namespace.getUri(token, path.toString());
Uri objectUri = namespace.getUri(token, object.getUri());
if (!storeOnly || currentUri.getStore() == objectUri.getStore()) {
result.add( retrieve(token, path.toString()) );
}
for (int i = 0; i < uriTokens.length; i++) {
path = path.child( uriTokens[i] );
currentUri = namespace.getUri(token, path.toString());
if (i == uriTokens.length - 1 && !includeSelf) {
break;
}
if (!storeOnly || currentUri.getStore() == objectUri.getStore()) {
result.add( retrieve(token, path.toString()) );
}
}
}
else {
// TODO