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
PluginRuntime s 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
PluginRuntime s 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
IOException
FCPluginException
public static void registerSystemPlugin(Class<? extends IFCPlugin> clazz, String runtimeKey) throws FCPluginException
clazz
- IFCPlugin
-class to registerFCPluginException
public static <T extends IFCPlugin> void registerClientPlugin(Mandant man, Class<T> clazz, String runtimeKey) throws FCPluginException
man
- Mandant
clazz
- IFCPlugin
-class to registerFCPluginException
public static <T extends IFCPlugin> void registerPlugin(PluginRuntime prtm, Class<T> clazz) throws FCPluginException
FCPluginException
public static <T extends IFCPlugin> void registerPlugin(boolean isInstall, PluginRuntime prtm, Class<T> clazz) throws FCPluginException
PluginRuntime
isInstall
- true
if the plugin is installed for the first time, false
if the plugin
configuration is only updated.prtm
- PluginRuntime
clazz
- IFCPlugin
classFCPluginException
public static void install(IPluginEntity<?,?,?> pluginEntity) throws IOException, FCPluginException
IOException
FCPluginException
public static void releasePlugin(String scopeKey, String runtimeKey) throws IOException
IOException
public static void releasePlugin(boolean isUninstall, String scopeKey, String runtimeKey) throws IOException
IOException
public static void releasePlugin(PluginRuntime prtm) throws IOException
IOException
public static void releasePlugin(boolean isUninstall, PluginRuntime prtm) throws IOException
IOException
public 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)
PluginRuntime
s registered to the given clientman
- Mandant
List
of PluginRuntime
spublic 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()
PluginRuntime
s registered in system-scopeSet
of PluginRuntime
spublic 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
- UserContext
protocolEntry
- String
protocol-textparams
- Object
s parameterspublic static void createClientProtocolEntry(UserContext uc, Mandant man, String protocolEntry, Object... params)
uc
- UserContext
man
- Mandant
protocolEntry
- String
protocol-textparams
- Object
s 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
IOException
FCPluginException
@Deprecated public static PluginRuntime initSystemPlugin(File pluginJar) throws IOException, FCPluginException
IOException
FCPluginException
Copyright © 2021 XIMA MEDIA GmbH. All rights reserved.