public class ExtensionAPI extends ExtensionAdaptor
Modifier and Type | Field and Description |
---|---|
static String |
API_URL
Deprecated.
(2.7.0) Use
API.getBaseURL(boolean) instead. This URL might not be
correct in all cases, for example, if the API is set 'Secure' (thus needing to use
HTTPS). |
static String |
NAME |
Constructor and Description |
---|
ExtensionAPI() |
Modifier and Type | Method and Description |
---|---|
static String |
generateApiKey() |
String |
getAuthor() |
CoreAPI |
getCoreAPI() |
String |
getDescription()
Returns the description of the extension, to be shown in UI components.
|
String |
getUIName()
By default returns the name returned by
getName() . |
URL |
getURL() |
void |
hook(ExtensionHook extensionHook)
Called during extension's initialisation to allow to add new functionality to core
components.
|
boolean |
supportsDb(String type)
Return true if the specified db type is supported by the extension (or if it doesnt use any
db) If this method returns false (meaning the db in use is not supported) then the extension
will not be loaded.
|
boolean |
supportsLowMemory()
Return true it the extension can run with the 'low memory' option.
|
canUnload, databaseOpen, destroy, getActiveActions, getAddOn, getDependencies, getExtensionMenu, getExtensionView, getI18nPrefix, getMessages, getModel, getName, getOrder, getUnsavedResources, getView, init, initModel, initView, initXML, isCore, isDepreciated, isEnabled, optionsLoaded, postInit, postInstall, setAddOn, setDescription, setEnabled, setI18nPrefix, setMessages, setName, setOrder, start, stop, unload
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getVersion
public static final String NAME
@Deprecated public static final String API_URL
API.getBaseURL(boolean)
instead. This URL might not be
correct in all cases, for example, if the API is set 'Secure' (thus needing to use
HTTPS).public String getUIName()
ExtensionAdaptor
getName()
.getUIName
in interface Extension
getUIName
in class ExtensionAdaptor
null
ExtensionAdaptor.getName()
public void hook(ExtensionHook extensionHook)
Extension
hook
in interface Extension
hook
in class ExtensionAdaptor
extensionHook
- the hook to add the components.public static String generateApiKey()
public String getAuthor()
public String getDescription()
Extension
getDescription
in interface Extension
getDescription
in class ExtensionAdaptor
null
public URL getURL()
getURL
in interface Extension
getURL
in class ExtensionAdaptor
public CoreAPI getCoreAPI()
public boolean supportsDb(String type)
Extension
supportsDb
in interface Extension
supportsDb
in class ExtensionAdaptor
type
- the db typeDatabase.getType()
public boolean supportsLowMemory()
Extension
supportsLowMemory
in interface Extension
supportsLowMemory
in class ExtensionAdaptor
true
if the extension support the 'low memory' option, false
otherwise