Package org.eurekastreams.server.persistence.mappers.requests

Examples of org.eurekastreams.server.persistence.mappers.requests.SetSharedResourceLikeMapperRequest


                .setParameter("personId", personId).setParameter("sharedResourceId", likedLinkId).getResultList();

        assertEquals(1, likedResources.size());
        getEntityManager().clear();

        sut.execute(new SetSharedResourceLikeMapperRequest(personId, likedSr, false));

        likedResources = getEntityManager().createQuery(
                "FROM LikedSharedResource where pk.personId = :personId AND pk.sharedResourceId = :sharedResourceId")
                .setParameter("personId", personId).setParameter("sharedResourceId", likedLinkId).getResultList();
View Full Code Here


                .setParameter("personId", personId).setParameter("sharedResourceId", unlikedLinkId).getResultList();

        assertEquals(0, likedResources.size());
        getEntityManager().clear();

        sut.execute(new SetSharedResourceLikeMapperRequest(personId, unlikedSr, false));

        likedResources = getEntityManager().createQuery(
                "FROM LikedSharedResource where pk.personId = :personId AND pk.sharedResourceId = :sharedResourceId")
                .setParameter("personId", personId).setParameter("sharedResourceId", unlikedLinkId).getResultList();
View Full Code Here

                .setParameter("personId", personId).setParameter("sharedResourceId", unlikedLinkId).getResultList();

        assertEquals(0, likedResources.size());
        getEntityManager().clear();

        sut.execute(new SetSharedResourceLikeMapperRequest(personId, unlikedSr, true));

        likedResources = getEntityManager().createQuery(
                "FROM LikedSharedResource where pk.personId = :personId AND pk.sharedResourceId = :sharedResourceId")
                .setParameter("personId", personId).setParameter("sharedResourceId", unlikedLinkId).getResultList();
View Full Code Here

                .setParameter("personId", personId).setParameter("sharedResourceId", likedLinkId).getResultList();

        assertEquals(1, likedResources.size());
        getEntityManager().clear();

        sut.execute(new SetSharedResourceLikeMapperRequest(personId, likedSr, true));

        likedResources = getEntityManager().createQuery(
                "FROM LikedSharedResource where pk.personId = :personId AND pk.sharedResourceId = :sharedResourceId")
                .setParameter("personId", personId).setParameter("sharedResourceId", likedLinkId).getResultList();
View Full Code Here

        // find the shared resource
        SharedResource sr = findOrInsertSharedResourceMapper.execute(new SharedResourceRequest(
                sharedResourceUniqueKey, null));

        SetSharedResourceLikeMapperRequest mapperRequest = new SetSharedResourceLikeMapperRequest(personId, sr,
                request.getLikes());

        setLikedResourceStatusMapper.execute(mapperRequest);

        // clean up the cache
View Full Code Here

TOP

Related Classes of org.eurekastreams.server.persistence.mappers.requests.SetSharedResourceLikeMapperRequest

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.