org.esupportail.portal.utils.channels
Class SubChannelFactory

java.lang.Object
  extended byorg.esupportail.portal.utils.channels.SubChannelFactory

public class SubChannelFactory
extends java.lang.Object

SubChannelFactory

"Usine" qui fabrique des SubChannel à la demande d'une MainChannel

(c)Copyright ESup-Portail 2004

Version:
$Revision: 1.1 $
Author:
Olivier Ziller

Constructor Summary
SubChannelFactory()
           
 
Method Summary
static java.lang.Boolean callInit(ISubChannel subChannel, Action action, org.jasig.portal.ChannelRuntimeData rd)
          Appel de la méthode init d'une action (méthode 1/3 du cycle de vie)
static void callSetOutput(ISubChannel subChannel, Action action, org.jasig.portal.ChannelRuntimeData rd)
          Appel de la méthode setOutput d'une action (méthode 3/3 du cycle de vie)
static java.lang.Boolean callSetXML(ISubChannel subChannel, Action action, org.jasig.portal.ChannelRuntimeData rd)
          Appel de la méthode setXML d'une action (méthode 2/3 du cycle de vie)
static ISubChannel instantiateAction(MainChannel mainChannel, Action action)
          Méthode statique qui permet d'instancier une SubChannel correspondant à une action
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SubChannelFactory

public SubChannelFactory()
Method Detail

instantiateAction

public static ISubChannel instantiateAction(MainChannel mainChannel,
                                            Action action)
                                     throws org.jasig.portal.PortalException
Méthode statique qui permet d'instancier une SubChannel correspondant à une action

Parameters:
mainChannel - channel principale qui cherche à instancier une SubChannel
action - action pour laquelle on veut instancier la SubChannel
Returns:
la SubChannel correspondant à l'action
Throws:
org.jasig.portal.PortalException

callInit

public static java.lang.Boolean callInit(ISubChannel subChannel,
                                         Action action,
                                         org.jasig.portal.ChannelRuntimeData rd)
                                  throws java.lang.Throwable,
                                         org.jasig.portal.PortalException,
                                         FrameWorkException
Appel de la méthode init d'une action (méthode 1/3 du cycle de vie)

Parameters:
subChannel - SubChannel correspondant à l'action
action - Action en cours
rd - RuntimeData à utiliser
Returns:
Boolean.TRUE si le cycle de vie de la SubChannel peut se poursuivre
Throws:
org.jasig.portal.PortalException
java.lang.Throwable
FrameWorkException

callSetXML

public static java.lang.Boolean callSetXML(ISubChannel subChannel,
                                           Action action,
                                           org.jasig.portal.ChannelRuntimeData rd)
                                    throws java.lang.Throwable,
                                           org.jasig.portal.PortalException,
                                           FrameWorkException
Appel de la méthode setXML d'une action (méthode 2/3 du cycle de vie)

Parameters:
subChannel - SubChannel correspondant à l'action
action - Action en cours
rd - RuntimeData à utiliser
Returns:
Boolean.TRUE si le cycle de vie de la SubChannel peut se poursuivre
Throws:
org.jasig.portal.PortalException
java.lang.Throwable
FrameWorkException

callSetOutput

public static void callSetOutput(ISubChannel subChannel,
                                 Action action,
                                 org.jasig.portal.ChannelRuntimeData rd)
                          throws org.jasig.portal.PortalException
Appel de la méthode setOutput d'une action (méthode 3/3 du cycle de vie)

Parameters:
subChannel - SubChannel correspondant à l'action
action - Action en cours
rd - RuntimeData à utiliser
Throws:
org.jasig.portal.PortalException