public void run(){ try { callback.success(syncService.login(username, password)); } catch (Throwable e) { callback.error(e); } } });
public void run(){ try { callback.success(syncService.getLoggedInUser()); } catch (Throwable e) { callback.error(e); } } });
public void run(){ try { callback.success(syncService.loginUserToken(token)); } catch (Throwable e) { callback.error(e); } } });
public void authenticate() throws ServerException, UserException { try { AuthInterface authInterface = channel.get(AuthInterface.class); if (authenticationInfo instanceof UsernamePasswordAuthenticationInfo) { UsernamePasswordAuthenticationInfo usernamePasswordAuthenticationInfo = (UsernamePasswordAuthenticationInfo) authenticationInfo; setToken(authInterface.login(usernamePasswordAuthenticationInfo.getUsername(), usernamePasswordAuthenticationInfo.getPassword())); } else if (authenticationInfo instanceof AutologinAuthenticationInfo) { AutologinAuthenticationInfo autologinAuthenticationInfo = (AutologinAuthenticationInfo) authenticationInfo; setToken(autologinAuthenticationInfo.getAutologinCode()); } else if (authenticationInfo instanceof TokenAuthentication) { TokenAuthentication tokenAuthentication = (TokenAuthentication)authenticationInfo; setToken(tokenAuthentication.getToken()); } else if (authenticationInfo instanceof UserTokenAuthentication) { UserTokenAuthentication tokenAuthentication = (UserTokenAuthentication)authenticationInfo; setToken(authInterface.loginUserToken(tokenAuthentication.getToken())); } else if (authenticationInfo instanceof SystemAuthentication) { } } catch (PublicInterfaceNotFoundException e) { LOGGER.error("", e); } }
public void run(){ try { callback.success(syncService.changePassword(uoid, oldPassword, newPassword)); } catch (Exception e) { callback.error(e); } } });
public void run(){ try { syncService.requestPasswordChange(username, resetUrl, includeSiteAddress); callback.success(); } catch (Throwable e) { callback.error(e); } } });
public void run(){ try { callback.success(syncService.isLoggedIn()); } catch (Throwable e) { callback.error(e); } } });
public void run(){ try { syncService.logout(); callback.success(); } catch (Throwable e) { callback.error(e); } } });
public void run(){ try { syncService.setHash(uoid, hash, salt); callback.success(); } catch (Throwable e) { callback.error(e); } } });
public void run(){ try { callback.success(syncService.getAccessMethod()); } catch (Throwable e) { callback.error(e); } } });
public void run(){ try { callback.success(syncService.changePassword(uoid, oldPassword, newPassword)); } catch (Throwable e) { callback.error(e); } } });
public void run(){ try { syncService.requestPasswordChange(username, resetUrl, false); callback.success(); } catch (Exception e) { callback.error(e); } } });
serviceMap = getBimServer().getServiceFactory().get(token, AccessMethod.SYNDICATION); if (serviceMap.getAuthInterface().login(username, password) != null) { String requestURI = request.getRequestURI(); response.setContentType("application/atom+xml");
public void run(){ try { callback.success(syncService.getLoggedInUser()); } catch (Exception e) { callback.error(e); } } });
try { ServiceMap serviceMap = bimServer.getServiceFactory().get(token, AccessMethod.JSON); uoid = serviceMap.getBimServerAuthInterface().getLoggedInUser().getOid();
try { Long topicId = bimServerClientInterface.getRegistry().registerProgressOnRevisionTopic(SProgressTopicType.RUNNING_SERVICE, poid, roid, "Running " + name); RunningService runningService = new RunningService(topicId, bimServerClientInterface, pluginConfiguration, bimServerClientInterface.getAuthInterface().getLoggedInUser().getUsername()); try { SLongActionState state = new SLongActionState();