use of org.bimserver.notifications.NewRevisionOnSpecificProjectTopic in project BIMserver by opensourceBIM.
the class NotificationRegistryServiceImpl method registerNewRevisionOnSpecificProjectHandler.
@Override
public void registerNewRevisionOnSpecificProjectHandler(Long endPointId, Long poid) throws ServerException, UserException {
EndPoint endPoint = getEndPoint(endPointId);
NewRevisionOnSpecificProjectTopic newRevisionOnSpecificProjectTopic = getBimServer().getNotificationsManager().getOrCreateNewRevisionOnSpecificProjectTopic(new NewRevisionOnSpecificProjectTopicKey(poid));
try {
newRevisionOnSpecificProjectTopic.register(endPoint);
} catch (TopicRegisterException e) {
handleException(e);
}
}
Aggregations