Class WorkOrderNoteUtil
java.lang.Object
overit.geocallapp.wfm.core.ux.workorder.note.WorkOrderNoteUtil
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 Summary
Modifier and TypeMethodDescriptionstatic DBViewbuildWOOperationLabels(List<BOWorkOrderOperation> operations) Builds a DBView with work order operation labels enriched with type descriptions.protected static BOWorkOrderOperationTypeloadWorkOrderTypeOperation(Long woOperationTypeId) Loads a work order operation type by its ID.
-
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 occursDAValidateException- 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 loadingDAValidateException- if the work order operation type is not found
-