Examples of MoveFileProcessContext


Examples of org.hive2hive.core.processes.implementations.context.MoveFileProcessContext

    return process;
  }

  public ProcessComponent createMoveFileProcess(File source, File destination, NetworkManager networkManager)
      throws NoSessionException, NoPeerConnectionException {
    MoveFileProcessContext context = new MoveFileProcessContext(source, destination, networkManager.getUserId());

    SequentialProcess process = new SequentialProcess();
    process.add(new MoveOnDiskStep(context, networkManager));
    process.add(new RelinkUserProfileStep(context, networkManager));
    process.add(createNotificationProcess(context.getMoveNotificationContext(), networkManager));
    process.add(createNotificationProcess(context.getDeleteNotificationContext(), networkManager));
    process.add(createNotificationProcess(context.getAddNotificationContext(), networkManager));

    return process;
  }
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.