Package de.xima.fc.api.system
Class PluginAPI
- java.lang.Object
-
- de.xima.fc.api.ASubAPI
-
- de.xima.fc.api.system.PluginAPI
-
public class PluginAPI extends ASubAPI
-
-
Constructor Summary
Constructors Constructor Description PluginAPI()
-
Method Summary
-
Methods inherited from class de.xima.fc.api.ASubAPI
getHandlerProvider
-
-
-
-
Method Detail
-
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
public void deactivatePlugin(UserContext uc, String runtimeKey, String scopeKey)
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
public Set<String> getPluginNames(UserContext uc, Mandant client, Class<? extends IFCPlugin> type)
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
public Map<String,IPluginVRuleModel> getValidationRulePlugins(Mandant client, Locale locale)
-
getFormElementWidgetPlugins
public Map<String,IPluginFormElementWidget> getFormElementWidgetPlugins(UserContext uc, Mandant client, Locale locale)
-
getPluginFormResource
public byte[] getPluginFormResource(UserContext uc, Integer clientId, String pluginName, String resourceName, String cacheKey)
-
getPluginNames
@Deprecated public Set<String> getPluginNames(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:
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
public List<PluginSyncData> getPluginSyncData(UserContext uc, boolean isFrontendServer)
-
getJarFileData
public byte[] getJarFileData(UserContext uc, PluginSyncData pluginEntity)
-
getConfigFileData
public byte[] getConfigFileData(UserContext uc, PluginSyncData pluginEntity)
-
-