Examples of provideUsersToNotify()


Examples of org.hive2hive.core.processes.implementations.context.MoveFileProcessContext.AddNotificationContext.provideUsersToNotify()

    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);
  }

  @Override
  protected void doRollback(RollbackReason reason) throws InvalidProcessStateException {
    // only when user profile has been updated
View Full Code Here

Examples of org.hive2hive.core.processes.implementations.context.MoveFileProcessContext.DeleteNotificationContext.provideUsersToNotify()

    logger.debug("Inform {} users that a file has been removed (after movement).", usersAtSource.size());
    usersAtSource.removeAll(common);
    DeleteNotificationContext deleteContext = context.getDeleteNotificationContext();
    deleteContext
        .provideMessageFactory(new DeleteNotifyMessageFactory(fileKey, oldParentKey, sourceName));
    deleteContext.provideUsersToNotify(usersAtSource);

    // 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();
View Full Code Here

Examples of org.hive2hive.core.processes.implementations.context.MoveFileProcessContext.MoveNotificationContext.provideUsersToNotify()

    logger.debug("Inform {} users that a file has been moved.", common.size());
    PublicKey newParentKey = movedNode.getParent().getFilePublicKey();
    MoveNotificationContext moveContext = context.getMoveNotificationContext();
    moveContext.provideMessageFactory(new MoveNotificationMessageFactory(sourceName, destName,
        oldParentKey, newParentKey));
    moveContext.provideUsersToNotify(common);

    // inform users that don't have access to the new destination anymore
    logger.debug("Inform {} users that a file has been removed (after movement).", usersAtSource.size());
    usersAtSource.removeAll(common);
    DeleteNotificationContext deleteContext = context.getDeleteNotificationContext();
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.