Package org.jtalks.jcommune.model.entity

Examples of org.jtalks.jcommune.model.entity.PrivateMessageStatus


        return result;
    }

    private boolean hasCurrentUserAccessToPM(PrivateMessage privateMessage) throws NotFoundException {
        JCUser currentUser = userService.getCurrentUser();
        PrivateMessageStatus messageStatus = privateMessage.getStatus();

        if (currentUser.equals(privateMessage.getUserFrom()) &&
                (messageStatus.equals(PrivateMessageStatus.DELETED_FROM_OUTBOX))) {
            return false;
        }
        return !(currentUserIsAuthor(currentUser, privateMessage) &&
                (messageStatus.equals(PrivateMessageStatus.DELETED_FROM_INBOX)));

    }
View Full Code Here

TOP

Related Classes of org.jtalks.jcommune.model.entity.PrivateMessageStatus

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.