congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
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 requests using okhttp
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • findViewById (Activity)
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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