Hi All.
I have virtual document and trying to get its content with descendants but without success. I experimented with RelationshipProfile, I have tried to set different options. What kind of options should I use for this purpose?
It is an example from my code. I set identities with one value - object identity of virtual document. May be I should pass identities for all documents that are in virtual document - I do not know.... I did not find any example how to handle virtual documents in DFS.
public DataPackage download(ObjectIdentitySet identities) throws ServiceException {
OperationOptions options = new OperationOptions();
ContentProfile contentProfile = options.getContentProfile();
contentProfile.setFormatFilter(FormatFilter.ANY);
contentProfile.setPageFilter(PageFilter.ANY);
options.setContentProfile(contentProfile);
PropertyProfile propertyProfile = options.getPropertyProfile();
propertyProfile.setFilterMode(PropertyFilterMode.SPECIFIED_BY_INCLUDE);
propertyProfile.setIncludeProperties(ResourceObject.PROPERTIES);
options.getContentTransferProfile().setTransferMode(ContentTransferMode.MTOM);
RelationshipProfile relationProfile = new RelationshipProfile();
relationProfile.setResultDataMode(ResultDataMode.OBJECT);
relationProfile.setDepthFilter(DepthFilter.UNLIMITED);
options.setRelationshipProfile(relationProfile);
return getFactory().getService(IObjectService.class).get(identities, options);
}
Thanks