Examples of execute()


Examples of org.svnadmin.service.AjaxService.execute()

              throw new ServletException("not found service. name = "+serviceName);
            }
           
            Map<String,Object> parameters = this.getRequestParameters(request);
           
            Ajax ajax=service.execute(parameters);
           
            response.setHeader("Cache-Control", "no-cache");
            response.setHeader("Pragma", "No-cache");
            response.setDateHeader("Expires", 1);
            if(ajax!=null){
View Full Code Here

Examples of org.syncany.operations.init.ConnectOperation.execute()

    connectOperationOptionsB.setConfigTO(connectionConfigToB);
    connectOperationOptionsB.setPassword(initOperationOptionsA.getPassword());
    connectOperationOptionsB.setLocalDir(localDirB);

    ConnectOperation connectOperationB = new ConnectOperation(connectOperationOptionsB, null);
    ConnectOperationResult connectOperationResultB = connectOperationB.execute();

    assertEquals(ConnectResultCode.OK, connectOperationResultB.getResultCode());
    assertTrue(new File(localConnectDirB, Config.DIR_DATABASE).exists());
    assertTrue(new File(localConnectDirB, Config.DIR_CACHE).exists());
    assertTrue(new File(localConnectDirB, Config.FILE_CONFIG).exists());
View Full Code Here

Examples of org.syncany.operations.init.GenlinkOperation.execute()

  @Override
  public Response handleRequest(FolderRequest request) {
    try {
      GenlinkOperation operation = new GenlinkOperation(config, new GenlinkOperationOptions());
      GenlinkOperationResult operationResult = operation.execute();
      GenlinkFolderResponse response = new GenlinkFolderResponse(operationResult, request.getId());
   
      return response;
    }
    catch (Exception e) {
View Full Code Here

Examples of org.syncany.operations.init.InitOperation.execute()

  public void testConnectOperationSuccess() throws Exception {
    // A.init()
    InitOperationOptions initOperationOptionsA = TestConfigUtil.createTestInitOperationOptions("A");
    InitOperation initOperationA = new InitOperation(initOperationOptionsA, null);

    InitOperationResult initOperationResultA = initOperationA.execute();

    String connectLinkA = initOperationResultA.getGenLinkResult().getShareLink();
    assertNotNull(connectLinkA);

    // B.connect()
View Full Code Here

Examples of org.syncany.operations.ls.LsOperation.execute()

  public Response handleRequest(FolderRequest request) {
    LsFolderRequest concreteRequest = (LsFolderRequest) request;

    try {
      LsOperation operation = new LsOperation(config, concreteRequest.getOptions());
      LsOperationResult operationResult = operation.execute();
      LsFolderResponse response = new LsFolderResponse(operationResult, request.getId());
   
      return response;
    }
    catch (Exception e) {
View Full Code Here

Examples of org.syncany.operations.ls_remote.LsRemoteOperation.execute()

  @Override
  public Response handleRequest(FolderRequest request) {
    try {
      LsRemoteOperation operation = new LsRemoteOperation(config);
      LsRemoteOperationResult operationResult = operation.execute();
      LsRemoteFolderResponse response = new LsRemoteFolderResponse(operationResult, request.getId());
   
      return response;
    }
    catch (Exception e) {
View Full Code Here

Examples of org.syncany.operations.restore.RestoreOperation.execute()

  public Response handleRequest(FolderRequest request) {
    RestoreFolderRequest concreteRequest = (RestoreFolderRequest) request;

    try {
      RestoreOperation operation = new RestoreOperation(config, concreteRequest.getOptions());
      RestoreOperationResult operationResult = operation.execute();
      RestoreFolderResponse response = new RestoreFolderResponse(operationResult, request.getId());
   
      return response;
    }
    catch (Exception e) {
View Full Code Here

Examples of org.syncany.operations.status.StatusOperation.execute()

  }

  private boolean checkPreconditions() throws Exception {
    // Find local changes
    StatusOperation statusOperation = new StatusOperation(config, options.getStatusOptions());
    StatusOperationResult statusOperationResult = statusOperation.execute();
    ChangeSet localChanges = statusOperationResult.getChangeSet();

    result.getStatusResult().setChangeSet(localChanges);

    if (!localChanges.hasChanges()) {
View Full Code Here

Examples of org.syncany.operations.up.UpOperation.execute()

    List<File> originalFiles = TestFileUtil.createRandomFilesInDirectory(testConfig.getLocalDir(), fileSize,
        fileAmount);

    // Run!
    UpOperation op = new UpOperation(testConfig);
    op.execute();

    // Get databases (for comparison)
    LocalTransferSettings localConnection = (LocalTransferSettings) testConfig.getConnection();

    File localDatabaseDir = testConfig.getDatabaseDir();
View Full Code Here

Examples of org.syrup.Function.execute()

                // Find the Function to execute - could throw an exception if
                // not found.
                Class fClass = Class.forName(c.task().functionClass());
                Function f = (Function) fClass.newInstance();
                // Executes it.
                r = f.execute(c);
            }

            if (r != null)
            {
                // Got a result - commit this to the WorkSpace.
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.