Search in sources :

Example 1 with NewRevisionOnSpecificProjectTopic

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

the class NotificationRegistryServiceImpl method registerNewRevisionOnSpecificProjectHandler.

@Override
public void registerNewRevisionOnSpecificProjectHandler(Long endPointId, Long poid) throws ServerException, UserException {
    EndPoint endPoint = getEndPoint(endPointId);
    NewRevisionOnSpecificProjectTopic newRevisionOnSpecificProjectTopic = getBimServer().getNotificationsManager().getOrCreateNewRevisionOnSpecificProjectTopic(new NewRevisionOnSpecificProjectTopicKey(poid));
    try {
        newRevisionOnSpecificProjectTopic.register(endPoint);
    } catch (TopicRegisterException e) {
        handleException(e);
    }
}
Also used : TopicRegisterException(org.bimserver.notifications.TopicRegisterException) NewRevisionOnSpecificProjectTopic(org.bimserver.notifications.NewRevisionOnSpecificProjectTopic) NewRevisionOnSpecificProjectTopicKey(org.bimserver.notifications.NewRevisionOnSpecificProjectTopicKey) EndPoint(org.bimserver.endpoints.EndPoint)

Aggregations

EndPoint (org.bimserver.endpoints.EndPoint)1 NewRevisionOnSpecificProjectTopic (org.bimserver.notifications.NewRevisionOnSpecificProjectTopic)1 NewRevisionOnSpecificProjectTopicKey (org.bimserver.notifications.NewRevisionOnSpecificProjectTopicKey)1 TopicRegisterException (org.bimserver.notifications.TopicRegisterException)1