Codota Logo
ModuleItem.getDependencies
Code IndexAdd Codota to your IDE (free)

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

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

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
List l =
  • Codota Iconnew LinkedList()
  • Codota IconCollections.emptyList()
  • Codota Iconnew ArrayList()
  • Smart code suggestions by Codota
}
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.chtijbug.drools/guvnor-repository

      this.getDependencies());
} catch (RepositoryException e) {
  throw new RulesRepositoryException(e);
origin: org.drools/guvnor-repository

      this.getDependencies());
} catch (RepositoryException e) {
  throw new RulesRepositoryException(e);
origin: org.chtijbug.drools/guvnor-repository

getRepo().save();
String[] dependencies = item.getDependencies();
assertEquals(dependencies.length, 0);
rule.checkin("version 3");
dependencies = item.getDependencies();
assertEquals(dependencies.length, 1);
assertEquals(
dependencies = item.getDependencies();
assertEquals(
    "testDependenciesAsset1?version=LATEST",
dependencies = item.getDependencies();
assertEquals(
    "testDependenciesAsset1?version=2",
origin: org.chtijbug.drools/guvnor-repository

getRepo().save();
String[] dependencies = item.getDependencies();
assertEquals(dependencies.length, 0);
dependencies = item.getDependencies();
assertEquals(dependencies.length, 1);
assertEquals(
item.checkin("v1");
ModuleItem historicalPackage = getRepo().loadModule("testDependenciesWithHistoricalVersion", 2);
dependencies = historicalPackage.getDependencies();
assertEquals(1, dependencies.length);
item.checkin("v2");
historicalPackage = getRepo().loadModule("testDependenciesWithHistoricalVersion", 3);
dependencies = historicalPackage.getDependencies();
assertEquals(1, dependencies.length);
origin: org.chtijbug.drools/guvnor-repository

String[] dependencies = pkg.getDependencies();
assertEquals(dependencies.length, 3);
org.drools.repositoryModuleItemgetDependencies

Javadoc

To avoid updating dependency attribute for every asset operation like adding/renaming/deleting etc, we calculate dependency path on the fly.

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,
  • getDescription,
  • getFormat,
  • getLastModified,
  • getNode,
  • getStringPropertyArray

Popular in Java

  • Creating JSON documents from java classes using gson
  • setRequestProperty (URLConnection)
  • addToBackStack (FragmentTransaction)
  • getSystemService (Context)
  • BigInteger (java.math)
    Immutable arbitrary-precision integers. All operations behave as if BigIntegers were represented in
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • Reference (javax.naming)
  • LogFactory (org.apache.commons.logging)
    A minimal incarnation of Apache Commons Logging's LogFactory API, providing just the common Log look
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • Option (scala)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now