Search in sources :

Example 1 with ScopesListDTO

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;
}
Also used : ScopesListDTO(org.wso2.carbon.apimgt.internal.service.dto.ScopesListDTO) Scope(org.wso2.carbon.apimgt.api.model.Scope) ScopeDTO(org.wso2.carbon.apimgt.internal.service.dto.ScopeDTO) ArrayList(java.util.ArrayList)

Aggregations

ArrayList (java.util.ArrayList)1 Scope (org.wso2.carbon.apimgt.api.model.Scope)1 ScopeDTO (org.wso2.carbon.apimgt.internal.service.dto.ScopeDTO)1 ScopesListDTO (org.wso2.carbon.apimgt.internal.service.dto.ScopesListDTO)1