org.olat.repository.controllers
Class RepositoryMainController

java.lang.Object
  extended by org.olat.core.gui.control.DefaultController
      extended by org.olat.core.gui.control.controller.BasicController
          extended by org.olat.core.gui.control.controller.MainLayoutBasicController
              extended by org.olat.repository.controllers.RepositoryMainController
All Implemented Interfaces:
CustomCSSProvider, Controller, ControllerEventListener, Disposable, Activateable, MainLayoutController

public class RepositoryMainController
extends MainLayoutBasicController
implements Activateable

Description:
Activatable:
Supported commands are: "search.home": root entry point "search.catalog": catalog view "search.generic": search form "search.my": list of owned resources "search.REPOTYPE": list of all resources of given type, where REPOTYPE is something like course, test, survey, cp, scorm, sharedfolder

Author:
Felix Jost

Field Summary
static java.lang.String JUMPFROMCOURSE
           
static java.lang.String JUMPFROMEXTERN
           
 
Constructor Summary
RepositoryMainController(UserRequest ureq, WindowControl wControl)
          The check for author rights is executed on construction time and then cached during the objects lifetime.
 
Method Summary
 void activate(UserRequest ureq, java.lang.String viewIdentifier)
          FIXME:pb:discussion FJ should we return boolean if activation was successful?
 void event(UserRequest ureq, Component source, Event event)
          abstract event method for subclasses.
 void event(UserRequest urequest, Controller source, Event event)
          the only method of the interface controllereventlistener.
 
Methods inherited from class org.olat.core.gui.control.controller.MainLayoutBasicController
dispose, getCustomCSS, setCustomCSS
 
Methods inherited from class org.olat.core.gui.control.DefaultController
addControllerListener, addLoggingResourceable, dispatchEvent, dispatchEvent, 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.Controller
addControllerListener, dispatchEvent, dispose, getInitialComponent, getUserActivityLogger, getWindowControlForDebug, isDisposed
 

Field Detail

JUMPFROMEXTERN

public static final java.lang.String JUMPFROMEXTERN
See Also:
Constant Field Values

JUMPFROMCOURSE

public static final java.lang.String JUMPFROMCOURSE
See Also:
Constant Field Values
Constructor Detail

RepositoryMainController

public RepositoryMainController(UserRequest ureq,
                                WindowControl wControl)
The check for author rights is executed on construction time and then cached during the objects lifetime.

Parameters:
ureq -
wControl -
Method Detail

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 urequest,
                  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)

activate

public void activate(UserRequest ureq,
                     java.lang.String viewIdentifier)
Description copied from interface: Activateable
FIXME:pb:discussion FJ should we return boolean if activation was successful?

Specified by:
activate in interface Activateable
See Also:
Activateable.activate(org.olat.core.gui.UserRequest, java.lang.String)