Search in sources :

Example 11 with TopicRegisterException

use of org.bimserver.notifications.TopicRegisterException 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)11 TopicRegisterException (org.bimserver.notifications.TopicRegisterException)11 UserException (org.bimserver.shared.exceptions.UserException)3 ChangeProgressTopicOnProjectTopic (org.bimserver.notifications.ChangeProgressTopicOnProjectTopic)2 ChangeProgressTopicOnRevisionTopic (org.bimserver.notifications.ChangeProgressTopicOnRevisionTopic)2 ChangeProgressTopicOnServerTopic (org.bimserver.notifications.ChangeProgressTopicOnServerTopic)2 ProgressTopic (org.bimserver.notifications.ProgressTopic)2 SLongActionState (org.bimserver.interfaces.objects.SLongActionState)1 LongActionState (org.bimserver.models.store.LongActionState)1 NewExtendedDataOnRevisionTopic (org.bimserver.notifications.NewExtendedDataOnRevisionTopic)1 NewExtendedDataOnRevisionTopicKey (org.bimserver.notifications.NewExtendedDataOnRevisionTopicKey)1 NewRevisionOnSpecificProjectTopic (org.bimserver.notifications.NewRevisionOnSpecificProjectTopic)1 NewRevisionOnSpecificProjectTopicKey (org.bimserver.notifications.NewRevisionOnSpecificProjectTopicKey)1 NewRevisionTopic (org.bimserver.notifications.NewRevisionTopic)1 NotificationRegistryInterface (org.bimserver.shared.interfaces.NotificationRegistryInterface)1