02-10-2012 04:21 PM
02-13-2012 02:00 AM
02-13-2012 04:20 AM
02-13-2012 09:01 AM
08-06-2012 06:30 PM
public List<RenditionData> getRenditions(NodeRef nodeRef, String renditionFilter, BigInteger maxItems,
BigInteger skipCount)
{
String tenantDomain = tenantAdminService.getCurrentUserDomain();
CMISRenditionMapping mapping = renditionMapping.get(tenantDomain); //BUG: "mapping" might be null
return mapping.getRenditions(nodeRef, renditionFilter, maxItems, skipCount);
}
public List<RenditionData> getRenditions(NodeRef nodeRef, String renditionFilter, BigInteger maxItems,
BigInteger skipCount)
{
String tenantDomain = tenantAdminService.getCurrentUserDomain();
CMISRenditionMapping mapping = getRenditionMapping(tenantDomain);
return mapping.getRenditions(nodeRef, renditionFilter, maxItems, skipCount);
}
private CMISRenditionMapping getRenditionMapping(String tenantDomain)
{
CMISRenditionMapping mapping = renditionMapping.get(tenantDomain);
if (mapping == null)
{
mapping = new CMISRenditionMapping(nodeService, contentService, renditionService,
transactionService, kindToRenditionNames);
}
return mapping;
}
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.