congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
ModuleItem.getVersionContentNode
Code IndexAdd Tabnine to your IDE (free)

How to use
getVersionContentNode
method
in
org.drools.repository.ModuleItem

Best Java code snippets using org.drools.repository.ModuleItem.getVersionContentNode (Showing top 12 results out of 315)

origin: org.drools/guvnor-repository

/**
 * 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);
  }
}
origin: org.chtijbug.drools/guvnor-repository

/**
 * 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);
  }
}
origin: org.chtijbug.drools/guvnor-repository

/**
 * 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);
  }
}
origin: org.drools/guvnor-repository

/**
 * 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);
  }
}
origin: org.drools/guvnor-repository

/**
 * 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);
  }
}
origin: org.chtijbug.drools/guvnor-repository

/**
 * 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);
  }
}
origin: org.drools/guvnor-repository

Map<String, String> result = new HashMap<String, String>();
try {
  Node content = getVersionContentNode();
  Iterator<AssetItem> assets = new AssetItemIterator(content.getNode(
      ASSET_FOLDER_NAME).getNodes(),
origin: org.chtijbug.drools/guvnor-repository

Map<String, String> result = new HashMap<String, String>();
try {
  Node content = getVersionContentNode();
  Iterator<AssetItem> assets = new AssetItemIterator(content.getNode(
      ASSET_FOLDER_NAME).getNodes(),
origin: org.drools/guvnor-repository

Node ruleNode = getVersionContentNode();
if (ruleNode.hasProperty(COMPILED_PACKAGE_PROPERTY_NAME)) {
  Property data = ruleNode.getProperty(COMPILED_PACKAGE_PROPERTY_NAME);
origin: org.chtijbug.drools/guvnor-repository

sql += " WHERE jcr:path LIKE '" + getVersionContentNode().getPath() + "/" + ASSET_FOLDER_NAME + "[%]/%'";
if (fieldPredicates.length() > 0) {
  sql += " and " + fieldPredicates;
origin: org.chtijbug.drools/guvnor-repository

Node ruleNode = getVersionContentNode();
if (ruleNode.hasProperty(COMPILED_PACKAGE_PROPERTY_NAME)) {
  Property data = ruleNode.getProperty(COMPILED_PACKAGE_PROPERTY_NAME);
origin: org.drools/guvnor-repository

sql += " WHERE jcr:path LIKE '" + getVersionContentNode().getPath() + "/" + ASSET_FOLDER_NAME + "[%]/%'";
if (fieldPredicates.length() > 0) {
  sql += " and " + fieldPredicates;
org.drools.repositoryModuleItemgetVersionContentNode

Popular methods of ModuleItem

  • addAsset
    This adds an asset to the current physical module (you can move it later). With the given category.
  • containsAsset
    Returns true if this module contains an asset of the given name.
  • getName
    Return the name of the module.
  • getStringProperty
  • listAssetsByFormat
    This will load an iterator for assets of the given format type.
  • loadAsset
    Load a specific asset by name.
  • updateStringProperty
  • <init>
    Constructs an object of type ModuleItem corresponding the specified node
  • checkin
  • checkout
  • createSubModule
    Creates a nested package.
  • ensureMixinType
  • createSubModule,
  • ensureMixinType,
  • getAssets,
  • getAssetsWithStatus,
  • getDependencies,
  • getDescription,
  • getFormat,
  • getLastModified,
  • getNode,
  • getStringPropertyArray

Popular in Java

  • Finding current android device location
  • scheduleAtFixedRate (Timer)
  • setContentView (Activity)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • JFrame (javax.swing)
  • IsNull (org.hamcrest.core)
    Is the value null?
  • Top 12 Jupyter Notebook Extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now