congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
ModuleItem.getStringProperty
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: org.chtijbug.drools/guvnor-repository

public String getCategoryRules(boolean keys) {
  if (keys) {
    return getStringProperty(CATEGORY_RULE_KEYS_PROPERTY_NAME);
  }
  return getStringProperty(CATEGORY_RULE_VALUES_PROPERTY_NAME);
}
origin: org.chtijbug.drools/guvnor-repository

/**
 * @return The external URI which will be used to sync this module to an
 *         external resource. Generally this will resolve to a directory in
 *         (for example) Subversion - with each asset being a file (with the
 *         format property as the file extension).
 */
public String getExternalURI() {
  return this.getStringProperty(EXTERNAL_URI_PROPERTY_NAME);
}
origin: org.drools/guvnor-repository

public String getCategoryRules(boolean keys) {
  if (keys) {
    return getStringProperty(CATEGORY_RULE_KEYS_PROPERTY_NAME);
  }
  return getStringProperty(CATEGORY_RULE_VALUES_PROPERTY_NAME);
}
origin: org.drools/guvnor-repository

/**
 * @return The external URI which will be used to sync this module to an
 *         external resource. Generally this will resolve to a directory in
 *         (for example) Subversion - with each asset being a file (with the
 *         format property as the file extension).
 */
public String getExternalURI() {
  return this.getStringProperty(EXTERNAL_URI_PROPERTY_NAME);
}
origin: org.drools/guvnor-repository

private void migratePackage(ModuleItem pkg) {
  if (!pkg.containsAsset("drools")) {
    AssetItem asset = pkg.addAsset("drools", "");
    asset.updateFormat("package");
    asset.updateContent(pkg.getStringProperty(ModuleItem.HEADER_PROPERTY_NAME));
    asset.checkin("");
  }
}
origin: org.chtijbug.drools/guvnor-repository

private void migratePackage(ModuleItem pkg) {
  if (!pkg.containsAsset("drools")) {
    AssetItem asset = pkg.addAsset("drools", "");
    asset.updateFormat("package");
    asset.updateContent(pkg.getStringProperty(ModuleItem.HEADER_PROPERTY_NAME));
    asset.checkin("");
  }
}
origin: org.chtijbug.drools/guvnor-webapp-core

@Test
public void testPostNewPackage() throws Exception {
  RulesRepository repo = RepositorySessionUtil.getRepository();
  RestAPI api = new RestAPI(repo);
  api.setAssetValidator(new AssetValidator());
  api.post("/packages/testPostNewPackage/.package", new ByteArrayInputStream("qaz".getBytes()), "This is a new package");
  ModuleItem pkg = repo.loadModule("testPostNewPackage");
  assertEquals("qaz", pkg.getStringProperty(ModuleItem.HEADER_PROPERTY_NAME));
  assertEquals("This is a new package", pkg.getCheckinComment());
}
origin: org.chtijbug.drools/guvnor-repository

@Test
public void testListPackages() throws Exception {
  RulesRepository repo = getRepo();
  ModuleItem item = repo.createModule( "testListPackages1", "lalalala" );
  assertNotNull(item.getCreator());
  item.updateStringProperty( "goo", "whee" );
  assertEquals("goo", item.getStringProperty( "whee" ));
  assertFalse(item.getCreator().equals( "" ));
  List list = iteratorToList( repo.listModules() );
  int prevSize = list.size();
  repo.createModule( "testListPackages2", "abc" );
  list = iteratorToList( repo.listModules() );
  assertEquals(prevSize + 1, list.size());
}
origin: org.chtijbug.drools/guvnor-webapp-core

assertEquals("whee", pkg.getStringProperty(ModuleItem.HEADER_PROPERTY_NAME));
origin: org.chtijbug.drools/guvnor-webapp-core

assertEquals(pkg.getStringProperty(ModuleItem.HEADER_PROPERTY_NAME), dotPackage);
org.drools.repositoryModuleItemgetStringProperty

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

Popular in Java

  • Making http post requests using okhttp
  • requestLocationUpdates (LocationManager)
  • setContentView (Activity)
  • runOnUiThread (Activity)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • JLabel (javax.swing)
  • JList (javax.swing)
  • Top 17 Plugins for Android Studio
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