Hi Experts,
Context: Two docbases(docbase1 and docbase2). User with access to both docbases. Docbase1 contains a document with r_object_id ="2347293"
input: r_object_id "2347293", username and password with access to both docbases and other stuff needed to use ObjectServiceStub
result required: retrieve the document and its docbase name by r_object_id from the right docbase
Approach:
for(docbase:{docbase2,docbase1})
ObjectServiceStub#get(GetE).getGetResponse().get_return();
Issue: Irrespective of which repositoryname(be it of docbase1 or docbase2) I use for objectServiceStub#header and GetE#ObjectIdentitySet#ObjectIdentity#repositoryName, I am always able to fetch the document which is not what I want. I only want the document to be retrieved if I have set the correct container docbase as repositoryName(docbase1 in this case) in header and ObjectIdentity. Am I missing something? Or does the response contain the docbase name which can be used to reject it if the request didn't contain the same docbase name as repositoryName.
Thanks
Abhinav