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

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

Best Java code snippets using org.drools.repository.ModuleItem.updateTitle (Showing top 4 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

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

/**
 * Copy a package to the target name.
 */
public String copyModule(String sourceModuleName,
             String destModuleName) {
  ModuleItem source = loadModule(sourceModuleName);
  try {
    String destPath = source.getNode().getParent().getPath() + "/" + destModuleName;
    if (this.getAreaNode(MODULE_AREA).hasNode(destModuleName)) {
      throw new RulesRepositoryException("Destination already exists.");
    }
    this.session.getWorkspace().copy(source.getNode().getPath(),
        destPath);
    ModuleItem newModuleItem = loadModule(destModuleName);
    newModuleItem.updateTitle(destModuleName);
    for (Iterator iter = newModuleItem.getAssets(); iter.hasNext(); ) {
      AssetItem as = (AssetItem) iter.next();
      as.updateStringProperty(destModuleName,
          AssetItem.MODULE_NAME_PROPERTY);
    }
    save();
    return newModuleItem.getUUID();
  } catch (RepositoryException e) {
    log.error(e.getMessage(),
        e);
    throw new RulesRepositoryException(e);
  }
}

origin: org.drools/guvnor-repository

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

/**
 * Copy a package to the target name.
 */
public String copyModule(String sourceModuleName,
             String destModuleName) {
  ModuleItem source = loadModule(sourceModuleName);
  try {
    String destPath = source.getNode().getParent().getPath() + "/" + destModuleName;
    if (this.getAreaNode(MODULE_AREA).hasNode(destModuleName)) {
      throw new RulesRepositoryException("Destination already exists.");
    }
    this.session.getWorkspace().copy(source.getNode().getPath(),
        destPath);
    ModuleItem newModuleItem = loadModule(destModuleName);
    newModuleItem.updateTitle(destModuleName);
    for (Iterator iter = newModuleItem.getAssets(); iter.hasNext(); ) {
      AssetItem as = (AssetItem) iter.next();
      as.updateStringProperty(destModuleName,
          AssetItem.MODULE_NAME_PROPERTY);
    }
    save();
    return newModuleItem.getUUID();
  } catch (RepositoryException e) {
    log.error(e.getMessage(),
        e);
    throw new RulesRepositoryException(e);
  }
}

org.drools.repositoryModuleItemupdateTitle

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

  • Running tasks concurrently on multiple threads
  • requestLocationUpdates (LocationManager)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • findViewById (Activity)
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • JCheckBox (javax.swing)
  • Runner (org.openjdk.jmh.runner)
  • Top 25 Plugins for Webstorm
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