Search in sources :

Example 1 with VXDataObject

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);
}
Also used : VXDataObject(org.apache.ranger.view.VXDataObject) Test(org.junit.Test)

Example 2 with VXDataObject

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;
}
Also used : VXDataObject(org.apache.ranger.view.VXDataObject)

Example 3 with VXDataObject

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;
}
Also used : VXDataObject(org.apache.ranger.view.VXDataObject)

Example 4 with VXDataObject

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;
}
Also used : VXDataObject(org.apache.ranger.view.VXDataObject)

Aggregations

VXDataObject (org.apache.ranger.view.VXDataObject)4 Test (org.junit.Test)1