use of org.apache.ranger.view.VXDataObject in project ranger by apache.
the class TestRangerBizUtil method testGetVObject_NOObjId.
@Test
public void testGetVObject_NOObjId() {
VXDataObject objchk = rangerBizUtil.getVObject(RangerConstants.CLASS_TYPE_USER_PROFILE, null);
Assert.assertNull(objchk);
}
use of org.apache.ranger.view.VXDataObject in project ranger by apache.
the class ServiceUtil method publicDataObjectTovXDataObject.
protected VXDataObject publicDataObjectTovXDataObject(VXDataObject publicDataObject, VXDataObject vXDataObject) {
VXDataObject ret = vXDataObject;
ret.setId(publicDataObject.getId());
ret.setCreateDate(publicDataObject.getCreateDate());
ret.setUpdateDate(publicDataObject.getUpdateDate());
ret.setOwner(publicDataObject.getOwner());
ret.setUpdatedBy(publicDataObject.getUpdatedBy());
return ret;
}
use of org.apache.ranger.view.VXDataObject in project ranger by apache.
the class ServiceUtil method rangerObjectToDataObject.
private VXDataObject rangerObjectToDataObject(RangerBaseModelObject rangerObject, VXDataObject dataObject) {
VXDataObject ret = dataObject;
ret.setId(rangerObject.getId());
ret.setCreateDate(rangerObject.getCreateTime());
ret.setUpdateDate(rangerObject.getUpdateTime());
ret.setOwner(rangerObject.getCreatedBy());
ret.setUpdatedBy(rangerObject.getUpdatedBy());
return ret;
}
use of org.apache.ranger.view.VXDataObject in project ranger by apache.
the class ServiceUtil method vXDataObjectToPublicDataObject.
private VXDataObject vXDataObjectToPublicDataObject(VXDataObject publicDataObject, VXDataObject vXdataObject) {
VXDataObject ret = publicDataObject;
ret.setId(vXdataObject.getId());
ret.setCreateDate(vXdataObject.getCreateDate());
ret.setUpdateDate(vXdataObject.getUpdateDate());
ret.setOwner(vXdataObject.getOwner());
ret.setUpdatedBy(vXdataObject.getUpdatedBy());
return ret;
}
Aggregations