congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
ModuleItem.listArchivedAssets
Code IndexAdd Tabnine to your IDE (free)

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

Best Java code snippets using org.drools.repository.ModuleItem.listArchivedAssets (Showing top 2 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
List l =
  • Codota Iconnew ArrayList()
  • Codota Iconnew LinkedList()
  • Smart code suggestions by Tabnine
}
origin: org.chtijbug.drools/guvnor-repository

@Test
public void testListArchivedAssets() throws Exception {
  ModuleItem pkg = getRepo().createModule( "org.drools.archivedtest", "" );
  getRepo().save();
  AssetItem item = pkg.addAsset( "archivedItem1", "" );
  item.archiveItem( true );
  item.checkin( "la" );
  item = pkg.addAsset( "archivedItem2", "wee" );
  item.archiveItem( true );
  item.checkin( "la" );
  item = pkg.addAsset( "archivedItem3", "wee" );
  item.archiveItem( true );
  item.checkin( "la" );
  item = pkg.addAsset( "NOTarchivedItem", "wee" );
  item.checkin( "la" );
  Thread.sleep( 150 );
  AssetItemIterator it = pkg.listArchivedAssets();
  List list = iteratorToList( it );
  assertEquals(3, list.size());
  assertTrue(list.get( 0 ) instanceof AssetItem);
  assertTrue(list.get( 1 ) instanceof AssetItem);
  assertTrue(list.get( 2 ) instanceof AssetItem);
  it = pkg.queryAssets( "", true );
  list = iteratorToList( it );
  assertEquals(4, list.size());
}
origin: org.chtijbug.drools/guvnor-webapp-core

assertEquals(0, l.size());
l = RulesRepositoryTest.iteratorToList(pkg.listArchivedAssets());
assertEquals(1, l.size());
org.drools.repositoryModuleItemlistArchivedAssets

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

  • Reading from database using SQL prepared statement
  • notifyDataSetChanged (ArrayAdapter)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • setRequestProperty (URLConnection)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • Path (java.nio.file)
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • Top 17 Free Sublime Text Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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