Codota Logo
ModuleItem.getStringProperty
Code IndexAdd Codota 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)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
List l =
  • Codota Iconnew LinkedList()
  • Codota IconCollections.emptyList()
  • Codota Iconnew ArrayList()
  • Smart code suggestions by Codota
}
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

  • Creating JSON documents from java classes using gson
  • getSupportFragmentManager (FragmentActivity)
  • requestLocationUpdates (LocationManager)
  • startActivity (Activity)
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • Path (java.nio.file)
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • TreeSet (java.util)
    A NavigableSet implementation based on a TreeMap. The elements are ordered using their Comparable, o
  • Table (org.hibernate.mapping)
    A relational table
  • 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