Examples of InAppNotificationsByUserMapperRequest


Examples of org.eurekastreams.server.persistence.mappers.db.notification.InAppNotificationsByUserMapperRequest

    {
        final Collection<Long> items = Arrays.asList(1L, 2L, 3L);
        final long userId = 77L;
        final UnreadInAppNotificationCountDTO newCount = new UnreadInAppNotificationCountDTO(4, 6);

        final InAppNotificationsByUserMapperRequest expectedRequest = new InAppNotificationsByUserMapperRequest(items,
                userId);

        context.checking(new Expectations()
        {
            {
View Full Code Here

Examples of org.eurekastreams.server.persistence.mappers.db.notification.InAppNotificationsByUserMapperRequest

    {
        Collection<Long> notifIds = (Collection<Long>) inActionContext.getParams();
        long userId = inActionContext.getPrincipal().getId();

        // modify notifs
        modifyNotifsMapper.execute(new InAppNotificationsByUserMapperRequest(notifIds, userId));

        // Sync count in cache with count in database
        UnreadInAppNotificationCountDTO newCounts = syncMapper.execute(userId);

        return newCounts;
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.