congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
ModuleItem.getDependencies
Code IndexAdd Tabnine 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)

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

  • Making http post requests using okhttp
  • requestLocationUpdates (LocationManager)
  • setContentView (Activity)
  • runOnUiThread (Activity)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • JLabel (javax.swing)
  • JList (javax.swing)
  • Top 25 Plugins for Webstorm
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