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

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

Best Java code snippets using org.drools.repository.ModuleItem.isHistoricalVersion (Showing top 6 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

encodeDependencyPath(
    asset.getName(),
    isHistoricalVersion() ? Long.toString(asset.getVersionNumber()) : "LATEST"));
origin: org.chtijbug.drools/guvnor-repository

encodeDependencyPath(
    asset.getName(),
    isHistoricalVersion() ? Long.toString(asset.getVersionNumber()) : "LATEST"));
origin: org.drools/guvnor-repository

try {
  String sql;
  if (isHistoricalVersion()) {
    sql = "SELECT * FROM nt:frozenNode";
  } else {
origin: org.drools/guvnor-repository

/**
 * Constructs an object of type ModuleItem corresponding the specified
 * node
 *
 * @param rulesRepository the rulesRepository that instantiated this object
 * @param node            the node to which this object corresponds
 * @throws RulesRepositoryException
 */
public ModuleItem(RulesRepository rulesRepository,
          Node node) throws RulesRepositoryException {
  super(rulesRepository,
      node);
  try {
    //make sure this node is a module node
    if (!(this.node.getPrimaryNodeType().getName().equals(MODULE_TYPE_NAME) || isHistoricalVersion())) {
      String message = this.node.getName() + " is not a node of type " + MODULE_TYPE_NAME + ". It is a node of type: " + this.node.getPrimaryNodeType().getName();
      log.error(message);
      throw new RulesRepositoryException(message);
    }
  } catch (Exception e) {
    log.error("Caught exception: " + e);
    throw new RulesRepositoryException(e);
  }
}
origin: org.chtijbug.drools/guvnor-repository

/**
 * Constructs an object of type ModuleItem corresponding the specified
 * node
 *
 * @param rulesRepository the rulesRepository that instantiated this object
 * @param node            the node to which this object corresponds
 * @throws RulesRepositoryException
 */
public ModuleItem(RulesRepository rulesRepository,
          Node node) throws RulesRepositoryException {
  super(rulesRepository,
      node);
  try {
    //make sure this node is a module node
    if (!(this.node.getPrimaryNodeType().getName().equals(MODULE_TYPE_NAME) || isHistoricalVersion())) {
      String message = this.node.getName() + " is not a node of type " + MODULE_TYPE_NAME + ". It is a node of type: " + this.node.getPrimaryNodeType().getName();
      log.error(message);
      throw new RulesRepositoryException(message);
    }
  } catch (Exception e) {
    log.error("Caught exception: " + e);
    throw new RulesRepositoryException(e);
  }
}
origin: org.chtijbug.drools/guvnor-repository

try {
  String sql;
  if (isHistoricalVersion()) {
    sql = "SELECT * FROM nt:frozenNode";
  } else {
org.drools.repositoryModuleItemisHistoricalVersion

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

  • Updating database using SQL prepared statement
  • findViewById (Activity)
  • compareTo (BigDecimal)
  • getApplicationContext (Context)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • BufferedReader (java.io)
    Reads text from a character-input stream, buffering characters so as to provide for the efficient re
  • MalformedURLException (java.net)
    Thrown to indicate that a malformed URL has occurred. Either no legal protocol could be found in a s
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
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