Search in sources :

Example 11 with VXRepository

use of org.apache.ranger.view.VXRepository in project ranger by apache.

the class ServiceUtil method rangerServiceListToPublicObjectList.

public VXRepositoryList rangerServiceListToPublicObjectList(List<RangerService> serviceList) {
    List<VXRepository> repoList = new ArrayList<VXRepository>();
    for (RangerService service : serviceList) {
        VXRepository vXRepo = toVXRepository(service);
        if (vXRepo != null) {
            repoList.add(vXRepo);
        }
    }
    VXRepositoryList vXRepositoryList = new VXRepositoryList(repoList);
    return vXRepositoryList;
}
Also used : VXRepositoryList(org.apache.ranger.view.VXRepositoryList) ArrayList(java.util.ArrayList) RangerService(org.apache.ranger.plugin.model.RangerService) VXRepository(org.apache.ranger.view.VXRepository)

Aggregations

VXRepository (org.apache.ranger.view.VXRepository)11 RangerService (org.apache.ranger.plugin.model.RangerService)6 Test (org.junit.Test)5 ArrayList (java.util.ArrayList)4 VXRepositoryList (org.apache.ranger.view.VXRepositoryList)4 HttpServletRequest (javax.servlet.http.HttpServletRequest)3 VXAsset (org.apache.ranger.view.VXAsset)3 SearchFilter (org.apache.ranger.plugin.util.SearchFilter)2 XXServiceDao (org.apache.ranger.db.XXServiceDao)1 XXService (org.apache.ranger.entity.XXService)1 VXLong (org.apache.ranger.view.VXLong)1