/** * Returns true if this module contains an asset of the given name. */ public boolean containsAsset(String name) { Node content; try { content = getVersionContentNode(); return content.getNode(ASSET_FOLDER_NAME).hasNode(name); } catch (RepositoryException e) { throw new RulesRepositoryException(e); } }
/** * Returns true if this module contains an asset of the given name. */ public boolean containsAsset(String name) { Node content; try { content = getVersionContentNode(); return content.getNode(ASSET_FOLDER_NAME).hasNode(name); } catch (RepositoryException e) { throw new RulesRepositoryException(e); } }
/** * Load a specific asset by name. */ public AssetItem loadAsset(String name) { try { Node content = getVersionContentNode(); return new AssetItem( this.rulesRepository, content.getNode(ASSET_FOLDER_NAME).getNode(name)); } catch (RepositoryException e) { throw new RulesRepositoryException(e); } }
/** * Load a specific asset by name. */ public AssetItem loadAsset(String name) { try { Node content = getVersionContentNode(); return new AssetItem( this.rulesRepository, content.getNode(ASSET_FOLDER_NAME).getNode(name)); } catch (RepositoryException e) { throw new RulesRepositoryException(e); } }
/** * Return an iterator for the rules in this module */ public Iterator<AssetItem> getAssets() { try { Node content = getVersionContentNode(); return new VersionedAssetItemIterator(content.getNode(ASSET_FOLDER_NAME).getNodes(), this.rulesRepository, this.getDependencies()); } catch (RepositoryException e) { throw new RulesRepositoryException(e); } }
/** * Return an iterator for the rules in this module */ public Iterator<AssetItem> getAssets() { try { Node content = getVersionContentNode(); return new VersionedAssetItemIterator(content.getNode(ASSET_FOLDER_NAME).getNodes(), this.rulesRepository, this.getDependencies()); } catch (RepositoryException e) { throw new RulesRepositoryException(e); } }
Map<String, String> result = new HashMap<String, String>(); try { Node content = getVersionContentNode(); Iterator<AssetItem> assets = new AssetItemIterator(content.getNode( ASSET_FOLDER_NAME).getNodes(),
Map<String, String> result = new HashMap<String, String>(); try { Node content = getVersionContentNode(); Iterator<AssetItem> assets = new AssetItemIterator(content.getNode( ASSET_FOLDER_NAME).getNodes(),
Node ruleNode = getVersionContentNode(); if (ruleNode.hasProperty(COMPILED_PACKAGE_PROPERTY_NAME)) { Property data = ruleNode.getProperty(COMPILED_PACKAGE_PROPERTY_NAME);
sql += " WHERE jcr:path LIKE '" + getVersionContentNode().getPath() + "/" + ASSET_FOLDER_NAME + "[%]/%'"; if (fieldPredicates.length() > 0) { sql += " and " + fieldPredicates;
Node ruleNode = getVersionContentNode(); if (ruleNode.hasProperty(COMPILED_PACKAGE_PROPERTY_NAME)) { Property data = ruleNode.getProperty(COMPILED_PACKAGE_PROPERTY_NAME);
sql += " WHERE jcr:path LIKE '" + getVersionContentNode().getPath() + "/" + ASSET_FOLDER_NAME + "[%]/%'"; if (fieldPredicates.length() > 0) { sql += " and " + fieldPredicates;