Package org.syncany.plugins.transfer.to

Examples of org.syncany.plugins.transfer.to.ActionTO


    TempRemoteFile temporaryRemoteFile = new TempRemoteFile(remoteFile);

    logger.log(Level.INFO, "- Adding file to TX for UPLOAD: " + localFile + " -> Temp. remote file: " + temporaryRemoteFile
        + ", final location: " + remoteFile);

    ActionTO action = new ActionTO();
    action.setType(ActionTO.TYPE_UPLOAD);
    action.setLocalTempLocation(localFile);
    action.setRemoteLocation(remoteFile);
    action.setRemoteTempLocation(temporaryRemoteFile);

    transactionTO.addAction(action);
  }
View Full Code Here


  public void delete(RemoteFile remoteFile) throws StorageException {
    TempRemoteFile temporaryRemoteFile = new TempRemoteFile(remoteFile);

    logger.log(Level.INFO, "- Adding file to TX for DELETE: " + remoteFile + "-> Temp. remote file: " + temporaryRemoteFile);

    ActionTO action = new ActionTO();
    action.setType(ActionTO.TYPE_DELETE);
    action.setRemoteLocation(remoteFile);
    action.setRemoteTempLocation(temporaryRemoteFile);

    transactionTO.addAction(action);
  }
View Full Code Here

TOP

Related Classes of org.syncany.plugins.transfer.to.ActionTO

Copyright © 2018 www.massapicom. 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.