use of com.infiniteautomation.mango.util.exception.TranslatableIllegalStateException in project ma-core-public by infiniteautomation.
the class DataSourceService method forceDataSourcePoll.
private void forceDataSourcePoll(DataSourceVO vo) {
if (vo instanceof PollingDataSourceVO) {
PermissionHolder user = Common.getUser();
ensureEditPermission(user, vo);
Common.runtimeManager.forceDataSourcePoll(vo.getId());
} else {
throw new TranslatableIllegalStateException(new TranslatableMessage("dsEdit.failedForcePoll", vo.getName()));
}
}
Aggregations