Search in sources :

Example 1 with NewRevisionTopic

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

Aggregations

EndPoint (org.bimserver.endpoints.EndPoint)1 NewRevisionTopic (org.bimserver.notifications.NewRevisionTopic)1 TopicRegisterException (org.bimserver.notifications.TopicRegisterException)1