Package org.eurekastreams.server.action.request

Examples of org.eurekastreams.server.action.request.UpdateStickyActivityRequest


     */
    public void insert(final ActivityDTO activity)
    {
        final long streamEntityId = activity.getDestinationStream().getDestinationEntityId();
        super.callWriteAction("updateGroupStickyActivity",
                new UpdateStickyActivityRequest(streamEntityId, activity.getId()),
                new OnSuccessCommand<Serializable>()
                {
                    public void onSuccess(final Serializable response)
                    {
                        GroupModel.getInstance().clearCache();
View Full Code Here


     * @param groupId
     *            The group to have it's sticky activity cleared.
     */
    public void delete(final Long groupId)
    {
        super.callWriteAction("updateGroupStickyActivity", new UpdateStickyActivityRequest(groupId, null),
                new OnSuccessCommand<Serializable>()
                {
                    public void onSuccess(final Serializable response)
                    {
                        GroupModel.getInstance().clearCache();
View Full Code Here

        {
            DomainGroupModelView group = groupMapper.execute(activity.getDestinationStream().getDestinationEntityId());
            if (group != null && activityId.equals(group.getStickyActivityId()))
            {
                clearGroupStickyActivityExecutor.execute(inActionContext,
                        new UpdateStickyActivityRequest(group.getId(), null));
            }
        }

        // submit request for additional cache updates due to activity deletion.
        inActionContext.getUserActionRequests().add(
View Full Code Here

    {
        Long activityId = (Long) getEntityManager().createQuery(
                "SELECT stickyActivityId FROM DomainGroup WHERE id = 1").getSingleResult();
        assertNull(activityId);

        sut.execute(new UpdateStickyActivityRequest(1L, 6789L));

        getEntityManager().clear();

        activityId = (Long) getEntityManager().createQuery("SELECT stickyActivityId FROM DomainGroup WHERE id = 1")
                .getSingleResult();
View Full Code Here

                "SELECT stickyActivityId FROM DomainGroup WHERE id = 2").getSingleResult();
        assertEquals((Long) 6793L, activityId);

        getEntityManager().clear();

        sut.execute(new UpdateStickyActivityRequest(2L, null));

        getEntityManager().clear();

        activityId = (Long) getEntityManager().createQuery("SELECT stickyActivityId FROM DomainGroup WHERE id = 2")
                .getSingleResult();
View Full Code Here

TOP

Related Classes of org.eurekastreams.server.action.request.UpdateStickyActivityRequest

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.