/** * Finds the AssetItem's linked to the requested state. Similar to finding * by category. * * @param filter an AssetItem filter */ public AssetItemPageResult findAssetsByState(String stateName, boolean seekArchivedAsset, int skip, int numRowsToReturn, RepositoryFilter filter) throws RulesRepositoryException { StateItem item = this.getState(stateName); try { return loadLinkedAssets(seekArchivedAsset, skip, numRowsToReturn, item.getNode(), filter); } catch (RepositoryException e) { throw new RulesRepositoryException(e); } }
/** * Finds the AssetItem's linked to the requested state. Similar to finding * by category. * * @param filter an AssetItem filter */ public AssetItemPageResult findAssetsByState(String stateName, boolean seekArchivedAsset, int skip, int numRowsToReturn, RepositoryFilter filter) throws RulesRepositoryException { StateItem item = this.getState(stateName); try { return loadLinkedAssets(seekArchivedAsset, skip, numRowsToReturn, item.getNode(), filter); } catch (RepositoryException e) { throw new RulesRepositoryException(e); } }
/** * This will retrieve a list of RuleItem objects - that are allocated to the * provided category. Only the latest versions of each RuleItem will be * returned (you will have to delve into the assets deepest darkest history * yourself... mahahahaha). * <p/> * Pass in startRow of 0 to start at zero, numRowsToReturn can be set to -1 * should you want it all. * * @param filter an AssetItem filter */ public AssetItemPageResult findAssetsByCategory(String categoryTag, boolean seekArchivedAsset, int skip, int numRowsToReturn, RepositoryFilter filter) throws RulesRepositoryException { CategoryItem item = this.loadCategory(categoryTag); try { return loadLinkedAssets(seekArchivedAsset, skip, numRowsToReturn, item.getNode(), filter); } catch (RepositoryException e) { throw new RulesRepositoryException(e); } }
/** * This will retrieve a list of RuleItem objects - that are allocated to the * provided category. Only the latest versions of each RuleItem will be * returned (you will have to delve into the assets deepest darkest history * yourself... mahahahaha). * <p/> * Pass in startRow of 0 to start at zero, numRowsToReturn can be set to -1 * should you want it all. * * @param filter an AssetItem filter */ public AssetItemPageResult findAssetsByCategory(String categoryTag, boolean seekArchivedAsset, int skip, int numRowsToReturn, RepositoryFilter filter) throws RulesRepositoryException { CategoryItem item = this.loadCategory(categoryTag); try { return loadLinkedAssets(seekArchivedAsset, skip, numRowsToReturn, item.getNode(), filter); } catch (RepositoryException e) { throw new RulesRepositoryException(e); } }