use of org.bimserver.notifications.NewRevisionTopic in project BIMserver by opensourceBIM.
the class NotificationRegistryServiceImpl method registerNewRevisionHandler.
@Override
public void registerNewRevisionHandler(Long endPointId) throws ServerException, UserException {
EndPoint endPoint = getEndPoint(endPointId);
NewRevisionTopic newRevisionTopic = getBimServer().getNotificationsManager().getNewRevisionTopic();
try {
newRevisionTopic.register(endPoint);
} catch (TopicRegisterException e) {
handleException(e);
}
}
Aggregations