public void run(){ try { syncService.setup(siteAddress, serverName, serverDescription, serverIcon, adminName, adminUsername, adminPassword); callback.success(); } catch (Throwable e) { callback.error(e); } } });
public void run(){ try { callback.success(syncService.getProtocolBuffersFile(interfaceName)); } catch (Throwable e) { callback.error(e); } } });
public void run(){ try { callback.success(syncService.getServerLog()); } catch (Throwable e) { callback.error(e); } } });
if (type.equals("proto")) { try { String protocolBuffersFile = serviceMap.getAdminInterface().getProtocolBuffersFile(request.getParameter("name")); outputStream.write(protocolBuffersFile.getBytes(Charsets.UTF_8)); outputStream.flush(); try { OutputStreamWriter writer = new OutputStreamWriter(outputStream); writer.write(serviceMap.getAdminInterface().getServerLog()); writer.flush(); } catch (ServerException e) {
public void run(){ try { callback.success(syncService.getDatabaseInformation()); } catch (Throwable e) { callback.error(e); } } });
public void run(){ try { syncService.enablePlugin(name); callback.success(); } catch (Throwable e) { callback.error(e); } } });
public void run(){ try { callback.success(syncService.getBimServerInfo()); } catch (Throwable e) { callback.error(e); } } });
public void run(){ try { callback.success(syncService.clearOutputFileCache()); } catch (Throwable e) { callback.error(e); } } });
public void run(){ try { callback.success(syncService.getAllPlugins()); } catch (Throwable e) { callback.error(e); } } });
public void run(){ try { syncService.disablePlugin(name); callback.success(); } catch (Throwable e) { callback.error(e); } } });
if (bimServer.getServerInfo().getServerState() == ServerState.NOT_SETUP) { AdminInterface adminInterface = bimServer.getServiceFactory().get(new SystemAuthorization(1, TimeUnit.HOURS), AccessMethod.INTERNAL).get(AdminInterface.class); adminInterface.setup("http://localhost:" + port, "Administrator", "admin@bimserver.org", "admin", null, null, null); SettingsInterface settingsInterface = bimServer.getServiceFactory().get(new SystemAuthorization(1, TimeUnit.HOURS), AccessMethod.INTERNAL).get(SettingsInterface.class); settingsInterface.setCacheOutputFiles(false);
try { AdminInterface adminInterface = bimServer.getServiceFactory().get(new SystemAuthorization(1, TimeUnit.HOURS), AccessMethod.INTERNAL).get(AdminInterface.class); adminInterface.setup("http://localhost:" + port, name, "My Description", "http://localhost:" + port + "/img/bimserver.png", "Administrator", "admin@bimserver.org", "admin"); SettingsInterface settingsInterface = bimServer.getServiceFactory().get(new SystemAuthorization(1, TimeUnit.HOURS), AccessMethod.INTERNAL).get(SettingsInterface.class); settingsInterface.setCacheOutputFiles(false);