Search in sources :

Example 1 with ChangeProgressTopicOnRevisionTopic

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

the class NotificationRegistryServiceImpl method registerChangeProgressOnRevision.

@Override
public void registerChangeProgressOnRevision(Long endPointId, Long poid, Long roid) throws ServerException, UserException {
    ChangeProgressTopicOnRevisionTopic changeProgressOnProjectTopic = getBimServer().getNotificationsManager().getChangeProgressOnRevisionTopic(poid, roid);
    EndPoint endPoint = getEndPoint(endPointId);
    try {
        changeProgressOnProjectTopic.register(endPoint);
    } catch (TopicRegisterException e) {
        handleException(e);
    }
}
Also used : TopicRegisterException(org.bimserver.notifications.TopicRegisterException) ChangeProgressTopicOnRevisionTopic(org.bimserver.notifications.ChangeProgressTopicOnRevisionTopic) EndPoint(org.bimserver.endpoints.EndPoint)

Example 2 with ChangeProgressTopicOnRevisionTopic

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

the class NotificationRegistryServiceImpl method unregisterChangeProgressOnRevision.

@Override
public void unregisterChangeProgressOnRevision(Long endPointId, Long poid, Long roid) throws ServerException, UserException {
    ChangeProgressTopicOnRevisionTopic changeProgressOnProjectTopic = getBimServer().getNotificationsManager().getChangeProgressOnRevisionTopic(poid, roid);
    EndPoint endPoint = getEndPoint(endPointId);
    try {
        changeProgressOnProjectTopic.unregister(endPoint);
    } catch (TopicRegisterException e) {
        handleException(e);
    }
}
Also used : TopicRegisterException(org.bimserver.notifications.TopicRegisterException) ChangeProgressTopicOnRevisionTopic(org.bimserver.notifications.ChangeProgressTopicOnRevisionTopic) EndPoint(org.bimserver.endpoints.EndPoint)

Aggregations

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