DateUtil.isoDate( createdAfter ),
DateUtil.isoDate( createdBefore ) );
dates[1] = new DateQuery( AssetItem.LAST_MODIFIED_PROPERTY_NAME,
DateUtil.isoDate( modifiedAfter ),
DateUtil.isoDate( modifiedBefore ) );
AssetItemIterator it = rulesRepository.query( q,
seekArchived,
dates );
// Add Filter to check Permission
List<AssetItem> resultList = new ArrayList<AssetItem>();
RepositoryFilter packageFilter = new ModuleFilter( identity );
RepositoryFilter categoryFilter = new CategoryFilter( identity );
while ( it.hasNext() ) {
AssetItem ai = it.next();
if ( checkPackagePermissionHelper( packageFilter,
ai,
RoleType.PACKAGE_READONLY.getName() ) || checkCategoryPermissionHelper( categoryFilter,
ai,
RoleType.ANALYST_READ.getName() ) ) {