Class ResQualSuggestionServiceHelper

All Implemented Interfaces:
SuggestionServiceHelper

public class ResQualSuggestionServiceHelper extends AsnSuggestionServiceHelper
SuggestionsServiceHelper for the CAT REST standards suggestion service, operating over res_qual framework, which presents special considerations ...
Author:
ostwald
  • Constructor Details

    • ResQualSuggestionServiceHelper

      public ResQualSuggestionServiceHelper(SchemEditForm sef, CATHelperPlugin frameworkPlugin)
      Constructor for the ResQualSuggestionServiceHelper object
      Parameters:
      sef - the SchemEditForm instance
      frameworkPlugin - the framework plugin for the res_qual framework
  • Method Details

    • getStandardsManager

      public ResQualStandardsManager getStandardsManager()
      Gets the standardsManager attribute of the ResQualSuggestionServiceHelper object
      Specified by:
      getStandardsManager in interface SuggestionServiceHelper
      Overrides:
      getStandardsManager in class AsnSuggestionServiceHelper
      Returns:
      The standardsManager value
    • setXpath

      public void setXpath(String path)
      Sets the xpath attribute of the ResQualSuggestionServiceHelper object
      Parameters:
      path - The new xpath value
    • rectifyInstanceDoc

      public void rectifyInstanceDoc(HttpServletRequest request) throws Exception
      Update instanceDocument to make the benchmark elements in the instance doc correspond to the selected standards in the CAT UI.

      Called by SchemEditForm.validate() to pre-process the instanceDoc.

      Parameters:
      request - the Request
      Throws:
      Exception - NOT YET DOCUMENTED
    • updateStandardsDisplay

      public void updateStandardsDisplay(String displayContent) throws Exception
      Initialize the collapse bean to show selected and suggested standards nodes in the display specified by "displayContent".
      Specified by:
      updateStandardsDisplay in interface SuggestionServiceHelper
      Overrides:
      updateStandardsDisplay in class CATServiceHelper
      Parameters:
      displayContent - specifies what type of standards display is to be updated.
      Throws:
      Exception - NOT YET DOCUMENTED