use of org.wso2.carbon.apimgt.internal.service.dto.ScopesListDTO in project carbon-apimgt by wso2.
the class SubscriptionValidationDataUtil method fromScopeListToScopeDtoList.
public static ScopesListDTO fromScopeListToScopeDtoList(List<Scope> model) {
ScopesListDTO scopesListDTO = new ScopesListDTO();
List<ScopeDTO> scopeDTOList = new ArrayList<>();
for (Scope scope : model) {
scopeDTOList.add(fromScopeToScopeDto(scope));
}
scopesListDTO.setList(scopeDTOList);
scopesListDTO.setCount(scopeDTOList.size());
return scopesListDTO;
}
Aggregations