public class PluginManager extends Object
| Constructor and Description |
|---|
PluginManager() |
| Modifier and Type | Method and Description |
|---|---|
static void |
createClientProtocolEntry(UserContext uc,
Mandant man,
String protocolEntry,
Object... params)
Creates a client-protocol-entry
|
static void |
createMandantProtocolEntry(IEntityContext ec,
Mandant man,
String protocolEntry,
Object... params)
|
static void |
createSystemProtocolEntry(UserContext uc,
String protocolEntry,
Object... params)
Creates a system-protocol-entry
|
static void |
deletePlugin(PluginRuntime prtm)
Deprecated.
|
static void |
deletePlugin(String scopeKey,
String runtimeKey)
Deprecated.
|
static <T extends IFCPlugin> |
getAllPlugins(Mandant man,
Class<T> clazz)
Get a set of plugins with the given interface registered in system-scope OR to the given client.
|
static Set<IFCPlugin> |
getAllPlugins(Mandant man,
EPluginTypes type)
Deprecated.
|
static <T extends IFCPlugin> |
getAllPluginsWithRuntime(Mandant man,
Class<T> clazz) |
static Set<PluginRuntime> |
getClientPlugins(Mandant man)
Get a List of all
PluginRuntimes registered to the given client |
static <T extends IFCPlugin> |
getClientPlugins(Mandant man,
Class<T> clazz)
Get a set of plugins with the given interfaces registered to the given client
|
static <T extends IFCPlugin> |
getClientPluginsWithRuntime(Mandant man,
Class<T> clazz) |
static IFCPlugin |
getMandantPluginByName(Mandant man,
EPluginTypes type,
String pluginName)
Deprecated.
will be removed!
|
static File |
getMandantPluginJar(Mandant man,
String jarName)
Deprecated.
|
static List<PluginRuntime> |
getMandantPlugins(Mandant man)
Deprecated.
|
static SortedSet<IFCPlugin> |
getMandantPlugins(Mandant man,
EPluginTypes type)
Deprecated.
will be removed!
|
static <T extends IFCPlugin> |
getPluginByName(Mandant man,
Class<T> clazz,
String pluginName)
Get a plugin by name and
IFCPlugin-interface from client- and system-scope |
static IFCPlugin |
getPluginByName(Mandant man,
EPluginTypes type,
String pluginName)
Deprecated.
|
static <T extends IFCPlugin> |
getPluginByNameWithRuntime(Mandant man,
Class<T> clazz,
String pluginName) |
static <T extends IFCPlugin> |
getPluginNameMap(Mandant mandant,
Class<T> clazz)
Deprecated.
|
static Map<EPluginScope,Set<String>> |
getPluginNameMap(UserContext uc,
Mandant mandant,
EPluginTypes type)
Deprecated.
|
static <T extends IFCPlugin> |
getPluginNames(Mandant mandant,
Class<T> clazz)
|
static Set<String> |
getPluginNames(UserContext uc,
Mandant mandant,
EPluginTypes type)
Deprecated.
|
static PluginRuntime |
getPluginRuntime(String scopeKey,
String runtimeKey) |
static <T extends IFCPlugin> |
getRegisteredPlugins(Class<T> clazz)
Get an set with all registered plugins of the given
IFCPlugin-interface |
static <T extends IFCPlugin> |
getSystemPluginByName(Class<T> clazz,
String pluginName)
Get a system-plugin by name,
IFCPlugin-interface |
static IFCPlugin |
getSystemPluginByName(EPluginTypes type,
String pluginName)
Deprecated.
|
static Set<PluginRuntime> |
getSystemPlugins()
Get a List of all
PluginRuntimes registered in system-scope |
static <T extends IFCPlugin> |
getSystemPlugins(Class<T> clazz)
Get a set of plugins with the given interfaces registered in system-scope
|
static SortedSet<IFCPlugin> |
getSystemPlugins(EPluginTypes type)
Deprecated.
|
static <T extends IFCPlugin> |
getSystemPluginsWithRuntime(Class<T> clazz) |
static PluginRuntime |
initClientPlugin(File pluginJar,
Mandant man)
Deprecated.
|
static void |
initPlugins()
Initialize all plugins stored in the database
|
static PluginRuntime |
initSystemPlugin(File pluginJar)
Deprecated.
|
static void |
install(IPluginEntity<?,?,?> pluginEntity) |
static boolean |
isPluginJar(File file)
Deprecated.
|
static <T extends IFCPlugin> |
registerClientPlugin(Mandant man,
Class<T> clazz,
String runtimeKey)
Method to register a plugin-class in scope of the given client
|
static void |
registerMandantPlugin(Mandant man,
EPluginTypes typ,
Class<? extends IFCPlugin> clazz)
Deprecated.
|
static <T extends IFCPlugin> |
registerPlugin(boolean isInstall,
PluginRuntime prtm,
Class<T> clazz)
Register a plugin to the given key and
PluginRuntime |
static <T extends IFCPlugin> |
registerPlugin(PluginRuntime prtm,
Class<T> clazz) |
static void |
registerSystemPlugin(Class<? extends IFCPlugin> clazz,
String runtimeKey)
Method to register a plugin-class in system-scope
|
static void |
registerSystemPlugin(EPluginTypes typ,
Class<? extends IFCPlugin> clazz)
Deprecated.
|
static void |
releaseMandantPlugin(Mandant man,
PluginRuntime pluginMeta)
Deprecated.
|
static void |
releasePlugin(boolean isUninstall,
PluginRuntime prtm) |
static void |
releasePlugin(boolean isUninstall,
String scopeKey,
String runtimeKey) |
static void |
releasePlugin(PluginRuntime prtm) |
static void |
releasePlugin(String scopeKey,
String runtimeKey) |
static void |
releasePlugins()
Releases all registered plugins
|
static boolean |
scanAndRegisterMandantPlugin(Mandant man,
PluginRuntime pluginMeta,
byte[] jarData)
Deprecated.
|
static boolean |
scanAndRegisterSystemPlugin(PluginRuntime pluginMeta,
byte[] jarData)
Deprecated.
|
static void |
scanForAllPlugins()
Deprecated.
use
initPlugins() |
static void |
synchronizePlugin(boolean isInstall,
PluginSyncData pluginData) |
static void |
uninstallPlugin(String scopeKey,
String runtimeKey) |
public static void initPlugins()
public static void synchronizePlugin(boolean isInstall,
PluginSyncData pluginData)
throws IOException,
FCPluginException
IOExceptionFCPluginExceptionpublic static void registerSystemPlugin(Class<? extends IFCPlugin> clazz, String runtimeKey) throws FCPluginException
clazz - IFCPlugin-class to registerFCPluginExceptionpublic static <T extends IFCPlugin> void registerClientPlugin(Mandant man, Class<T> clazz, String runtimeKey) throws FCPluginException
man - Mandantclazz - IFCPlugin-class to registerFCPluginExceptionpublic static <T extends IFCPlugin> void registerPlugin(PluginRuntime prtm, Class<T> clazz) throws FCPluginException
FCPluginExceptionpublic static <T extends IFCPlugin> void registerPlugin(boolean isInstall, PluginRuntime prtm, Class<T> clazz) throws FCPluginException
PluginRuntimeisInstall - true if the plugin is installed for the first time, false if the plugin
configuration is only updated.prtm - PluginRuntimeclazz - IFCPlugin classFCPluginExceptionpublic static void install(IPluginEntity<?,?,?> pluginEntity) throws IOException, FCPluginException
IOExceptionFCPluginExceptionpublic static void releasePlugin(String scopeKey, String runtimeKey) throws IOException
IOExceptionpublic static void releasePlugin(boolean isUninstall,
String scopeKey,
String runtimeKey)
throws IOException
IOExceptionpublic static void releasePlugin(PluginRuntime prtm) throws IOException
IOExceptionpublic static void releasePlugin(boolean isUninstall,
PluginRuntime prtm)
throws IOException
IOExceptionpublic static void releasePlugins()
public static void uninstallPlugin(String scopeKey, String runtimeKey) throws IOException
scopeKey - the plugin scope keyruntimeKey - the plugin runtime keyIOException - on errors while uninstallpublic static <T extends IFCPlugin> Set<T> getClientPlugins(Mandant man, Class<T> clazz)
public static <T extends IFCPlugin> Set<org.apache.commons.lang3.tuple.Pair<PluginRuntime,T>> getClientPluginsWithRuntime(Mandant man, Class<T> clazz)
public static Set<PluginRuntime> getClientPlugins(Mandant man)
PluginRuntimes registered to the given clientman - MandantList of PluginRuntimespublic static PluginRuntime getPluginRuntime(String scopeKey, String runtimeKey)
public static <T extends IFCPlugin> Set<T> getSystemPlugins(Class<T> clazz)
public static <T extends IFCPlugin> Set<org.apache.commons.lang3.tuple.Pair<PluginRuntime,T>> getSystemPluginsWithRuntime(Class<T> clazz)
public static Set<PluginRuntime> getSystemPlugins()
PluginRuntimes registered in system-scopeSet of PluginRuntimespublic static <T extends IFCPlugin> Set<T> getAllPlugins(Mandant man, Class<T> clazz)
public static <T extends IFCPlugin> Set<org.apache.commons.lang3.tuple.Pair<PluginRuntime,T>> getAllPluginsWithRuntime(Mandant man, Class<T> clazz)
public static <T extends IFCPlugin> Set<T> getRegisteredPlugins(Class<T> clazz)
IFCPlugin-interfacepublic static <T extends IFCPlugin> T getPluginByName(Mandant man, Class<T> clazz, String pluginName)
IFCPlugin-interface from client- and system-scopepublic static <T extends IFCPlugin> org.apache.commons.lang3.tuple.Pair<PluginRuntime,T> getPluginByNameWithRuntime(Mandant man, Class<T> clazz, String pluginName)
public static <T extends IFCPlugin> T getSystemPluginByName(Class<T> clazz, String pluginName)
IFCPlugin-interfacepublic static <T extends IFCPlugin> Set<String> getPluginNames(Mandant mandant, Class<T> clazz)
public static void createSystemProtocolEntry(UserContext uc, String protocolEntry, Object... params)
uc - UserContextprotocolEntry - String protocol-textparams - Objects parameterspublic static void createClientProtocolEntry(UserContext uc, Mandant man, String protocolEntry, Object... params)
uc - UserContextman - MandantprotocolEntry - String protocol-textparams - Objects parameters@Deprecated public static boolean isPluginJar(File file)
@Deprecated public static void deletePlugin(PluginRuntime prtm) throws IOException
IOException@Deprecated public static void deletePlugin(String scopeKey, String runtimeKey) throws IOException
IOException@Deprecated public static Set<IFCPlugin> getAllPlugins(Mandant man, EPluginTypes type)
getAllPlugins(Mandant, Class)@Deprecated public static Map<EPluginScope,Set<String>> getPluginNameMap(UserContext uc, Mandant mandant, EPluginTypes type)
getPluginNameMap(UserContext, Mandant, EPluginTypes)@Deprecated public static Set<String> getPluginNames(UserContext uc, Mandant mandant, EPluginTypes type)
getPluginNames(UserContext, Mandant, EPluginTypes)@Deprecated public static IFCPlugin getPluginByName(Mandant man, EPluginTypes type, String pluginName)
getPluginByName(Mandant, Class, String)@Deprecated public static SortedSet<IFCPlugin> getMandantPlugins(Mandant man, EPluginTypes type)
@Deprecated public static SortedSet<IFCPlugin> getSystemPlugins(EPluginTypes type)
getSystemPlugins(Class)@Deprecated public static IFCPlugin getSystemPluginByName(EPluginTypes type, String pluginName)
getSystemPluginByName(Class, String)@Deprecated public static IFCPlugin getMandantPluginByName(Mandant man, EPluginTypes type, String pluginName)
@Deprecated public static void registerMandantPlugin(Mandant man, EPluginTypes typ, Class<? extends IFCPlugin> clazz) throws FCPluginException
registerClientPlugin(Mandant, Class, String)FCPluginException@Deprecated public static void registerSystemPlugin(EPluginTypes typ, Class<? extends IFCPlugin> clazz) throws FCPluginException
registerSystemPlugin(Class, String)FCPluginException@Deprecated public static void createMandantProtocolEntry(IEntityContext ec, Mandant man, String protocolEntry, Object... params)
@Deprecated public static void releaseMandantPlugin(Mandant man, PluginRuntime pluginMeta) throws IOException
releasePlugin(PluginRuntime)IOException@Deprecated public static File getMandantPluginJar(Mandant man, String jarName) throws IOException
PluginRuntime.getJarFile()IOException@Deprecated public static void scanForAllPlugins()
initPlugins()@Deprecated public static boolean scanAndRegisterSystemPlugin(PluginRuntime pluginMeta, byte[] jarData)
initSystemPlugin(File)@Deprecated public static boolean scanAndRegisterMandantPlugin(Mandant man, PluginRuntime pluginMeta, byte[] jarData)
initClientPlugin(File, Mandant)@Deprecated public static List<PluginRuntime> getMandantPlugins(Mandant man)
getClientPlugins(Mandant)@Deprecated public static <T extends IFCPlugin> Map<EPluginScope,Set<String>> getPluginNameMap(Mandant mandant, Class<T> clazz)
IFCPlugin-interface@Deprecated public static PluginRuntime initClientPlugin(File pluginJar, Mandant man) throws IOException, FCPluginException
IOExceptionFCPluginException@Deprecated public static PluginRuntime initSystemPlugin(File pluginJar) throws IOException, FCPluginException
IOExceptionFCPluginExceptionCopyright © 2020 XIMA MEDIA GmbH. All rights reserved.