Package org.eurekastreams.server.action.request.profile

Examples of org.eurekastreams.server.action.request.profile.RequestForGroupMembershipRequest


     */
    @Test
    public void testExecuteAlreadyAbsent()
    {
        final long userid = 142L;
        Boolean result = sut.execute(new RequestForGroupMembershipRequest(8L, userid));
        assertFalse(result);
    }
View Full Code Here


        }

        long personId = inActionContext.getActionContext().getPrincipal().getId();

        // save the request
        insertMembershipRequestMapper.execute(new RequestForGroupMembershipRequest(target.getId(), personId));

        // send notification
        // Note: doesn't check whether the request was freshly added or whether it was already found, thus allowing a
        // user to "nag" the coordinators for access
        inActionContext.getUserActionRequests().add(
View Full Code Here

            asyncRequests.add(new UserActionRequest("deleteCacheKeysAction", null, (Serializable) Collections
                    .singleton(CacheKeys.GROUP_BY_ID + targetId)));

            // remove any requests from the user for group membership
            if (deleteRequestForGroupMembershipMapper
                    .execute(new RequestForGroupMembershipRequest(targetId, followerId)))
            {
                // if any requests were present, then user was just approved for access
                asyncRequests.add(new UserActionRequest(CreateNotificationsRequest.ACTION_NAME, null,
                        new GroupMembershipResponseNotificationsRequest(RequestType.REQUEST_GROUP_ACCESS_APPROVED,
                                inActionContext.getActionContext().getPrincipal().getId(), targetId, followerId)));
View Full Code Here

TOP

Related Classes of org.eurekastreams.server.action.request.profile.RequestForGroupMembershipRequest

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.