Package de.espirit.firstspirit.access
Interface BaseContext
- All Superinterfaces:
SpecialistsBroker
- All Known Subinterfaces:
ClientScriptContext
,Content2ScriptContext
,ContextMenuContext
,ExternalPreviewContext
,GenerationContext
,GenerationScriptContext
,GuiScriptContext
,InlineEditContext
,MediaManagementContext
,PermissionServiceScriptContext
,ProjectScriptContext
,ReportContext<T>
,ScheduleContext
,ScheduleTaskExecutionContext
,ScriptContext
,ToolbarContext
,UrlFactoryContext
,WebeditStatusNoteContext
,WorkflowAgent.WorkflowProcessContext
,WorkflowScriptContext
A simple base context used for firstspirit hotspots like client plugins.
- Since:
- 4.2.417
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic enum
Definition of execution environments. -
Method Summary
Modifier and TypeMethodDescriptionboolean
is
(BaseContext.Env env) Returnstrue
if the givenenv
matches the contexts execution environment,false
otherwise.
Note: There may be defined multiple environments for a context.void
Logs the given message as debug message.void
Logs the given message as error message.void
Logs the given message and the trace of the throwable as error message.void
Logs the given message as info message.void
logWarning
(String message) Logs the given message as warning.Methods inherited from interface de.espirit.firstspirit.agency.SpecialistsBroker
requestSpecialist, requireSpecialist
-
Method Details
-
logDebug
Logs the given message as debug message.- Parameters:
message
- the debug message- Since:
- 4.2.417
-
logInfo
Logs the given message as info message.- Parameters:
message
- the info message- Since:
- 4.2.417
-
logWarning
Logs the given message as warning.- Parameters:
message
- the warn message- Since:
- 4.2.417
-
logError
Logs the given message as error message.- Parameters:
message
- the error message- Since:
- 4.2.417
-
logError
Logs the given message and the trace of the throwable as error message.- Parameters:
message
- the error messageex
- the exception to log- Since:
- 4.2.417
-
is
Returnstrue
if the givenenv
matches the contexts execution environment,false
otherwise.
Note: There may be defined multiple environments for a context.- Parameters:
env
- The environment to check for.- Returns:
true
if the givenenv
matches the contexts execution environment,false
otherwise.- Since:
- 5.0.100
-