What permission/configuration is needed for fetching documents using DFS?

Options
chrispudney
edited September 20, 2016 in Documentum #1

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);

Tagged:

Comments