use of org.wso2.carbon.apimgt.rest.api.service.catalog.dto.ServiceInfoListDTO in project carbon-apimgt by wso2.
the class ServiceEntryMappingUtil method fromServiceInfoDTOToServiceInfoListDTO.
/**
* Convert list of ServiceInfoDTO objects to ServiceInfoListDTO object
*
* @param servicesList list of ServiceInfoDTO objects
* @return build the ServiceInfoListDTO DTO object
*/
public static ServiceInfoListDTO fromServiceInfoDTOToServiceInfoListDTO(List<ServiceInfoDTO> servicesList) {
ServiceInfoListDTO serviceInfoListDTO = new ServiceInfoListDTO();
serviceInfoListDTO.setCount(servicesList.size());
serviceInfoListDTO.setList(servicesList);
return serviceInfoListDTO;
}
use of org.wso2.carbon.apimgt.rest.api.service.catalog.dto.ServiceInfoListDTO in project carbon-apimgt by wso2.
the class ServiceEntryMappingUtil method getServicesResponsePayloadBuilder.
/**
* Convert list of ServiceInfoDTO objects to ServiceInfoListDTO object
*
* @param servicesList metadata list of services provided in zip
* @return build the ServiceInfoListDTO object
*/
public static ServiceInfoListDTO getServicesResponsePayloadBuilder(List<ServiceInfoDTO> servicesList) {
ServiceInfoListDTO serviceInfoListDTO = new ServiceInfoListDTO();
serviceInfoListDTO.setCount(servicesList.size());
serviceInfoListDTO.setList(servicesList);
return serviceInfoListDTO;
}
Aggregations