Class RequisitionGenerator

java.lang.Object
org.opennms.pris.RequisitionGenerator

public class RequisitionGenerator extends Object
Generates a requisition. The requisition provider generates a requisition for a configured instance. The requisition generation is a two step process. The fist step is to load the information required to generate the requisition from a source. The second step is to map this data to a OpenNMS requisition. The source and mapping implementation to use is loaded from the configuration of the instance for which the requisition is created.
Author:
Dustin Frisch <fooker@lab.sh>
  • Constructor Details

    • RequisitionGenerator

      public RequisitionGenerator(String instance)
      Creates a new requisition provider.
      Parameters:
      instance - the name of the instance
  • Method Details

    • generate

      public Requisition generate(String instance) throws Exception
      Generates a requisition.
      Parameters:
      instance - of the requisition
      Returns:
      the generated requisition
      Throws:
      Exception