boolean seekArchived,
int skip,
int numRows) throws SerializationException {
List<AssetItem> resultList = new ArrayList<AssetItem>();
RepositoryFilter filter = new ModuleFilter(identity);
AssetItemIterator assetItemIterator = rulesRepository.queryFullText(text,
seekArchived);
while (assetItemIterator.hasNext()) {
AssetItem assetItem = assetItemIterator.next();
Module data = new Module();
data.setUuid(assetItem.getModule().getUUID());
if (filter.accept(data,
RoleType.PACKAGE_READONLY.getName())) {
resultList.add(assetItem);
}
}