Package org.jtalks.jcommune.model.dto

Examples of org.jtalks.jcommune.model.dto.PageRequest


        int messageCount = 50;
        JCUser userTo = PersistedObjectsFactory.getUser("UserTo", "mail2@mail" +
                ".com");
        JCUser userFrom = PersistedObjectsFactory.getUser("UserFrom", "mail1@mail.com");

        PageRequest pageRequest = new PageRequest("0",
                itemsOnPage);
        PersistedObjectsFactory.preparePrivateMessages(messageCount, userTo, userFrom);

        Page<PrivateMessage> messagePage = dao.getAllForUser(userTo, pageRequest);
View Full Code Here


        int itemsOnPage = totalSize / pageCount;
        int messageCount = 50;
        JCUser userTo = PersistedObjectsFactory.getUser("UserTo", "mail2@mail.com");
        JCUser userFrom = PersistedObjectsFactory.getUser("UserFrom", "mail1@mail.com");

        PageRequest pageRequest = new PageRequest("0",
                itemsOnPage);
        PersistedObjectsFactory.preparePrivateMessages(messageCount, userTo, userFrom);

        Page<PrivateMessage> messagePage = dao.getAllForUser(userTo, pageRequest);
View Full Code Here

        int itemsOnPage = totalSize / pageCount;
        int messageCount = 50;
        JCUser userTo = PersistedObjectsFactory.getUser("UserTo", "mail2@mail.com");
        JCUser userFrom = PersistedObjectsFactory.getUser("UserFrom", "mail1@mail.com");

        PageRequest pageRequest = new PageRequest("1000",
                itemsOnPage);
        PersistedObjectsFactory.preparePrivateMessages(messageCount, userTo, userFrom);

        Page<PrivateMessage> messagePage = dao.getAllForUser(userTo, pageRequest);
View Full Code Here

        int itemsOnPage = totalSize / pageCount;
        int messageCount = 50;
        JCUser userTo = PersistedObjectsFactory.getUser("UserTo", "mail2@mail.com");
        JCUser userFrom = PersistedObjectsFactory.getUser("UserFrom", "mail1@mail.com");

        PageRequest pageRequest = new PageRequest("1000",
                itemsOnPage);
        PersistedObjectsFactory.preparePrivateMessages(messageCount, userTo, userFrom);

        Page<PrivateMessage> messagePage = dao.getAllForUser(userTo, pageRequest);
View Full Code Here

        int itemsOnPage = totalSize / pageCount;
        int messageCount = 50;
        JCUser userTo = PersistedObjectsFactory.getUser("UserTo", "mail2@mail.com");
        JCUser userFrom = PersistedObjectsFactory.getUser("UserFrom", "mail1@mail.com");

        PageRequest pageRequest = new PageRequest("1000",
                itemsOnPage);
        PersistedObjectsFactory.preparePrivateMessages(messageCount, userTo, userFrom);

        Page<PrivateMessage> messagePage = dao.getAllForUser(userTo, pageRequest);
View Full Code Here

        int pageCount = 1;
        int itemsOnPage = 25;
        JCUser userTo = PersistedObjectsFactory.getUser("UserTo", "mail2@mail.com");
        JCUser userFrom = PersistedObjectsFactory.getUser("UserFrom", "mail1@mail.com");

        PageRequest pageRequest = new PageRequest("1",
                itemsOnPage);
        PersistedObjectsFactory.createAndSaveMessage(PrivateMessageStatus.SENT, userTo, userFrom);

        Page<PrivateMessage> messagePage = dao.getAllForUser(userTo, pageRequest);
View Full Code Here

        int pageCount = 1;
        int itemsOnPage = 25;
        JCUser userTo = PersistedObjectsFactory.getUser("UserTo", "mail2@mail.com");
        JCUser userFrom = PersistedObjectsFactory.getUser("UserFrom", "mail1@mail.com");

        PageRequest pageRequest = new PageRequest("1",
                itemsOnPage);
        PersistedObjectsFactory.createAndSaveMessage(PrivateMessageStatus.SENT, userTo, userFrom);

        Page<PrivateMessage> messagePage = dao.getAllForUser(userTo, pageRequest);
View Full Code Here

        int pageCount = 2;
        int itemsOnPage = totalSize / pageCount;
        JCUser userTo = PersistedObjectsFactory.getUser("UserTo", "mail2@mail.com");
        JCUser userFrom = PersistedObjectsFactory.getUser("UserFrom", "mail1@mail.com");

        PageRequest pageRequest = new PageRequest("1",
                itemsOnPage);
        PersistedObjectsFactory.preparePrivateMessages(totalSize, userTo, userFrom);

        Page<PrivateMessage> messagePage = dao.getDraftsForUser(userFrom, pageRequest);
        for (PrivateMessage message : messagePage.getContent()) {
View Full Code Here

        int pageCount = 2;
        int itemsOnPage = totalSize / pageCount;
        JCUser userTo = PersistedObjectsFactory.getUser("UserTo", "mail2@mail.com");
        JCUser userFrom = PersistedObjectsFactory.getUser("UserFrom", "mail1@mail.com");

        PageRequest pageRequest = new PageRequest("1",
                itemsOnPage);
        PersistedObjectsFactory.preparePrivateMessages(totalSize, userTo, userFrom);

        Page<PrivateMessage> messagePage = dao.getDraftsForUser(userFrom, pageRequest);
View Full Code Here

        int pageCount = 2;
        int itemsOnPage = totalSize / pageCount;
        JCUser userTo = PersistedObjectsFactory.getUser("UserTo", "mail2@mail.com");
        JCUser userFrom = PersistedObjectsFactory.getUser("UserFrom", "mail1@mail.com");

        PageRequest pageRequest = new PageRequest("1",
                itemsOnPage);
        PersistedObjectsFactory.preparePrivateMessages(totalSize, userTo, userFrom);

        Page<PrivateMessage> messagePage = dao.getDraftsForUser(userFrom, pageRequest);
View Full Code Here

TOP

Related Classes of org.jtalks.jcommune.model.dto.PageRequest

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.