What permission/configuration is needed for fetching documents using DFS?
G'day,
I am fetching documents by object ID using the DFS code snippet below.
On one of our servers (TEST) it works fine but on (PROD) the request blocks indefinitely - no error - just doesn't return.
Is there some permission or configuration that must be enabled on PROD for this to work?
Thanks,
Chris.
----
final ContentTransferProfile transferProfile = new ContentTransferProfile();
transferProfile.setTransferMode(ContentTransferMode.MTOM);
transferProfile.setDestinationDirectory(destDir);
context.setProfile(transferProfile);
// Create content profile.
final ContentProfile contentProfile = new ContentProfile();
contentProfile.setFormatFilter(FormatFilter.ANY);
contentProfile.setContentReturnType(FileContent.class);
// Operation options.
final OperationOptions operationOptions = new OperationOptions();
operationOptions.setContentProfile(contentProfile);
operationOptions.setProfile(contentProfile);
// Add object IDs.
final ObjectIdentitySet identitySet = new ObjectIdentitySet();
final List<ObjectIdentity> objIdList = identitySet.getIdentities();
for (final String objectId : objectIds)
{
// Set object ID.
objIdList.add(new ObjectIdentity<>(new ObjectId(objectId), repositoryName));
}
LOGGER.debug("Fetching " + identitySet.getIdentities().size() + " documents");
// Get documents.
final ObjectService service = ServiceFactory.getInstance().getRemoteService(
IObjectService.class, context, CORE_MODULE_NAME, root);
return service.get(identitySet, operationOptions);
Comments
-
Thanks for responding.
I don't get an error message or a timeout - it just hangs indefinitely.
Regards,
Chris.
0
Categories
- All Categories
- 109 Developer Announcements
- 49 Articles
- 101 General Questions
- 123 IM Services
- 40 OpenText Hackathon
- 31 Developer Tools
- 20.6K Analytics
- 4.1K AppWorks
- 8.9K Extended ECM
- 897 Cloud Fax and Notifications
- 77 Digital Asset Management
- 9.3K Documentum
- 29 eDOCS
- 123 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management