Tabnine Logo
ModuleItem.isHistoricalVersion
Code IndexAdd Tabnine 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)

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

  • Creating JSON documents from java classes using gson
  • findViewById (Activity)
  • runOnUiThread (Activity)
  • startActivity (Activity)
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • Reference (javax.naming)
  • JTable (javax.swing)
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • Top 12 Jupyter Notebook extensions
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