public void run(){ try { syncService.newUser(uoid); callback.success(); } catch (Throwable e) { callback.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); } }}); }