Package de.xima.fc.api.system
Class PluginAPI
java.lang.Object
de.xima.fc.api.ASubAPI
de.xima.fc.api.system.PluginAPI
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
deactivatePlugin
(UserContext uc, String runtimeKey, String scopeKey) Marks the given plugin as deactivated in the database.executeDatenquelle
(UserContext uc, String datasourceName, Mandant mandant, IPluginDataSourceParams params) executeFormPrePersistPlugins
(UserContext uc, Mandant mandant, IPluginFormPrePersistParams params) executeFormPreProcessPlugins
(UserContext uc, Mandant mandant, IPluginFormPreProcessParams params) executeFormPreRenderPlugins
(UserContext uc, Mandant mandant, IPluginFormPreRenderParams params) executeFormPreRespondPlugins
(UserContext uc, Mandant mandant, IPluginFormPreRespondParams params) executeGenericPlugin
(UserContext uc, String pluginName, Mandant mandant, IPluginGenericParams params) executeServletActionPlugin
(UserContext uc, String pluginName, Mandant mandant, IPluginServletActionParams params) byte[]
getConfigFileData
(UserContext uc, PluginSyncData pluginEntity) getFormElementWidgetPlugins
(UserContext uc, Mandant client, Locale locale) byte[]
getJarFileData
(UserContext uc, PluginSyncData pluginEntity) byte[]
getPluginFormResource
(UserContext uc, Integer clientId, String pluginName, String resourceName, String cacheKey) Deprecated.byte[]
getPluginFormResource
(UserContext uc, Integer clientId, String pluginName, String resourceName, String cacheKey, IPluginFormResourceGetDataParams params) getPluginNameMap
(UserContext uc, Mandant client, EPluginTypes type) Deprecated.getPluginNameMap
(UserContext uc, Mandant client, Class<? extends IFCPlugin> type) Deprecated.getPluginNames
(UserContext uc, Mandant client, EPluginTypes type) Deprecated.getPluginNames
(UserContext uc, Mandant client, Class<? extends IFCPlugin> type) Method for determining plugin names.getPluginSyncData
(UserContext uc, boolean isFrontendServer) getValidationRulePlugins
(Mandant client, Locale locale) Methods inherited from class de.xima.fc.api.ASubAPI
getHandlerProvider
-
Constructor Details
-
PluginAPI
public PluginAPI()
-
-
Method Details
-
executeFormPreRenderPlugins
public Map<String,IPluginFormPreRenderRetVal> executeFormPreRenderPlugins(UserContext uc, Mandant mandant, IPluginFormPreRenderParams params) -
executeFormPrePersistPlugins
public Map<String,IPluginFormPrePersistRetVal> executeFormPrePersistPlugins(UserContext uc, Mandant mandant, IPluginFormPrePersistParams params) -
executeFormPreProcessPlugins
public Map<String,IPluginFormPreProcessRetVal> executeFormPreProcessPlugins(UserContext uc, Mandant mandant, IPluginFormPreProcessParams params) -
executeFormPreRespondPlugins
public Map<String,IPluginFormPreRespondRetVal> executeFormPreRespondPlugins(UserContext uc, Mandant mandant, IPluginFormPreRespondParams params) -
executeGenericPlugin
public IPluginGenericRetVal executeGenericPlugin(UserContext uc, String pluginName, Mandant mandant, IPluginGenericParams params) -
executeServletActionPlugin
public IPluginServletActionRetVal executeServletActionPlugin(UserContext uc, String pluginName, Mandant mandant, IPluginServletActionParams params) -
executeDatenquelle
public IPluginDataSourceRetVal executeDatenquelle(UserContext uc, String datasourceName, Mandant mandant, IPluginDataSourceParams params) -
deactivatePlugin
Marks the given plugin as deactivated in the database. Please note that this does not deactivate the plugin runtime on the current server, this may need to be done separately via the PluginManager.- Parameters:
uc
- The current user context for accessing the database.runtimeKey
- ThePluginSyncData.getRuntimeKey()
of the plugin.scopeKey
- ThePluginSyncData.getScopeyKey()
of the plugin.
-
getPluginNames
Method for determining plugin names.- Parameters:
uc
-UserContext
the user context in which the action is to be performed.client
-Mandant
whose plugins are searched for.type
-IFCPlugin
of the plugin.- Returns:
Set
of plugin names which were found.
-
getPluginNameMap
@Deprecated public Map<EPluginScope,Set<String>> getPluginNameMap(UserContext uc, Mandant client, Class<? extends IFCPlugin> type) Deprecated.Method for determining the plugins in a client.- Parameters:
uc
-UserContext
the user context in which the action is to be performed.client
-Mandant
whose plugins are searched for.type
-IFCPlugin
of the plugin.- Returns:
Map
of the plugins with the correspondingEPluginScope
.
-
getValidationRulePlugins
-
getFormElementWidgetPlugins
public Map<String,IPluginFormElementWidget> getFormElementWidgetPlugins(UserContext uc, Mandant client, Locale locale) -
getPluginFormResource
@Deprecated public byte[] getPluginFormResource(UserContext uc, Integer clientId, String pluginName, String resourceName, String cacheKey) Deprecated.- Parameters:
uc
- Current user context with the user, may be anonymous.clientId
- ID of the client.pluginName
- Name of the resource plugin.resourceName
- Name of the resource, e.g. the name as it will appear in the URL.cacheKey
- Key for caching the resource in the browser.- Returns:
- The form resource from the form resource plugin.
-
getPluginFormResource
public byte[] getPluginFormResource(UserContext uc, Integer clientId, String pluginName, String resourceName, String cacheKey, IPluginFormResourceGetDataParams params) - Parameters:
uc
- Current user context with the user, may be anonymous.clientId
- ID of the client.pluginName
- Name of the resource plugin.resourceName
- Name of the resource, e.g. the name as it will appear in the URL.cacheKey
- Key for caching the resource in the browser.params
- Parameters for the plugin.- Returns:
- The form resource from the form resource plugin.
-
getPluginNames
Deprecated.- Parameters:
uc
-UserContext
the user context in which the action is to be performed.client
-Mandant
whose plugins are searched for.type
-IFCPlugin
of the plugin.- Returns:
Set
of plugin names which were found.
-
getPluginNameMap
@Deprecated public Map<EPluginScope,Set<String>> getPluginNameMap(UserContext uc, Mandant client, EPluginTypes type) Deprecated.- Parameters:
uc
-UserContext
the user context in which the action is to be performed.client
-Mandant
whose plugins are searched for.type
-IFCPlugin
of the plugin.- Returns:
Map
of the plugins with the correspondingEPluginScope
.
-
getPluginSyncData
-
getJarFileData
-
getConfigFileData
-
getPluginFormResource(UserContext, Integer, String, String, String, IPluginFormResourceGetDataParams)
.