public class ReportingGatewayHook extends AbstractGatewayModuleHook
| Modifier and Type | Class and Description |
|---|---|
class |
ReportingGatewayHook.RPC |
| Constructor and Description |
|---|
ReportingGatewayHook() |
| Modifier and Type | Method and Description |
|---|---|
static ReportingGatewayHook |
get()
Statically retrieves the hook from within a wicket request cycle
|
static ReportingGatewayHook |
get(GatewayContext context)
Grabs the Reporting Module's Gateway hook instance from the gateway context
|
java.lang.String |
getLicenseEdition() |
LicenseState |
getLicenseState() |
int |
getLimitedReportCount() |
java.util.Optional<java.lang.String> |
getMountedResourceFolder() |
java.util.Optional<java.lang.String> |
getMountPathAlias()
Used by the mounting underneath /main/res/module-id/* and /main/data/module-id/* as an alternate mounting path
instead of your module id, if present.
|
java.lang.String |
getProjectNameFromId(long id) |
static java.lang.String |
getProjectNameFromId(long id,
GatewayContext context) |
GatewayDataSourceRegistry |
getRegistry() |
ReportExecutionData |
getReportData(long projectId,
java.lang.String reportPath,
ReportDataConfiguration dataConfig,
java.util.Map<java.lang.String,java.lang.Object> parameters,
boolean sampleData,
ReportExecutionContext execContext) |
ReportExecutionData |
getReportData(long projectId,
java.lang.String reportPath,
ReportDataConfiguration dataConfig,
java.util.Map<java.lang.String,java.lang.Object> parameters,
java.util.Map<java.lang.String,java.lang.Object> extraConfigs,
boolean sampleData,
ReportExecutionContext execContext) |
java.lang.Object |
getRPCHandler(ClientReqSession session,
java.lang.Long projectId)
A class whose functions will become exposed automatically through reflection to the Designer
and the Client
through RPC
|
ReportStatusManager |
getStatusManager() |
java.util.Optional<OverviewContributor> |
getStatusOverviewContributor()
Implement this method to contribute meta data to the Status section's Systems / Overview page.
|
java.util.List<? extends INamedTab> |
getStatusPanels()
A list (may be null or empty) of panels to display in the status section
|
void |
initializeScriptManager(ScriptManager manager)
Initialize a newly-instantiated script manager.
|
boolean |
isTrialExpired() |
boolean |
isTrialMode() |
void |
mountRouteHandlers(RouteGroup routes)
Provides a chance for the module to mount any route handlers it wants.
|
void |
notifyLicenseStateChanged(LicenseState licenseState)
Notify module hook when the license state has changed.
|
void |
setup(GatewayContext context)
Called to before startup.
|
void |
shutdown()
Called to shutdown this module.
|
void |
startup(LicenseState licenseState)
Called to initialize the module.
|
configureDeserializer, configureFunctionFactory, configureSerializer, getHomepagePanelsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetConfigCategories, getConfigOverviewContributor, getConfigPanels, isFreeModule, updateSystemMappublic static ReportingGatewayHook get(GatewayContext context)
public static ReportingGatewayHook get()
public void setup(GatewayContext context)
GatewayModuleHookpublic void startup(LicenseState licenseState)
GatewayModuleHookpublic void shutdown()
GatewayModuleHookpublic java.lang.String getProjectNameFromId(long id)
public static java.lang.String getProjectNameFromId(long id,
GatewayContext context)
public GatewayDataSourceRegistry getRegistry()
public java.lang.Object getRPCHandler(ClientReqSession session, java.lang.Long projectId)
GatewayModuleHookgetRPCHandler in interface GatewayModuleHookgetRPCHandler in class AbstractGatewayModuleHookpublic ReportExecutionData getReportData(long projectId, java.lang.String reportPath, ReportDataConfiguration dataConfig, java.util.Map<java.lang.String,java.lang.Object> parameters, boolean sampleData, ReportExecutionContext execContext) throws java.lang.Exception
java.lang.Exceptionpublic ReportExecutionData getReportData(long projectId, java.lang.String reportPath, ReportDataConfiguration dataConfig, java.util.Map<java.lang.String,java.lang.Object> parameters, java.util.Map<java.lang.String,java.lang.Object> extraConfigs, boolean sampleData, ReportExecutionContext execContext) throws java.lang.Exception
java.lang.Exceptionpublic void initializeScriptManager(ScriptManager manager)
GatewayModuleHookScriptManager instance. Usually this will involve calling
ScriptManager.addScriptModule(String, Object), which reflectively loads the public
(instance and static) java functions from the given object into the scripting environment, at
the provided path.
This function may be called before GatewayModuleHook.startup(LicenseState), but never before
GatewayModuleHook.setup(GatewayContext).
initializeScriptManager in interface GatewayModuleHookinitializeScriptManager in class AbstractGatewayModuleHookpublic ReportStatusManager getStatusManager()
public void mountRouteHandlers(RouteGroup routes)
GatewayModuleHookRouteGroup for details.
Will be called after startup().public java.util.Optional<java.lang.String> getMountPathAlias()
GatewayModuleHookpublic java.util.Optional<java.lang.String> getMountedResourceFolder()
public java.util.Optional<OverviewContributor> getStatusOverviewContributor()
GatewayModuleHookpublic java.util.List<? extends INamedTab> getStatusPanels()
GatewayModuleHookgetStatusPanels in interface GatewayModuleHookgetStatusPanels in class AbstractGatewayModuleHookpublic void notifyLicenseStateChanged(LicenseState licenseState)
GatewayModuleHooknotifyLicenseStateChanged in interface GatewayModuleHooknotifyLicenseStateChanged in class AbstractGatewayModuleHookpublic java.lang.String getLicenseEdition()
public int getLimitedReportCount()
public LicenseState getLicenseState()
public boolean isTrialMode()
public boolean isTrialExpired()