Package org.nuclos.api.context
Interface JobContext
- All Superinterfaces:
LogContext
JobContext represents the context used in Job-Rule
It contains the SessionId
- Author:
- Matthias Reichart
-
Method Summary
Modifier and TypeMethodDescriptionReturns the mandator of this jobThis methods return the SessionId that has been set by the userThis methods returns the transactional object.booleanThis methods returnstruewhen the last transactional object will be returned bygetTransactionalObject.voidThis method logs an info message into the Job-Message database and can be viewed via JobController in Nuclos by opending the corresponding JobvoidjoblogError(String message) This method logs an error message into the Job-Message database and can be viewed via JobController in Nuclos by opending the corresponding JobvoidjoblogWarn(String message) This method logs a warning message into the Job-Message database and can be viewed via JobController in Nuclos by opending the corresponding JobvoidsetSessionId(Long sessionId) This method sets the SessionId that is passed as argumentMethods inherited from interface org.nuclos.api.context.LogContext
log, logError, logWarn
-
Method Details
-
setSessionId
This method sets the SessionId that is passed as argument- Parameters:
sessionId-
-
getSessionId
Long getSessionId()This methods return the SessionId that has been set by the user- Returns:
-
getMandator
NuclosMandator getMandator()Returns the mandator of this job- Returns:
-
joblog
This method logs an info message into the Job-Message database and can be viewed via JobController in Nuclos by opending the corresponding Job- Parameters:
message-
-
joblogWarn
This method logs a warning message into the Job-Message database and can be viewed via JobController in Nuclos by opending the corresponding Job- Parameters:
message-
-
joblogError
This method logs an error message into the Job-Message database and can be viewed via JobController in Nuclos by opending the corresponding Job- Parameters:
message-
-
getTransactionalObject
Object getTransactionalObject()This methods returns the transactional object. See alsoTransactionalJobRule- Returns:
-
isLastTransactionalObject
boolean isLastTransactionalObject()This methods returnstruewhen the last transactional object will be returned bygetTransactionalObject. See alsoTransactionalJobRule- Returns:
-