Class Plugin
java.lang.Object
ru.bgcrm.plugin.Plugin
- Direct Known Subclasses:
Plugin, Plugin, Plugin, Plugin, Plugin, Plugin, Plugin, Plugin, Plugin, Plugin, Plugin, Plugin, Plugin, Plugin, Plugin, Plugin, Plugin, Plugin, Plugin, Plugin, Plugin, Plugin, Plugin, Plugin, Plugin, Plugin, Plugin, Plugin, Plugin, Plugin, Plugin, Plugin
Parent class for all the plugins.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionPlugin endpointsPackages for searching annotated actions.DB cleaner.Dependencies plugin IDs.getEndpoints(String key) Endpoints for connecting the plugin in JSP templates.getId()Plugin's ID.Class<? extends MessageTypeEmail> getMessageTypeClass(String name) Message type class, supported by the plugin.Plugin's entities.getResourcePath(String name) Gets path of a file, placed int the plugin's package.Used DB tables.getTitle()Human readable plugin title.final StringPrefix 'Plugin ' plusgetTitle().XML document from the plugin's package.voidinit(Connection con) Initialization during server's start.booleanIf the plugin enabled.booleanisSystem()System plugins are always loaded, enabled and not show in the list.Deprecated.
-
Field Details
-
PATH_JS
- See Also:
-
PATH_LIB
- See Also:
-
PATH_CSS
- See Also:
-
PATH_JSP_ADMIN_PLUGIN
- See Also:
-
PATH_JSP_USER_PLUGIN
- See Also:
-
PATH_JSP_OPEN_PLUGIN
- See Also:
-
-
Constructor Details
-
Plugin
-
-
Method Details
-
getId
-
getTitle
-
getTitleWithPrefix
-
isSystem
public boolean isSystem()System plugins are always loaded, enabled and not show in the list.- Returns:
-
getXml
-
endpoints
-
loadEndpoints
Deprecated.Outdated version ofendpoints()method, should no more be inherited in plugins. -
getResourcePath
-
getActionPackages
-
getDependencies
-
getEndpoints
-
getMessageTypeClass
Message type class, supported by the plugin.- Parameters:
name- name of the type, must start from the plugin ID.- Returns:
-
init
Initialization during server's start.- Parameters:
con-- Throws:
Exception
-
isEnabled
-
getLocalization
- Returns:
- the plugin's localization from l10n.xml if exists, or
null
-
getLocalizer
- Returns:
- the plugin's only localization for
Localization.getLang()language.
-
getTables
-
getObjectTypes
-
getCleaner
-