Package com.infoclinika.mssharing.model.internal.entity

Examples of com.infoclinika.mssharing.model.internal.entity.InboxMessage


        throw new IllegalStateException("Not applicable operation");
    }

    @Override
    void remove(long actor, String request) {
        InboxMessage message = messageRepository.findOne(Long.valueOf(getInternalId(request)));
        if (message.getTo().getId() != actor) {
            throw new AccessDenied("Could not remove inbox item owned by other user");
        }
        messageRepository.delete(message);
    }
View Full Code Here


    @Override
    public void notify(long from, long to, String message) {
        User fromUser = Util.USER_FROM_ID.apply(from);
        User toUser = Util.USER_FROM_ID.apply(to);
        messageRepository.save(new InboxMessage(fromUser, toUser, new Date(), message));
    }
View Full Code Here

TOP

Related Classes of com.infoclinika.mssharing.model.internal.entity.InboxMessage

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.