Search in sources :

Example 1 with ChangeProgressTopicOnServerTopic

use of org.bimserver.notifications.ChangeProgressTopicOnServerTopic in project BIMserver by opensourceBIM.

the class NotificationRegistryServiceImpl method unregisterChangeProgressOnServer.

@Override
public void unregisterChangeProgressOnServer(Long endPointId) throws ServerException, UserException {
    ChangeProgressTopicOnServerTopic changeProgressTopicOnServerTopic = getBimServer().getNotificationsManager().getChangeProgressTopicOnServerTopic();
    EndPoint endPoint = getEndPoint(endPointId);
    try {
        changeProgressTopicOnServerTopic.unregister(endPoint);
    } catch (TopicRegisterException e) {
        handleException(e);
    }
}
Also used : TopicRegisterException(org.bimserver.notifications.TopicRegisterException) ChangeProgressTopicOnServerTopic(org.bimserver.notifications.ChangeProgressTopicOnServerTopic) EndPoint(org.bimserver.endpoints.EndPoint)

Example 2 with ChangeProgressTopicOnServerTopic

use of org.bimserver.notifications.ChangeProgressTopicOnServerTopic in project BIMserver by opensourceBIM.

the class NotificationRegistryServiceImpl method registerChangeProgressOnServer.

@Override
public void registerChangeProgressOnServer(Long endPointId) throws ServerException, UserException {
    ChangeProgressTopicOnServerTopic changeProgressTopicOnServerTopic = getBimServer().getNotificationsManager().getChangeProgressTopicOnServerTopic();
    EndPoint endPoint = getEndPoint(endPointId);
    try {
        changeProgressTopicOnServerTopic.register(endPoint);
    } catch (TopicRegisterException e) {
        handleException(e);
    }
}
Also used : TopicRegisterException(org.bimserver.notifications.TopicRegisterException) ChangeProgressTopicOnServerTopic(org.bimserver.notifications.ChangeProgressTopicOnServerTopic) EndPoint(org.bimserver.endpoints.EndPoint)

Aggregations

EndPoint (org.bimserver.endpoints.EndPoint)2 ChangeProgressTopicOnServerTopic (org.bimserver.notifications.ChangeProgressTopicOnServerTopic)2 TopicRegisterException (org.bimserver.notifications.TopicRegisterException)2