public interface ModuleContextOnRepositoryStartup
ModuleRegistration.handleRepositoryStartup(ModuleContextOnRepositoryStartup)
Modifier and Type | Method and Description |
---|---|
void |
addExternalJavaScriptResource(String anExternalResourceURL)
Registers a JavaScript resource external
to the current module to be included in every page.
|
void |
addExternalStyleSheetResource(String anExternalResourceURL)
Registers a Cascading Style Sheet (CSS) resource external
to the current module to be included in every page.
|
void |
addPackagedJavaScriptResource(String aResourceName)
Registers a JavaScript resource packaged
in the current module to be included in every page.
|
void |
addPackagedStyleSheetResource(String aResourceName)
Registers a Cascading Style Sheet (CSS) resource packaged
in the current module to be included in every page.
|
Session |
createSystemUserSession(String aTrackingInformationComplementOrNull)
Creates a session executing as the "system user".
|
LoggingCategory |
getLoggingCategory()
Returns the logging category associated with the current module.
|
String |
getModuleName()
Returns the current module name.
|
Repository |
getRepository()
Returns the current repository.
|
String getModuleName()
Repository getRepository()
Session createSystemUserSession(String aTrackingInformationComplementOrNull)
This means that this session will have all privileges.
aTrackingInformationComplementOrNull
- the tracking information complement is added to a specific tracking
information.LoggingCategory getLoggingCategory()
Returned logger is always initialized, so it can be stored for further reuse.
void addPackagedJavaScriptResource(String aResourceName)
This resource must be located in the module, at www/common/jscripts/{aResourceName}
(or www/{locale}/jscripts/{aResourceName}
if the resource has to be localized).
If the JavaScript to be used is specific to some components, it is recommended to
use the method UIDependencyRegisterer.addJavaScriptDependency(String)
instead.
ResourceType.JSCRIPT
,
Packaged resourcesvoid addExternalJavaScriptResource(String anExternalResourceURL)
If several modules include the same external resource, it will be added only once.
If the JavaScript to be used is specific to some components, it is recommended to
use the method UIDependencyRegisterer.addJavaScriptDependency(String)
instead.
void addPackagedStyleSheetResource(String aResourceName)
This resource must be located in the module, at www/common/stylesheets/{aResourceName}
(or www/{locale}/stylesheets/{aResourceName}
if the resource has to be localized).
ResourceType.STYLESHEET
,
Packaged resourcesvoid addExternalStyleSheetResource(String anExternalResourceURL)
If several modules include the same external resource, it will be added only once.