Search in sources :

Example 1 with NewExtendedDataOnRevisionTopic

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);
    }
}
Also used : NewExtendedDataOnRevisionTopicKey(org.bimserver.notifications.NewExtendedDataOnRevisionTopicKey) TopicRegisterException(org.bimserver.notifications.TopicRegisterException) NewExtendedDataOnRevisionTopic(org.bimserver.notifications.NewExtendedDataOnRevisionTopic) EndPoint(org.bimserver.endpoints.EndPoint)

Aggregations

EndPoint (org.bimserver.endpoints.EndPoint)1 NewExtendedDataOnRevisionTopic (org.bimserver.notifications.NewExtendedDataOnRevisionTopic)1 NewExtendedDataOnRevisionTopicKey (org.bimserver.notifications.NewExtendedDataOnRevisionTopicKey)1 TopicRegisterException (org.bimserver.notifications.TopicRegisterException)1