Package org.jasig.portal

Examples of org.jasig.portal.PortalEvent


    cError.receiveEvent(PortalEvent.SESSION_DONE_EVENT);
   
    List eventsReceived = irc.getEventsReceived();
    assertFalse(eventsReceived.isEmpty());
    PortalEvent event = (PortalEvent) irc.getEventsReceived().get(0);
    assertEquals(PortalEvent.SESSION_DONE, event.getEventNumber());
  }
View Full Code Here


    * @throws Throwable
    */
   protected void finalize() throws Throwable{
      super.finalize();
      // send SESSION_DONE event to the wrapped CGroupsManager channel.
      PortalEvent ev=PortalEvent.SESSION_DONE_EVENT;
      receiveEvent(ev);
   }
View Full Code Here

            //expected
        }
    }
   
    public void testBadPortalEventLifecycle() throws Exception {
        final PortalEvent ev = PortalEvent.MAXIMIZE;
        try {
            this.portletAdaptor.receiveEvent(ev);
            fail("IllegalStateException expected, no channel static data");
        }
        catch (IllegalStateException ise) {
View Full Code Here

        this.testInitLifecycle();
       
        final PortalControlStructures pcs = new PortalControlStructures(new MockHttpServletRequest(), null);
        this.portletAdaptor.setPortalControlStructures(pcs);

        final PortalEvent ev = PortalEvent.MAXIMIZE;
       
        EasyMock.reset(this.portletChannel);
        this.portletChannel.portalEvent(this.sd, pcs, ev);
        EasyMock.expectLastCall().once();
        EasyMock.replay(this.portletChannel);
View Full Code Here

        this.testInitLifecycle();
       
        final PortalControlStructures pcs = new PortalControlStructures(new MockHttpServletRequest(), null);
        this.portletAdaptor.setPortalControlStructures(pcs);

        final PortalEvent ev = PortalEvent.SESSION_DONE_EVENT;
       
        EasyMock.reset(this.portletChannel);
        this.portletChannel.portalEvent(this.sd, pcs, ev);
        EasyMock.expectLastCall().once();
        EasyMock.replay(this.portletChannel);
View Full Code Here

    cSecureInfo.receiveEvent(PortalEvent.SESSION_DONE_EVENT);
   
    List eventsReceived = irc.getEventsReceived();
    assertFalse(eventsReceived.isEmpty());
    PortalEvent event = (PortalEvent) irc.getEventsReceived().get(0);
    assertEquals(PortalEvent.SESSION_DONE, event.getEventNumber());
  }
View Full Code Here

                            }
                            catch (Exception e) {
                                logger.warn("Failed to set 'minimized' attribute on channel '" + channelId + "' with element: " + channel, e);
                            }
                           
                            final PortalEvent event;
                            if ("true".equals(themeChannelAttrValue)) {
                                event = PortalEvent.MINIMIZE;
                            }
                            else {
                                event = PortalEvent.NORMAL;
View Full Code Here

    cSecureInfo.receiveEvent(PortalEvent.SESSION_DONE_EVENT);
   
    List eventsReceived = irc.getEventsReceived();
    assertFalse(eventsReceived.isEmpty());
    PortalEvent event = (PortalEvent) irc.getEventsReceived().get(0);
    assertEquals(PortalEvent.SESSION_DONE, event.getEventNumber());
  }
View Full Code Here

    cError.receiveEvent(PortalEvent.SESSION_DONE_EVENT);
   
    List eventsReceived = irc.getEventsReceived();
    assertFalse(eventsReceived.isEmpty());
    PortalEvent event = (PortalEvent) irc.getEventsReceived().get(0);
    assertEquals(PortalEvent.SESSION_DONE, event.getEventNumber());
  }
View Full Code Here

    * @throws Throwable
    */
   protected void finalize() throws Throwable{
      super.finalize();
      // send SESSION_DONE event to the wrapped CGroupsManager channel.
      PortalEvent ev=PortalEvent.SESSION_DONE_EVENT;
      channel.receiveEvent(ev, uid);
   }
View Full Code Here

TOP

Related Classes of org.jasig.portal.PortalEvent

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.