// First check the user has permission to access this categoryPath.
if ( Contexts.isSessionContextActive() ) {
if ( !Identity.instance().hasPermission( new CategoryPathType( categoryPath ),
RoleTypes.ANALYST_READ ) ) {
TableDisplayHandler handler = new TableDisplayHandler( tableConfig );
return handler.loadRuleListTable( new AssetPageList() );
}
}
AssetPageList list = repository.findAssetsByCategory( categoryPath,
false,
skip,
numRows);
TableDisplayHandler handler = new TableDisplayHandler( tableConfig );
// log.debug("time for load: " + (System.currentTimeMillis() - time) );
return handler.loadRuleListTable( list );
}