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, Plugin, Plugin, Plugin
Parent class for all the plugins
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionPlugin endpointsPackages for searching annotated actionsDB cleanerDependencies plugin IDsgetEndpoints(String key) Endpoints for connecting the plugin in JSP templatesgetId()Plugin's IDClass<? extends MessageTypeEmail> getMessageTypeClass(String name) Message type class, supported by the pluginPlugin's entitiesgetObjectTypeTitle(String objectType) Human readable title of an entity, used where entities of all the plugins are listed together, e.g.getResourcePath(String name) Gets path of a file, placed in the plugin's packageUsed DB tablesgetTitle()Human readable plugin titlefinal StringPrefix 'Plugin ' plusgetTitle()XML document from the plugin's packagevoidinit(Connection con) Initialization during server's startbooleanIf the plugin enabledbooleanisSystem()System plugins are always loaded, enabled and not show in the listDeprecated.
-
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
Prefix 'Plugin ' plusgetTitle()- Returns:
- the title with prefix
-
isSystem
public boolean isSystem()System plugins are always loaded, enabled and not show in the list- Returns:
trueif system
-
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:
- the message type class, or
null
-
init
Initialization during server's start- Parameters:
con- the DB connection- 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
-
getObjectTypeTitle
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 withgetLocalizer(): the localization of the kernel screen showing the title doesn't include the one of the plugin.- Parameters:
objectType- one ofgetObjectTypes()- Returns:
- the title, the object type itself by default
-
getCleaner
-