Search in sources :

Example 1 with ServiceInfoListDTO

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;
}
Also used : ServiceInfoListDTO(org.wso2.carbon.apimgt.rest.api.service.catalog.dto.ServiceInfoListDTO)

Example 2 with 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;
}
Also used : ServiceInfoListDTO(org.wso2.carbon.apimgt.rest.api.service.catalog.dto.ServiceInfoListDTO)

Aggregations

ServiceInfoListDTO (org.wso2.carbon.apimgt.rest.api.service.catalog.dto.ServiceInfoListDTO)2