Package org.zeroexchange.model.collaboration

Examples of org.zeroexchange.model.collaboration.Invitation


    @Override
    public void onEvent(UsersInvited event) {
        User currentUser = authorizedUserService.getCurrentUser();
        for(User invitee: event.getUsers()) {
            Contract contract = event.getContract();
            Invitation invitation = invitationDAO.getInvitation(currentUser.getId(), invitee.getId(), contract.getId());
            if(invitation == null) {
                invitation = new Invitation();
                invitation.setContract(contract);
                invitation.setInvitee(invitee);
                invitation.setInviter(currentUser);
            }
            invitation.setInvitationDate(new Date());
           
            invitationDAO.save(invitation);
        }
    }
View Full Code Here

TOP

Related Classes of org.zeroexchange.model.collaboration.Invitation

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.