Examples of PrivateMessageStatus


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
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.