protected String getObjectIdByPath(String path) { try { return getBinding().getObjectService().getObjectByPath(getRepositoryId(), path, "cmis:objectId,cmis:baseTypeId", false, IncludeRelationships.NONE, "cmis:none", false, false, null) .getId(); } catch (CmisObjectNotFoundException onfe) { cache.removePath(path); throw onfe; } }
protected String getObjectIdByPath(String path) { try { return getBinding().getObjectService().getObjectByPath(getRepositoryId(), path, "cmis:objectId,cmis:baseTypeId", false, IncludeRelationships.NONE, "cmis:none", false, false, null) .getId(); } catch (CmisObjectNotFoundException onfe) { cache.removePath(path); throw onfe; } }
nextPath.append(segements[i]); ObjectData folderData = getBinding().getObjectService().getObjectByPath(getRepositoryId(), nextPath.toString(), "cmis:objectId,cmis:baseTypeId,cmis:name", false, IncludeRelationships.NONE, "cmis:none", false, false, null);
nextPath.append(segements[i]); ObjectData folderData = getBinding().getObjectService().getObjectByPath(getRepositoryId(), nextPath.toString(), "cmis:objectId,cmis:baseTypeId,cmis:name", false, IncludeRelationships.NONE, "cmis:none", false, false, null);
@Override public CmisObject getObjectByPath(String path, OperationContext context) { checkPath(path); checkContext(context); CmisObject result = null; // ask the cache first if (context.isCacheEnabled() && !cachePathOmit) { result = cache.getByPath(path, context.getCacheKey()); if (result != null) { return result; } } // get the object ObjectData objectData = binding.getObjectService().getObjectByPath(getRepositoryId(), path, context.getFilterString(), context.isIncludeAllowableActions(), context.getIncludeRelationships(), context.getRenditionFilterString(), context.isIncludePolicies(), context.isIncludeAcls(), null); result = getObjectFactory().convertObject(objectData, context); // put into cache if (context.isCacheEnabled()) { cache.putPath(path, result, context.getCacheKey()); } return result; }
@Override public CmisObject getObjectByPath(String path, OperationContext context) { checkPath(path); checkContext(context); CmisObject result = null; // ask the cache first if (context.isCacheEnabled() && !cachePathOmit) { result = cache.getByPath(path, context.getCacheKey()); if (result != null) { return result; } } // get the object ObjectData objectData = binding.getObjectService().getObjectByPath(getRepositoryId(), path, context.getFilterString(), context.isIncludeAllowableActions(), context.getIncludeRelationships(), context.getRenditionFilterString(), context.isIncludePolicies(), context.isIncludeAcls(), null); result = getObjectFactory().convertObject(objectData, context); // put into cache if (context.isCacheEnabled()) { cache.putPath(path, result, context.getCacheKey()); } return result; }