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
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumDefinition of execution environments. -
Method Summary
Modifier and TypeMethodDescriptionbooleanis(BaseContext.Env env) Returnstrueif the givenenvmatches the contexts execution environment,falseotherwise.
Note: There may be defined multiple environments for a context.voidLogs the given message as debug message.voidLogs the given message as error message.voidLogs the given message and the trace of the throwable as error message.voidLogs the given message as info message.voidlogWarning(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
Returnstrueif the givenenvmatches the contexts execution environment,falseotherwise.
Note: There may be defined multiple environments for a context.- Parameters:
env- The environment to check for.- Returns:
trueif the givenenvmatches the contexts execution environment,falseotherwise.- Since:
- 5.0.100
-