Search in sources :

Example 6 with RangerPluginInfo

use of org.apache.ranger.plugin.model.RangerPluginInfo in project ranger by apache.

the class RangerPluginInfoService method populateViewObject.

public RangerPluginInfo populateViewObject(XXPluginInfo xObj) {
    RangerPluginInfo ret = new RangerPluginInfo();
    ret.setId(xObj.getId());
    ret.setCreateTime(xObj.getCreateTime());
    ret.setUpdateTime(xObj.getUpdateTime());
    ret.setServiceName(xObj.getServiceName());
    ret.setHostName(xObj.getHostName());
    ret.setAppType(xObj.getAppType());
    ret.setIpAddress(xObj.getIpAddress());
    ret.setInfo(jsonStringToMap(xObj.getInfo(), null, false));
    return ret;
}
Also used : RangerPluginInfo(org.apache.ranger.plugin.model.RangerPluginInfo)

Aggregations

RangerPluginInfo (org.apache.ranger.plugin.model.RangerPluginInfo)6 XXPluginInfo (org.apache.ranger.entity.XXPluginInfo)2 ArrayList (java.util.ArrayList)1 Date (java.util.Date)1 GET (javax.ws.rs.GET)1 Path (javax.ws.rs.Path)1 Produces (javax.ws.rs.Produces)1 WebApplicationException (javax.ws.rs.WebApplicationException)1 XXService (org.apache.ranger.entity.XXService)1 XXServiceVersionInfo (org.apache.ranger.entity.XXServiceVersionInfo)1 PList (org.apache.ranger.plugin.store.PList)1 RangerRESTUtils (org.apache.ranger.plugin.util.RangerRESTUtils)1 SearchFilter (org.apache.ranger.plugin.util.SearchFilter)1 RangerPluginInfoList (org.apache.ranger.view.RangerPluginInfoList)1 PreAuthorize (org.springframework.security.access.prepost.PreAuthorize)1