Interface JobContext

All Superinterfaces:
LogContext

public interface JobContext extends LogContext
JobContext represents the context used in Job-Rule

It contains the SessionId

Author:
Matthias Reichart
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the mandator of this job
    This methods return the SessionId that has been set by the user
    This methods returns the transactional object.
    boolean
    This methods returns true when the last transactional object will be returned by getTransactionalObject.
    void
    joblog(String message)
    This method logs an info message into the Job-Message database and can be viewed via JobController in Nuclos by opending the corresponding Job
    void
    This method logs an error message into the Job-Message database and can be viewed via JobController in Nuclos by opending the corresponding Job
    void
    joblogWarn(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 Job
    void
    setSessionId(Long sessionId)
    This method sets the SessionId that is passed as argument

    Methods inherited from interface org.nuclos.api.context.LogContext

    log, logError, logWarn
  • Method Details

    • setSessionId

      void setSessionId(Long sessionId)
      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

      void joblog(String message)
      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

      void joblogWarn(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 Job
      Parameters:
      message -
    • joblogError

      void joblogError(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 Job
      Parameters:
      message -
    • getTransactionalObject

      Object getTransactionalObject()
      This methods returns the transactional object. See also TransactionalJobRule
      Returns:
    • isLastTransactionalObject

      boolean isLastTransactionalObject()
      This methods returns true when the last transactional object will be returned by getTransactionalObject. See also TransactionalJobRule
      Returns: