@Override public void handleArguments(ProjectDir projectFolder) { try { AvailableLaterWaiter.await(new CreateDeleteProjectAction(projectFolder, false)); } catch (Exception e) { e.printStackTrace(); } }
@Override protected void handleArguments() { try { AvailableLaterWaiter.await( new GoOnlineAction(user, null, getHost(user), -1, true, loginView)); } catch (Exception e) { e.printStackTrace(); } }
@Override protected void handleArguments() { String pw = wallet.loadForUser(user.getUserId()); try { AvailableLaterWaiter.await( new GoOnlineAction(user, pw, getHost(user), -1, false, loginView)); } catch (Exception e) { e.printStackTrace(); } }
@Override public void handleArguments(User other) { try { System.out.println("Poking " + other + "..."); AvailableLaterWaiter.await(new PokeAction(project.getModel(), other)); System.out.println("poking done"); } catch (Exception e) { System.out.println("poking failed"); e.printStackTrace(); } }
@Override public void handleArguments(ProjectDir projectFolder) { try { System.out.println("deleting project ..."); AvailableLaterWaiter.await(new CreateDeleteProjectAction(projectFolder, false)); System.out.println("deleting project done"); } catch (Exception e) { System.out.println("deleting project failed"); e.printStackTrace(); } }
@Override protected void handleArguments() { try { System.out.println("opening project"); AvailableLaterWaiter.await(new StopProjectAction(project.getModel())); System.out.println("opening project done"); } catch (Exception e) { System.out.println("opening project failed"); e.printStackTrace(); } }
@Override protected void handleArguments(JakeObject jo) { System.out.println("Starting to download..."); try { File f = AvailableLaterWaiter.await(new DownloadAction(project.getModel(), jo, userorder)); System.out.println("downloaded succeeded... file provided at " + f.getAbsolutePath()); } catch (Exception e) { System.out.println("download failed!"); e.printStackTrace(); } }
@Override protected void handleArguments(JakeObject jo) { System.out.println("Starting to pull..."); try { AvailableLaterWaiter.await(new PullAction(project.getModel(), jo, userorder)); System.out.println("pull succeeded..."); } catch (Exception e) { System.out.println("pull failed!"); e.printStackTrace(); } }
@Override public void handleArguments(JakeObject jo) { try { System.out.println("announcing ... "); AvailableLaterWaiter.await( new AnnounceAction(project.getModel(), jo, "something new, something blue", false)); System.out.println("announcing done"); } catch (Exception e) { System.out.println("announcing failed"); e.printStackTrace(); } }
@Override public void handleArguments() { try { System.out.println("closing project ..."); AvailableLaterWaiter.await(new StopProjectAction(project.getModel())); project = null; System.out.println("closing project done"); } catch (Exception e) { System.out.println("closing project failed"); e.printStackTrace(); } }
@Override public void handleArguments() { try { System.out.println("listing project log ... "); Collection<LogEntry> list = AvailableLaterWaiter.await(new GetAllLogEntriesAction(project.getModel())); for (LogEntry le : list) { System.out.println("\t" + le); } System.out.println("listing project log done"); } catch (Exception e) { System.out.println("listing project log failed"); e.printStackTrace(); } }
@Override public void handleArguments(JakeObject jo) { try { System.out.println("getting JakeObject status ... "); Attributed status = AvailableLaterWaiter.await(new FileInfoAction(project.getModel(), Arrays.asList(jo))) .get(0); System.out.println("\t" + jo); System.out.println("\t\t" + status); System.out.println("getting JakeObject status done"); } catch (Exception e) { System.out.println("getting JakeObject status failed"); e.printStackTrace(); } }
@Override public boolean handleArguments(String[] args) { if (args.length != 2) { return false; } String id = args[1]; String password = wallet.loadForUser(id); try { AvailableLaterWaiter.await(new CreateAccountAction(new User(id), password)); user = new User(id); } catch (Exception e) { e.printStackTrace(); } return true; }
@Override public void handleArguments() { try { System.out.println("listing projects:"); Collection<ProjectDir> list = AvailableLaterWaiter.await(new GetProjectsAction()); for (ProjectDir p : list) { System.out.println("\t" + p); } System.out.println("listing projects done"); } catch (Exception e) { System.out.println("listing projects failed"); e.printStackTrace(); } }
@Override public boolean handleArguments(String[] args) { if (args.length != 2) { return false; } try { if (AvailableLaterWaiter.await(new InviteUserAction(project.getModel()))) { System.out.println("invitation sent"); } else { System.out.println("invitation couldn't be sent"); } } catch (Exception e) { System.out.println("inviting failed"); e.printStackTrace(); } return true; }
@Override public void handleArguments() { try { Collection<ProjectDir> list = AvailableLaterWaiter.await(new GetProjectsAction()); for (ProjectDir p : list) { projectDir = p; break; } } catch (Exception e) { e.printStackTrace(System.err); } if (project == null) { System.err.println("No project found!"); return; } System.out.println("Project " + projectDir + " is now selected!"); }
@Override public void handleArguments() { try { System.out.println("listing ..."); Collection<UserInfo> users = AvailableLaterWaiter.await(new SuggestUsersToInviteAction(project.getModel())); for (UserInfo p : users) { System.out.println( "\t" + p.getUserid() + " - " + p.getFirstName() + " " + p.getLastName() + " (" + p.getNickName() + ")"); } System.out.println("listing done"); } catch (Exception e) { System.out.println("listing failed"); e.printStackTrace(); } }