Class JaxbJobContext

java.lang.Object
org.opencastproject.job.api.JaxbJobContext
All Implemented Interfaces:
JobContext

public class JaxbJobContext extends Object implements JobContext
JAXB annotated implementation of the job context.
  • Field Details

    • id

      protected Long id
      The context identifier, which is equal to the root job identifier
    • properties

      protected HashMap<String,String> properties
      The properties
  • Constructor Details

    • JaxbJobContext

      public JaxbJobContext()
      The default no arg constructor needed by JAXB
    • JaxbJobContext

      public JaxbJobContext(JobContext jobContext)
      Constructs a jaxb job context from another context.
      Parameters:
      jobContext - the template
  • Method Details

    • getProperties

      public HashMap<String,String> getProperties()
      Returns any additional contextual data.
      Specified by:
      getProperties in interface JobContext
      Returns:
      the contextual data
      See Also:
    • setProperties

      public void setProperties(Map<String,String> properties)
      Sets the context properties.
      Parameters:
      properties - the properties
    • getId

      public Long getId()
      Gets the identifier for this context.
      Specified by:
      getId in interface JobContext
      Returns:
      the context identifier
    • setId

      public void setId(Long id)
      Sets the context identifier.
      Parameters:
      id - the context id to set the id