Class WorkOrderNoteUtil

java.lang.Object
overit.geocallapp.wfm.core.ux.workorder.note.WorkOrderNoteUtil

public class WorkOrderNoteUtil extends Object
Utility class for managing work order notes. This class provides utility methods for working with work order notes, including loading work order operation types and wrapping work order operations with labels.
Since:
22.0
  • Method Details

    • buildWOOperationLabels

      public static DBView buildWOOperationLabels(List<BOWorkOrderOperation> operations) throws DAException, DAValidateException
      Builds a DBView with work order operation labels enriched with type descriptions.

      Creates a formatted label combining the operation ordering number and type description in the current user's language.

      Parameters:
      operations - the list of work order operations to process
      Returns:
      a DBView containing operation data with added the description and LABEL columns
      Throws:
      DAException - if a database access error occurs
      DAValidateException - if validation fails during operation type loading
    • loadWorkOrderTypeOperation

      protected static BOWorkOrderOperationType loadWorkOrderTypeOperation(Long woOperationTypeId) throws DAException, DAValidateException
      Loads a work order operation type by its ID.
      Parameters:
      woOperationTypeId - the ID of the work order operation type to load
      Returns:
      the loaded work order operation type
      Throws:
      DAException - if a database error occurs during loading
      DAValidateException - if the work order operation type is not found