org.olat.shibboleth
Class ShibbolethRegistrationController

java.lang.Object
  extended by org.olat.core.gui.control.DefaultController
      extended by org.olat.shibboleth.ShibbolethRegistrationController
All Implemented Interfaces:
Controller, ControllerEventListener, Disposable

public class ShibbolethRegistrationController
extends DefaultController
implements ControllerEventListener

Initial Date: 09.08.2004

Author:
Mike Stock Comment: User wants ShibbolethAuthentication - Basic flow: System asks User for username and create olataccount with ShibbolethAuthentication Branches: 1. no email in shibbolethAttributesMap - System asks for emailaddress (no institutionalEmail is set !!!) 2. no email in shibbolethAttributesMap and User already exists in System - System asks for password (no institutionalEmail is set !!!)

Constructor Summary
ShibbolethRegistrationController(UserRequest ureq, WindowControl wControl)
          Implements the shibboleth registration workflow.
 
Method Summary
 void event(UserRequest ureq, Component source, Event event)
          abstract event method for subclasses.
 void event(UserRequest ureq, Controller source, Event event)
          the only method of the interface controllereventlistener.
static void putShibAttributes(javax.servlet.http.HttpServletRequest req, java.util.Map<java.lang.String,java.lang.String> attributes)
          Put shibboleth attributes map in reqest for later usage.
static void putShibUniqueID(javax.servlet.http.HttpServletRequest req, java.lang.String uniqueID)
          Put shibboleth unique identifier in request for later usage.
 
Methods inherited from class org.olat.core.gui.control.DefaultController
addControllerListener, addLoggingResourceable, dispatchEvent, dispatchEvent, dispose, getControllerCount, getInitialComponent, getUserActivityLogger, getWindowControlForDebug, isDisposed, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.olat.core.gui.control.ControllerEventListener
dispatchEvent
 

Constructor Detail

ShibbolethRegistrationController

public ShibbolethRegistrationController(UserRequest ureq,
                                        WindowControl wControl)
Implements the shibboleth registration workflow.

Parameters:
ureq -
wControl -
Method Detail

putShibAttributes

public static final void putShibAttributes(javax.servlet.http.HttpServletRequest req,
                                           java.util.Map<java.lang.String,java.lang.String> attributes)
Put shibboleth attributes map in reqest for later usage.

Parameters:
req -
attributes -

putShibUniqueID

public static final void putShibUniqueID(javax.servlet.http.HttpServletRequest req,
                                         java.lang.String uniqueID)
Put shibboleth unique identifier in request for later usage.

Parameters:
req -
uniqueID -

event

public void event(UserRequest ureq,
                  Component source,
                  Event event)
Description copied from class: DefaultController
abstract event method for subclasses. the event received from the component we are listening to are always rerouted to this method here, except when the component has been disposed, in which case the events are simply ignored.

See Also:
DefaultController.event(org.olat.core.gui.UserRequest, org.olat.core.gui.components.Component, org.olat.core.gui.control.Event)

event

public void event(UserRequest ureq,
                  Controller source,
                  Event event)
Description copied from class: DefaultController
the only method of the interface controllereventlistener. always gets called when a controller we 'subscribed' to fires an event. we provide a default implementation here since there are many controllers which are standalone and need no subcontrollers

See Also:
DefaultController.event(org.olat.core.gui.UserRequest, org.olat.core.gui.control.Controller, org.olat.core.gui.control.Event)