Class Plugin
java.lang.Object
ru.bgcrm.plugin.Plugin
org.bgerp.plugin.inventoru.Plugin
Inventory plugin for tracking network equipment and materials.
Also owns the 1C synchronization admin UI (sync1c sub-package).
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Pluginstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringEquipment models — the entity is DeviceType, its own types live under this path.static final Stringstatic final StringQueues are configured for every entity of the plugin, not just for warehouses.static final Stringstatic final Stringsync1c is a sub-package of this plugin, so its JSPs and action paths live under the plugin's own tree: the localizer picks the plugin's l10n by the/plugin/<id>/segment of the URL, and a top-level/plugin/sync1c/would resolve to a plugin that does not exist.static final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class Plugin
PATH_CSS, PATH_JS, PATH_JSP_ADMIN_PLUGIN, PATH_JSP_OPEN_PLUGIN, PATH_JSP_USER_PLUGIN, PATH_LIB -
Method Summary
Modifier and TypeMethodDescriptionPlugin endpointsEntities the plugin defines parameters for.getObjectTypeTitle(String objectType) Human readable title of an entity, used where entities of all the plugins are listed together, e.g.getTitle()Human readable plugin titlevoidinit(Connection con) Initialization during server's startMethods inherited from class Plugin
getActionPackages, getCleaner, getDependencies, getEndpoints, getId, getLocalization, getLocalizer, getMessageTypeClass, getResourcePath, getTables, getTitleWithPrefix, getXml, isEnabled, isSystem, loadEndpoints
-
Field Details
-
ID
- See Also:
-
INSTANCE
-
PATH_JSP_USER
- See Also:
-
PATH_JSP_USER_DEVICE
- See Also:
-
PATH_JSP_USER_ITEM
- See Also:
-
PATH_JSP_USER_MOVEMENT
- See Also:
-
PATH_JSP_USER_STORE
- See Also:
-
PATH_JSP_USER_STORE_QUEUE
- See Also:
-
PATH_JSP_USER_SYNC1C
- See Also:
-
PATH_JSP_ADMIN_INVENTORU
- See Also:
-
PATH_JSP_ADMIN_SYNC1C
sync1c is a sub-package of this plugin, so its JSPs and action paths live under the plugin's own tree: the localizer picks the plugin's l10n by the/plugin/<id>/segment of the URL, and a top-level/plugin/sync1c/would resolve to a plugin that does not exist.- See Also:
-
PATH_JSP_ADMIN_STORE
- See Also:
-
PATH_JSP_ADMIN_QUEUE
Queues are configured for every entity of the plugin, not just for warehouses.- See Also:
-
PATH_JSP_ADMIN_ITEM
- See Also:
-
PATH_JSP_ADMIN_DEVICE
- See Also:
-
PATH_JSP_ADMIN_EQUIP
- See Also:
-
PATH_JSP_ADMIN_MANUFACTURER
- See Also:
-
PATH_JSP_ADMIN_MODEL
Equipment models — the entity is DeviceType, its own types live under this path.- See Also:
-
PATH_JSP_ADMIN_MOVEMENT
- See Also:
-
-
Method Details
-
init
-
getTitle
-
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 theparam.idsproperty of its type — every one of the five has a type hierarchy of its own.- Overrides:
getObjectTypesin classPlugin- Returns:
- the object types
-
getObjectTypeTitle
Description copied from class:PluginHuman 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 withPlugin.getLocalizer(): the localization of the kernel screen showing the title doesn't include the one of the plugin.- Overrides:
getObjectTypeTitlein classPlugin- Parameters:
objectType- one ofPlugin.getObjectTypes()- Returns:
- the title, the object type itself by default
-
endpoints
-