else
logger.info("Not adding siteNodeVersion..");
}
this.siteNodeVersionVOList.addAll(siteNodeVersionVOList);
Collections.sort(this.siteNodeVersionVOList, Collections.reverseOrder(new ReflectionComparator("modifiedDateTime")));
processBean.updateProcess("Getting modifier and path to found contents.");
for(ContentVersionVO contentVersionVO : contentVersionVOList)
{
if(contentVersionVO.getStateId() == 0)
{
Integer protectedContentId = ContentControllerProxy.getController().getProtectedContentId(contentId, db);
if(protectedContentId != null)
{
boolean hasAnonymousUserAccess = AccessRightController.getController().getIsPrincipalAuthorized(db, UserControllerProxy.getController().getUser(CmsPropertyHandler.getAnonymousUser()), "Content.Read", protectedContentId.toString(), false);
if(!hasAnonymousUserAccess)
{
anonymousNoAccessWarning = true;
contentVersionVO.setHasAnonymousUserAccess(false);
}
}
if(!skipDisplayName)
{
InfoGluePrincipal principal = (InfoGluePrincipal)getInfoGluePrincipal(contentVersionVO.getVersionModifier(), db);
if(principal != null)
{
if(principal.getName().equalsIgnoreCase(principal.getDisplayName()))
skipDisplayName = true;
contentVersionVO.setVersionModifierDisplayName(principal.getDisplayName());
}
}
contentVersionVO.setPath(getContentPath(contentVersionVO.getContentId(), db));
}
else
logger.info("Not adding contentVersion..");
}
this.contentVersionVOList.addAll(contentVersionVOList);
Collections.sort(this.contentVersionVOList, Collections.reverseOrder(new ReflectionComparator("modifiedDateTime")));
commitTransaction(db);
}
catch(Exception e)
{