use of com.serotonin.m2m2.db.dao.DataPointDao in project ma-core-public by infiniteautomation.
the class DeltamationCommon method parsePoint.
public static int parsePoint(JsonObject jsonObject, String name) throws TranslatableJsonException {
DataPointDao points = DataPointDao.instance;
String xid = jsonObject.getString(name);
Integer dpid = points.getIdByXid(xid);
if (dpid == null) {
throw new TranslatableJsonException("validate.pointMissing", name, xid);
}
return dpid;
}
Aggregations