public void run(){ try { syncService.newExtendedData(roid, edid); callback.success(); } catch (Throwable e) { callback.error(e); } } });
public void run(){ try { syncService.newProgressOnProjectTopic(poid, topicId); callback.success(); } catch (Throwable e) { callback.error(e); } } });
public void run(){ try { syncService.newProgressOnRevisionTopic(poid, roid, topicId); callback.success(); } catch (Throwable e) { callback.error(e); } } });
public void run(){ try { syncService.newRevision(poid, roid); callback.success(); } catch (Throwable e) { callback.error(e); } } });
public void run(){ try { syncService.newProject(poid); callback.success(); } catch (Throwable e) { callback.error(e); } } });
public void run(){ try { syncService.progress(topicId, state); callback.success(); } catch (Throwable e) { callback.error(e); } } });
public void run(){ try { syncService.newUser(uoid); callback.success(); } catch (Throwable e) { callback.error(e); } } });
@Override public void map(final EndPoint endPoint) throws UserException, ServerException { endPoint.getNotificationInterface().newProgressOnServerTopic(notification.getTopicId()); } });
public void run(){ try { syncService.closedProgressOnRevisionTopic(poid, roid, topicId); callback.success(); } catch (Throwable e) { callback.error(e); } } });
public void run(){ try { syncService.closedProgressOnProjectTopic(poid, topicId); callback.success(); } catch (Throwable e) { callback.error(e); } } });
@Override public void map(final EndPoint endPoint) throws UserException, ServerException, BimserverDatabaseException { User user = session.get(StorePackage.eINSTANCE.getUser(), endPoint.getUoid(), OldQuery.getDefault()); Project project = session.get(StorePackage.eINSTANCE.getUser(), poid, OldQuery.getDefault()); if (user.getUserType() == UserType.ADMIN || user.getHasRightsOn().contains(project)) { endPoint.getNotificationInterface().newRevision(poid, roid); } } });
@Override public void map(final EndPoint endPoint) throws UserException, ServerException, BimserverDatabaseException { User user = session.get(StorePackage.eINSTANCE.getUser(), endPoint.getUoid(), OldQuery.getDefault()); Project project = session.get(StorePackage.eINSTANCE.getUser(), poid, OldQuery.getDefault()); if (user.getUserType() == UserType.ADMIN || user.getHasRightsOn().contains(project)) { endPoint.getNotificationInterface().newProject(poid); } } });
@Override public void map(EndPoint endPoint) throws UserException, ServerException, BimserverDatabaseException { try { endPoint.getNotificationInterface().progress(key.getId(), new SConverter().convertToSObject(state)); } catch (Exception e) { LOGGER.error("", e); } } });
@Override public void map(EndPoint endPoint) throws UserException, ServerException, BimserverDatabaseException { User actingUser = session.get(StorePackage.eINSTANCE.getUser(), endPoint.getUoid(), OldQuery.getDefault()); if (actingUser.getUserType() == UserType.ADMIN) { endPoint.getNotificationInterface().newUser(uoid); } }}); }
public void run(){ try { syncService.newProgressOnServerTopic(topicId); callback.success(); } catch (Throwable e) { callback.error(e); } } });
@Override public void map(EndPoint endPoint) throws UserException, ServerException, BimserverDatabaseException { User user = session.get(StorePackage.eINSTANCE.getUser(), endPoint.getUoid(), OldQuery.getDefault()); Project notificationProject = session.get(StorePackage.eINSTANCE.getUser(), poid, OldQuery.getDefault()); Project registrationProject = session.get(StorePackage.eINSTANCE.getUser(), key.getPoid(), OldQuery.getDefault()); if (notificationProject.getOid() == registrationProject.getOid()) { if (user.getUserType() == UserType.ADMIN || user.getHasRightsOn().contains(notificationProject)) { endPoint.getNotificationInterface().newRevision(poid, roid); } } }}); }
@Override public void map(final EndPoint endPoint) throws UserException, ServerException { endPoint.getNotificationInterface().newProgressOnProjectTopic(notification.getPoid(), notification.getTopicId()); } });
@Override public void map(final EndPoint endPoint) throws UserException, ServerException { endPoint.getNotificationInterface().newProgressOnRevisionTopic(notification.getPoid(), notification.getRoid(), notification.getTopicId()); } });
@Override public void map(EndPoint endPoint) throws UserException, ServerException, BimserverDatabaseException { endPoint.getNotificationInterface().newExtendedData(key.getRoid(), newExtendedDataOnRevisionNotification.getEdid()); }}); }