use of org.bimserver.endpoints.EndPoint 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);
}
}
use of org.bimserver.endpoints.EndPoint in project BIMserver by opensourceBIM.
the class NotificationRegistryServiceImpl method registerNewRevisionHandler.
@Override
public void registerNewRevisionHandler(Long endPointId) throws ServerException, UserException {
EndPoint endPoint = getEndPoint(endPointId);
NewRevisionTopic newRevisionTopic = getBimServer().getNotificationsManager().getNewRevisionTopic();
try {
newRevisionTopic.register(endPoint);
} catch (TopicRegisterException e) {
handleException(e);
}
}
use of org.bimserver.endpoints.EndPoint 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.endpoints.EndPoint in project BIMserver by opensourceBIM.
the class NotificationRegistryServiceImpl method registerNewExtendedDataOnRevisionHandler.
@Override
public void registerNewExtendedDataOnRevisionHandler(Long endPointId, Long roid) throws ServerException, UserException {
EndPoint endPoint = getEndPoint(endPointId);
NewExtendedDataOnRevisionTopic topic = getBimServer().getNotificationsManager().getOrCreateNewExtendedDataOnRevisionTopic(new NewExtendedDataOnRevisionTopicKey(roid));
try {
topic.register(endPoint);
} catch (TopicRegisterException e) {
handleException(e);
}
}
use of org.bimserver.endpoints.EndPoint 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);
}
}
Aggregations