public interface AggreGatePlugin
| Modifier and Type | Method and Description |
|---|---|
Context |
createGlobalConfigContext(Context rootContext,
boolean requestReboot,
VariableDefinition... properties)
This method creates and returns context containing plugin's global configuration.
|
Context |
createUserConfigContext(Context userContext,
boolean requestReboot,
VariableDefinition... properties)
This method creates and returns context containing plugin's user-level configuration.
|
java.lang.String |
getDescription()
Returns plugin description
|
Context |
getGlobalConfigContext()
Returns plugin's global configuration context
|
java.lang.String |
getId()
Returns plugin ID
|
java.lang.String |
getShortId()
Returns plugin short ID (last "segment" of full ID).
|
int |
getSortIndex()
Returns sort index used to sort plugins in the list.
|
Context |
getUserConfigContext(java.lang.String username)
Returns plugin's user-level configuration context or NULL if user-level configuration is disabled for the user.
|
void |
globalDeinit(Context rootContext)
This method is called once during server shutdown.
|
void |
globalInit(Context rootContext)
This method is called once during server startup.
|
void |
globalStart()
This method is called once for every plugin at the moment when server context tree is fully initialized and all contexts are available.
|
void |
globalStop()
This method is called once for every plugin upon server shutdown.
|
void |
userDeinit(Context userContext)
This method is called once for every system user upon its deletion or server shutdown.
|
void |
userInit(Context userContext)
This method is called once for every system user upon its creation or server startup.
|
java.lang.String getId()
java.lang.String getShortId()
java.lang.String getDescription()
int getSortIndex()
void globalInit(Context rootContext) throws PluginException
PluginException - If an error occurred during initializationvoid userInit(Context userContext) throws PluginException
PluginException - If an error occurred during initializationvoid globalDeinit(Context rootContext) throws PluginException
PluginException - If an error occurred during de-initializationvoid userDeinit(Context userContext) throws PluginException
PluginException - If an error occurred during de-initializationvoid globalStart()
throws PluginException
PluginException - If an error occurred during plugin startupvoid globalStop()
throws PluginException
PluginException - If an error occurred during plugin shutdownContext createGlobalConfigContext(Context rootContext, boolean requestReboot, VariableDefinition... properties)
rootContext - Server root contextrequestReboot - Prompt an operator to reboot server after a global plugin property changeproperties - List of global plugin propertiesContext createUserConfigContext(Context userContext, boolean requestReboot, VariableDefinition... properties)
userContext - Context of user to associate the configuration withrequestReboot - Prompt an operator to reboot server after a global plugin property changeproperties - List of user-level plugin propertiesContext getGlobalConfigContext()
Context getUserConfigContext(java.lang.String username)