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

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


     *             not expected
     */
    @Test
    public void testExecuteApprovePublicGroupTest() throws Exception
    {
        final ReviewPendingGroupRequest request = new ReviewPendingGroupRequest(GROUP_SHORTNAME, true);

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


     */
    @SuppressWarnings("deprecation")
    @Test
    public void testExecuteApprovePrivateGroupTest() throws Exception
    {
        final ReviewPendingGroupRequest request = new ReviewPendingGroupRequest(GROUP_SHORTNAME, true);
        setupCommonExpectations();

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

     *             not expected
     */
    @Test
    public void testExecuteDenyPrivateGroupTest() throws Exception
    {
        final ReviewPendingGroupRequest request = new ReviewPendingGroupRequest(GROUP_SHORTNAME, false);

        setupCommonExpectations();
        final AnonymousClassInterceptor<TaskHandlerActionContext<ActionContext>> intCtx = // \n
        new AnonymousClassInterceptor<TaskHandlerActionContext<ActionContext>>();
        context.checking(new Expectations()
View Full Code Here

        {
            public void onClick(final ClickEvent event)
            {
                buttonsPanel.addStyleName(StaticResourceBundle.INSTANCE.coreCss().waitActive());

                PendingGroupsModel.getInstance().update(new ReviewPendingGroupRequest(group.getShortName(), true));
            }
        });

        denyButton.addClickHandler(new ClickHandler()
        {
            public void onClick(final ClickEvent event)
            {
                if (new WidgetJSNIFacadeImpl().confirm("Are you sure you want to deny creation of this group?"))
                {
                    buttonsPanel.addStyleName(StaticResourceBundle.INSTANCE.coreCss().waitActive());

                    PendingGroupsModel.getInstance()
                            .update(new ReviewPendingGroupRequest(group.getShortName(), false));
                }
            }
        });

        final EventBus eventBus = Session.getInstance().getEventBus();
View Full Code Here

    @Override
    public Serializable execute(final TaskHandlerActionContext<PrincipalActionContext> inActionContext)
    {
        try
        {
            ReviewPendingGroupRequest request = (ReviewPendingGroupRequest) inActionContext.getActionContext()
                    .getParams();
            DomainGroup group = groupMapper.findByShortName(request.getGroupShortName());
            final long groupId = group.getId();

            if (log.isInfoEnabled())
            {
                log.info((request.getApproved() ? "Approving" : "Disapproving") + " pending group '"
                        + request.getGroupShortName() + "' with id " + groupId);
            }

            notifyCoordinators(inActionContext, group, request);

            if (request.getApproved())
            {
                group.setPending(false);
                groupMapper.flush();
                if (!group.isPublicGroup())
                {
View Full Code Here

TOP

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

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.