// 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 AssetItemPageResult() );
}
}
AssetItemPageResult result = repository.findAssetsByCategory( categoryPath, false, skip, numRows );
TableDisplayHandler handler = new TableDisplayHandler( tableConfig );