use of org.bimserver.notifications.ChangeProgressTopicOnProjectTopic in project BIMserver by opensourceBIM.
the class NotificationRegistryServiceImpl method registerChangeProgressOnProject.
@Override
public void registerChangeProgressOnProject(Long endPointId, Long poid) throws ServerException, UserException {
if (endPointId == null) {
throw new UserException("No endpoint given");
}
ChangeProgressTopicOnProjectTopic changeProgressOnProjectTopic = getBimServer().getNotificationsManager().getChangeProgressOnProjectTopic(poid);
EndPoint endPoint = getEndPoint(endPointId);
try {
changeProgressOnProjectTopic.register(endPoint);
} catch (TopicRegisterException e) {
handleException(e);
}
}
use of org.bimserver.notifications.ChangeProgressTopicOnProjectTopic in project BIMserver by opensourceBIM.
the class NotificationRegistryServiceImpl method unregisterChangeProgressOnProject.
@Override
public void unregisterChangeProgressOnProject(Long endPointId, Long poid) throws ServerException, UserException {
ChangeProgressTopicOnProjectTopic changeProgressOnProjectTopic = getBimServer().getNotificationsManager().getChangeProgressOnProjectTopic(poid);
EndPoint endPoint = getEndPoint(endPointId);
try {
changeProgressOnProjectTopic.unregister(endPoint);
} catch (TopicRegisterException e) {
handleException(e);
}
}
Aggregations