use of org.apache.ranger.view.VXAsset in project ranger by apache.
the class ServiceUtil method publicObjecttoVXAsset.
public VXAsset publicObjecttoVXAsset(VXRepository vXRepository) {
VXAsset ret = new VXAsset();
publicDataObjectTovXDataObject(vXRepository, ret);
Integer assetType = toAssetType(vXRepository.getRepositoryType());
ret.setAssetType(assetType == null ? -1 : assetType.intValue());
ret.setName(vXRepository.getName());
ret.setDescription(vXRepository.getDescription());
ret.setActiveStatus(vXRepository.getIsActive() ? RangerCommonEnums.STATUS_ENABLED : RangerCommonEnums.STATUS_DISABLED);
ret.setConfig(vXRepository.getConfig());
return ret;
}
Aggregations