InventoryActionApiServiceImpl.java
/*
* Copyright 2026 Global Crop Diversity Trust
* Licensed under the Apache License, Version 2.0
* See LICENSE file in project root folder or http://www.apache.org/licenses/LICENSE-2.0
*/
package org.gringlobal.api.v2.facade.impl;
import org.gringlobal.api.model.InventoryActionDTO;
import org.gringlobal.api.model.InventoryActionRequestDTO;
import org.gringlobal.api.v2.facade.InventoryActionApiService;
import org.gringlobal.model.InventoryAction;
import org.gringlobal.service.InventoryActionService;
import org.gringlobal.service.filter.InventoryActionFilter;
import org.springframework.stereotype.Component;
@Component
public class InventoryActionApiServiceImpl extends APIBaseActionSupportFacade<InventoryActionService, InventoryActionDTO, InventoryAction, InventoryActionFilter, InventoryActionRequestDTO, InventoryActionService.InventoryActionRequest, InventoryActionService.InventoryActionScheduleFilter>
implements InventoryActionApiService {
@Override
protected InventoryAction convert(InventoryActionDTO source) {
return mapper.map(source);
}
@Override
protected InventoryActionDTO convert(InventoryAction source) {
return mapper.map(source);
}
@Override
protected InventoryActionService.InventoryActionRequest convertRequest(InventoryActionRequestDTO source) {
return mapper.map(source);
}
@Override
protected InventoryActionRequestDTO convertRequest(InventoryActionService.InventoryActionRequest source) {
return mapper.map(source);
}
}