use of org.openlmis.stockmanagement.domain.sourcedestination.ValidDestinationAssignment in project openlmis-stockmanagement by OpenLMIS.
the class ValidDestinationAssignmentDataBuilder method createDestination.
/**
* Create a valid destination assignment.
*
* @param programId program ID
* @param facilityTypeId facility type ID
* @param destinationId destination ID
* @return valid destination assignment
*/
public static ValidDestinationAssignment createDestination(UUID programId, UUID facilityTypeId, UUID destinationId) {
Node node = new Node();
node.setReferenceId(destinationId);
ValidDestinationAssignment assignment = new ValidDestinationAssignment();
assignment.setProgramId(programId);
assignment.setFacilityTypeId(facilityTypeId);
assignment.setNode(node);
return assignment;
}
Aggregations