Interface SupervisorMultiTicketsActionValidator


public interface SupervisorMultiTicketsActionValidator
This is an extension point for validation of actions on multiple tickets performed by supervisors. The SupervisorMultiTicketsActionValidator can only be used in the novomind iAGENT Routing process.
Since:
12.40
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    validate(SupervisorMultiTicketsAction supervisorMultiTicketsAction)
    The method is called when the supervisor is trying to perform actions on tickets.
    default void
    validate(SupervisorMultiTicketsCloseAction supervisorMultiTicketsCloseAction)
    The method is called when a supervisor is trying to close tickets.
  • Method Details

    • validate

      default void validate(SupervisorMultiTicketsAction supervisorMultiTicketsAction) throws SupervisorMultiTicketsActionValidationException
      The method is called when the supervisor is trying to perform actions on tickets. Please note that this method is the default method to be called for all kinds of actions supported by this extension point. If you would like to validate only one type of action, please implement one of the specific methods. This method will never be called directly from the backend. The method will only be called by the more specific default methods.
      Parameters:
      supervisorMultiTicketsAction - provides information about the tickets action.
      Throws:
      SupervisorMultiTicketsActionValidationException - Throw a SupervisorMultiTicketsActionValidationException to indicate a validation error. The tickets keep their previous state and the supervisor may try to repeat the action. The SupervisorMultiTicketsActionValidationException.getLocalizedMessage() method will be called to get the error message to be displayed to the supervisor.
      Since:
      12.40
    • validate

      default void validate(SupervisorMultiTicketsCloseAction supervisorMultiTicketsCloseAction) throws SupervisorMultiTicketsActionValidationException
      The method is called when a supervisor is trying to close tickets.
      Parameters:
      supervisorMultiTicketsCloseAction - Provides all required information about the close action.
      Throws:
      SupervisorMultiTicketsActionValidationException - Throw a SupervisorMultiTicketsActionValidationException to indicate a validation error. The tickets keep their previous state and the supervisor may try to close them again. The SupervisorMultiTicketsActionValidationException.getLocalizedMessage() method will be called to get the error message to be displayed to the supervisor. If the SupervisorMultiTicketsActionValidationException#getDialogUrl() method returns a valid url then a custom dialog window with the given url will be shown instead of displaying the error message.
      Since:
      12.40