Tabnine Logo
ModuleItem.checkin
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: org.chtijbug.drools/guvnor-repository

item.checkin(checkInComment);
origin: org.drools/guvnor-repository

item.checkin(checkInComment);
origin: org.drools/guvnor-repository

itemOriginal.checkin("Renamed module " + itemOriginal.getName());
origin: org.chtijbug.drools/guvnor-repository

itemOriginal.checkin("Renamed module " + itemOriginal.getName());
origin: org.chtijbug.drools/guvnor-repository

subModuleItem.checkin("Initial");
origin: org.drools/guvnor-repository

subModuleItem.checkin("Initial");
origin: org.chtijbug.drools/guvnor-repository

  @Test
  public void testPackageCheckinConfig() {
    ModuleItem item = getRepo().createModule( "testPackageCheckinConfig", "description" );

    AssetItem rule = item.addAsset( "testPackageCheckinConfig", "w" );
    rule.checkin( "goo" );

    assertEquals(1, iteratorToList( item.getAssets() ).size());
    updateHeader( "la", item );
    item.checkin( "woot" );

    updateHeader( "we", item );
    item.checkin( "gah" );

//        PackageItem pre = (PackageItem) item.getPrecedingVersion();
//        assertNotNull(pre);
//        assertEquals("la", getHeader(pre));

    AssetItem rule_ = getRepo().loadAssetByUUID( rule.getUUID() );
    assertEquals(rule.getVersionNumber(), rule_.getVersionNumber());

    item = getRepo().loadModule( "testPackageCheckinConfig");
    long v = item.getVersionNumber();
    item.updateCheckinComment( "x" );
    getRepo().save();

    assertEquals(v, item.getVersionNumber());
  }
  
origin: org.chtijbug.drools/guvnor-repository

item.checkin("Update dependency");
dependencies = item.getDependencies();
assertEquals(
item.checkin("Update dependency");
dependencies = item.getDependencies();
assertEquals(
origin: org.chtijbug.drools/guvnor-repository

pkg.checkin("Update dependency");
pkg.checkin("version 3");
origin: org.chtijbug.drools/guvnor-repository

item.checkin("v1");
ModuleItem historicalPackage = getRepo().loadModule("testDependenciesWithHistoricalVersion", 2);
dependencies = historicalPackage.getDependencies();
item.checkin("v2");
historicalPackage = getRepo().loadModule("testDependenciesWithHistoricalVersion", 3);
dependencies = historicalPackage.getDependencies();
org.drools.repositoryModuleItemcheckin

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
  • checkout
  • createSubModule
    Creates a nested package.
  • ensureMixinType
  • getAssets
    Return an iterator for the rules in this module
  • ensureMixinType,
  • getAssets,
  • getAssetsWithStatus,
  • getDependencies,
  • getDescription,
  • getFormat,
  • getLastModified,
  • getNode,
  • getStringPropertyArray

Popular in Java

  • Reactive rest calls using spring rest template
  • runOnUiThread (Activity)
  • getSharedPreferences (Context)
  • startActivity (Activity)
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • JCheckBox (javax.swing)
  • Top plugins for Android Studio
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