org.esupportail.portal.utils.channels.plugins
Class RestrictedAction

java.lang.Object
  extended byorg.esupportail.portal.utils.channels.SubChannel
      extended byorg.esupportail.portal.utils.channels.plugins.RestrictedAction
All Implemented Interfaces:
org.jasig.portal.ICacheable, ISubChannel

public class RestrictedAction
extends SubChannel

RestrictedAction

Ce plug-in ajoute n'est pas un véritable plugin au sens MAG. C'est à dire qu'il n'est pas nécessaire de faire un "register" et qu'il n'y a pas de prise en charge d'affichage.
L'interet de cette clase est de fournir une méthode statique pour filtrer l'accès d'une personne à une action.
De plus cette classe met dans les staticData le groupe reconnu.
(c)Copyright ESup-Portail 2004

Version:
$Revision: 1.1 $
Author:
Sébastien Gaudin

Constructor Summary
RestrictedAction(MainChannel main)
          Constructeur
 
Method Summary
static boolean filterAccess(MainChannel main, java.lang.String currentAction, java.util.HashMap mapping)
          Appel de la méthode filterAccess en autorisant l'accès aux actions sans déclaration de groupe
static boolean filterAccess(MainChannel main, java.lang.String currentAction, java.util.HashMap mapping, boolean allowWithoutGroupSpecification)
          Méthode statique qui permet de filtrer l'accès sur l'action en cours par rapport aux groupes auquel appatient la personne connectée
 
Methods inherited from class org.esupportail.portal.utils.channels.SubChannel
addDefaultXslParameters, addDownloadXslParameter, clearChannel, generateKey, getMainChannel, getMediaPath, getPackageName, getRuntimeData, getSSL, getXML, getXSL, getXSLParameter, init, isCacheValid, log, log, renderXML, setDefaultXslParameters, setOutput, setSSL, setXML, setXML, setXSL, setXSLParameter
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RestrictedAction

public RestrictedAction(MainChannel main)
Constructeur

Parameters:
main -
Method Detail

filterAccess

public static boolean filterAccess(MainChannel main,
                                   java.lang.String currentAction,
                                   java.util.HashMap mapping)
                            throws org.jasig.portal.PortalException,
                                   FrameWorkException
Appel de la méthode filterAccess en autorisant l'accès aux actions sans déclaration de groupe

Parameters:
main - la mainchannel
currentAction - le nom de l'action en cours
mapping - le mapping des groupes
Throws:
org.jasig.portal.PortalException
FrameWorkException

filterAccess

public static boolean filterAccess(MainChannel main,
                                   java.lang.String currentAction,
                                   java.util.HashMap mapping,
                                   boolean allowWithoutGroupSpecification)
                            throws org.jasig.portal.PortalException,
                                   FrameWorkException
Méthode statique qui permet de filtrer l'accès sur l'action en cours par rapport aux groupes auquel appatient la personne connectée

Parameters:
main - la mainchannel
currentAction - le nom de l'action en cours
mapping - le mapping des groupes
allowWithoutGroupSpecification - l'autorisation d'accès en cas de non déclaration de groupe
Throws:
org.jasig.portal.PortalException
FrameWorkException