Codota Logo
RulesRepository.findAssetsByName
Code IndexAdd Codota to your IDE (free)

How to use
findAssetsByName
method
in
org.drools.repository.RulesRepository

Best Java code snippets using org.drools.repository.RulesRepository.findAssetsByName (Showing top 6 results out of 315)

  • Common ways to obtain RulesRepository
private void myMethod () {
RulesRepository r =
  • Codota IconSession session;new RulesRepository(session)
  • Smart code suggestions by Codota
}
origin: org.drools/guvnor-repository

/**
 * This will search assets, looking for matches against the name.
 */
public AssetItemIterator findAssetsByName(String name,
                     boolean seekArchived) {
  return findAssetsByName(name,
      seekArchived,
      true);
}
origin: org.drools/guvnor-repository

public AssetItemIterator findAssetsByName(String name) {
  return this.findAssetsByName(name,
      false);
}
origin: org.chtijbug.drools/guvnor-repository

/**
 * This will search assets, looking for matches against the name.
 */
public AssetItemIterator findAssetsByName(String name,
                     boolean seekArchived) {
  return findAssetsByName(name,
      seekArchived,
      true);
}
origin: org.chtijbug.drools/guvnor-repository

public AssetItemIterator findAssetsByName(String name) {
  return this.findAssetsByName(name,
      false);
}
origin: org.chtijbug.drools/guvnor-repository

repo.save();
List list = iteratorToList( repo.findAssetsByName( "findRulesByNamex1" ) );
assertEquals( 1,
       list.size() );
list = iteratorToList( repo.findAssetsByName( "findRulesByNamex2" ) );
assertEquals( 1,
       list.size() );
list = iteratorToList( repo.findAssetsByName( "findRulesByNamex%" ) );
assertEquals( 2,
       list.size() );
repo.save();
list = iteratorToList( repo.findAssetsByName( "findRulesByNamex2" ) );
AssetItem item = (AssetItem) list.get( 0 );
assertEquals( "findRulesByNamex2",
       list.size() );
list = iteratorToList( repo.findAssetsByName( "findRulesByNamex%" ) );
assertEquals( 2,
       list.size() );
origin: org.chtijbug.drools/guvnor-repository

List list = iteratorToList( repo.findAssetsByName( "findRulesByNameArchived1" ) );
assertEquals( 1,
       list.size() );
list = iteratorToList( repo.findAssetsByName( "findRulesByNameArchived1",
                       true ) );
assertEquals( 1,
       list.size() );
list = iteratorToList( repo.findAssetsByName( "findRulesByNameArchived2" ) );
assertEquals( 1,
       list.size() );
list = iteratorToList( repo.findAssetsByName( "findRulesByNameArchived%" ) );
assertEquals( 2,
       list.size() );
list = iteratorToList( repo.findAssetsByName( "findRulesByNameArchived2" ) );
AssetItem item = (AssetItem) list.get( 0 );
assertEquals( "findRulesByNameArchived2",
list = iteratorToList( repo.findAssetsByName( "findRulesByNameArchived1",
                       true ) );
assertEquals( 1,
       list.size() );
list = iteratorToList( repo.findAssetsByName( "findRulesByNameArchived1" ) );
assertEquals( 0,
       list.size() );
org.drools.repositoryRulesRepositoryfindAssetsByName

Javadoc

This will search assets, looking for matches against the name.

Popular methods of RulesRepository

  • createModule
    Adds a module to the repository.
  • loadModule
    Loads a Module for the specified module name and version. Will throw an exception if the specified m
  • save
    Save any pending changes.
  • <init>
    This requires a JCR session be setup, and the repository be configured.
  • findAssetsByCategory
    This will retrieve a list of RuleItem objects - that are allocated to the provided category. Only th
  • findAssetsByState
    Finds the AssetItem's linked to the requested state. Similar to finding by category.
  • getAreaNode
  • getSession
  • getState
    Gets a StateItem for the specified state name. If a node for the specified state does not yet exist,
  • listModuleSnapshots
    Return a list of the snapshots available for the given module name.
  • listModules
  • loadAssetByUUID
    Loads an asset by its UUID (generally the fastest way to load something).
  • listModules,
  • loadAssetByUUID,
  • loadCategory,
  • loadGlobalArea,
  • loadModuleByUUID,
  • loadModuleSnapshot,
  • loadState,
  • addNodeIfNew,
  • checkForDataMigration

Popular in Java

  • Updating database using SQL prepared statement
  • putExtra (Intent)
  • compareTo (BigDecimal)
    Compares this BigDecimal with the specified BigDecimal. Two BigDecimal objects that are equal in val
  • orElseThrow (Optional)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • FileOutputStream (java.io)
    A file output stream is an output stream for writing data to aFile or to a FileDescriptor. Whether
  • Iterator (java.util)
    An iterator over a collection. Iterator takes the place of Enumeration in the Java Collections Frame
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registery of org.quartz
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