use of org.bimserver.notifications.NewExtendedDataOnRevisionTopic in project BIMserver by opensourceBIM.
the class NotificationRegistryServiceImpl method registerNewExtendedDataOnRevisionHandler.
@Override
public void registerNewExtendedDataOnRevisionHandler(Long endPointId, Long roid) throws ServerException, UserException {
EndPoint endPoint = getEndPoint(endPointId);
NewExtendedDataOnRevisionTopic topic = getBimServer().getNotificationsManager().getOrCreateNewExtendedDataOnRevisionTopic(new NewExtendedDataOnRevisionTopicKey(roid));
try {
topic.register(endPoint);
} catch (TopicRegisterException e) {
handleException(e);
}
}
Aggregations