Search in sources :

Example 26 with VXUserPermission

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

the class XUserPermissionServiceBase method searchXUserPermission.

/**
 * @param searchCriteria
 * @return
 */
public VXUserPermissionList searchXUserPermission(SearchCriteria searchCriteria) {
    VXUserPermissionList returnList = new VXUserPermissionList();
    List<VXUserPermission> vXUserPermissions = new ArrayList<VXUserPermission>();
    List<T> resultList = searchResources(searchCriteria, searchFields, sortFields, returnList);
    // Iterate over the result list and create the return list
    for (T gjXUser : resultList) {
        VXUserPermission vXUserPermission = populateViewBean(gjXUser);
        vXUserPermissions.add(vXUserPermission);
    }
    returnList.setvXModuleDef(vXUserPermissions);
    return returnList;
}
Also used : VXUserPermissionList(org.apache.ranger.view.VXUserPermissionList) ArrayList(java.util.ArrayList) VXUserPermission(org.apache.ranger.view.VXUserPermission)

Aggregations

VXUserPermission (org.apache.ranger.view.VXUserPermission)26 Test (org.junit.Test)17 ArrayList (java.util.ArrayList)16 VXGroupPermission (org.apache.ranger.view.VXGroupPermission)14 Date (java.util.Date)12 XXUserPermission (org.apache.ranger.entity.XXUserPermission)12 XXGroupPermission (org.apache.ranger.entity.XXGroupPermission)11 XXModuleDef (org.apache.ranger.entity.XXModuleDef)11 XXPortalUser (org.apache.ranger.entity.XXPortalUser)10 XXPortalUserRole (org.apache.ranger.entity.XXPortalUserRole)10 XXPortalUserRoleDao (org.apache.ranger.db.XXPortalUserRoleDao)9 VXPortalUser (org.apache.ranger.view.VXPortalUser)9 VXString (org.apache.ranger.view.VXString)9 XXGroupPermissionDao (org.apache.ranger.db.XXGroupPermissionDao)6 XXModuleDefDao (org.apache.ranger.db.XXModuleDefDao)6 XXUserPermissionDao (org.apache.ranger.db.XXUserPermissionDao)6 XXPortalUserDao (org.apache.ranger.db.XXPortalUserDao)5 VXModuleDef (org.apache.ranger.view.VXModuleDef)4 VXStringList (org.apache.ranger.view.VXStringList)4 VXPasswordChange (org.apache.ranger.view.VXPasswordChange)3