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

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


        getStrategy(request).remove(actor, request);
    }

    @Override
    public void removeOutboxItem(long actor, String request) {
        OutboxMessage outbpxMessage = outboxMessageRepository.findOne(Long.parseLong(request));
        if (outbpxMessage.getFrom().getId() != actor) {
            throw new AccessDenied("Could not remove outbox item owned by other user");
        }
        outboxMessageRepository.delete(outbpxMessage);
    }
View Full Code Here


        getStrategy(request).refuse(actor, request, comment);
    }

    @Override
    public void addOutboxItem(long from, String to, String message, Date date) {
        OutboxMessage outboxMessage = new OutboxMessage(to, message, date, Util.USER_FROM_ID.apply(from));
        outboxMessageRepository.save(outboxMessage);
    }
View Full Code Here

TOP

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

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.