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

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


        Long origTargetSubscriptionCount = (Long) getEntityManager()
                .createQuery("SELECT COUNT(*) FROM FeedSubscriber WHERE type = :type AND entityId = :entityId")
                .setParameter("type", EntityType.GROUP).setParameter("entityId", entityId).getSingleResult();

        // do the delete.
        sut.execute(new DeleteAllFeedSubscriberByEntityTypeAndIdRequest(entityId, EntityType.GROUP));

        getEntityManager().flush();
        getEntityManager().clear();

        // get new total number of subscriptions.
View Full Code Here


        Long origTargetSubscriptionCount = (Long) getEntityManager()
                .createQuery("SELECT COUNT(*) FROM FeedSubscriber WHERE type = :type AND entityId = :entityId")
                .setParameter("type", EntityType.GROUP).setParameter("entityId", entityId).getSingleResult();

        // do the delete.
        sut.execute(new DeleteAllFeedSubscriberByEntityTypeAndIdRequest(entityId, EntityType.GROUP));

        getEntityManager().flush();
        getEntityManager().clear();

        // get new total number of subscriptions.
View Full Code Here

            log.debug("Removing group subscriptions for groupid:" + groupId);
            startTime = endTime;
        }
        // Remove feed subscriptions for group.
        deleteGroupFeedSubscriptions.execute(new DeleteAllFeedSubscriberByEntityTypeAndIdRequest(groupId,
                EntityType.GROUP));
        if (log.isDebugEnabled())
        {
            endTime = System.currentTimeMillis();
            log.debug("Time to remove group subscriptions: " + (endTime - startTime));
View Full Code Here

TOP

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

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.