Class Plugin

java.lang.Object
ru.bgcrm.plugin.Plugin
org.bgerp.plugin.inventoru.Plugin

public class Plugin extends Plugin
Inventory plugin for tracking network equipment and materials. Also owns the 1C synchronization admin UI (sync1c sub-package).
  • Field Details

  • Method Details

    • init

      public void init(Connection con) throws Exception
      Description copied from class: Plugin
      Initialization during server's start
      Overrides:
      init in class Plugin
      Parameters:
      con - the DB connection
      Throws:
      Exception
    • getTitle

      public String getTitle()
      Description copied from class: Plugin
      Human readable plugin title
      Overrides:
      getTitle in class Plugin
      Returns:
      the title
    • getObjectTypes

      public Set<String> getObjectTypes()
      Entities the plugin defines parameters for. Each one gets its own directory in Administration / Parameters; the parameters chosen there are then attached to an entity through the param.ids property of its type — every one of the five has a type hierarchy of its own.
      Overrides:
      getObjectTypes in class Plugin
      Returns:
      the object types
    • getObjectTypeTitle

      public String getObjectTypeTitle(String objectType)
      Description copied from class: Plugin
      Human readable title of an entity, used where entities of all the plugins are listed together, e.g. in the parameters directory selector. Has to be localized by the plugin itself with Plugin.getLocalizer(): the localization of the kernel screen showing the title doesn't include the one of the plugin.
      Overrides:
      getObjectTypeTitle in class Plugin
      Parameters:
      objectType - one of Plugin.getObjectTypes()
      Returns:
      the title, the object type itself by default
    • endpoints

      protected Map<String, List<String>> endpoints()
      Description copied from class: Plugin
      Plugin endpoints
      Overrides:
      endpoints in class Plugin
      Returns:
      the endpoints map