Package org.hive2hive.core.processes.implementations.files.add

Examples of org.hive2hive.core.processes.implementations.files.add.UploadNotificationMessageFactory


    // inform users that have now access to the moved file
    logger.debug("Inform {} users that a file has been added (after movement).", usersAtDestination.size());
    usersAtDestination.removeAll(common);
    AddNotificationContext addContext = context.getAddNotificationContext();
    addContext.provideMessageFactory(new UploadNotificationMessageFactory(movedNode, movedNode
        .getParent().getFilePublicKey()));
    addContext.provideUsersToNotify(usersAtDestination);
  }
View Full Code Here


    sharedIndex.setParent(userProfile.getRoot());
    profileManager.readyToPut(userProfile, pid);
    logger.debug("Added the newly shared folder to the own user profile.");

    /** 2. Notify others that files are available */
    notifyOtherClients(new UploadNotificationMessageFactory(sharedIndex, null));
    logger.debug("Notified other client that new (shared) files are available for download.");

    /** 3. download the files that are now available */
    List<Index> fileList = Index.getIndexList(sharedIndex);
    // the folder itself is also contained, so remove it
View Full Code Here

TOP

Related Classes of org.hive2hive.core.processes.implementations.files.add.UploadNotificationMessageFactory

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.