Tabnine Logo
RulesRepository.findAssetsByName
Code IndexAdd Tabnine 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)

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

  • Running tasks concurrently on multiple threads
  • setScale (BigDecimal)
  • getSupportFragmentManager (FragmentActivity)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • Top Sublime Text plugins
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