Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.esupportail.portal.channels.CIntranet.security
Class Security

    java.lang.Object
      org.esupportail.portal.channels.CIntranet.security.Security

public class Security
extends java.lang.Object

Security
Classe prenant en charge la gestion de la sécurité
(c)Copyright ESup-Portail 2004

Version:
  $Revision: 1.1.2.2 $
Author:
  Mathieu Larchet

Field Summary
`static int` | `AUT_FULL`
`static int` | `AUT_MOD`
`static int` | `AUT_NEW`
`static int` | `ED_FULL`
`static int` | `ED_VAL`
`static int` | `NONE`

Constructor Summary
`Security()`

Method Summary
`static int` | `getLevel(java.lang.String id, java.lang.String folderid)` Retourne le niveau de droit pour un dossier
`static boolean` | `isAdmin(java.lang.String id)` Appartenance aux administrateurs
`static boolean` | `isIntranetAccessible(java.lang.String id, java.lang.String intranetid)` Accès à un intranet

Methods inherited from class java.lang.Object
`equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### NONE

    public static final int NONE

See Also:
  Constant Field Values

### AUT_NEW

    public static final int AUT_NEW

See Also:
  Constant Field Values

### AUT_MOD

    public static final int AUT_MOD

See Also:
  Constant Field Values

### AUT_FULL

    public static final int AUT_FULL

See Also:
  Constant Field Values

### ED_VAL

    public static final int ED_VAL

See Also:
  Constant Field Values

### ED_FULL

    public static final int ED_FULL

See Also:
  Constant Field Values

Constructor Detail

### Security

    public Security()

Method Detail

### isAdmin

    public static boolean isAdmin(java.lang.String id)
                           throws SecurityException

  Appartenance aux administrateurs

  Parameters:
    `id` - l'identifiant de l'utilisateur
  Returns:
    admin true | false
  Throws:
    `SecurityException`

### isIntranetAccessible

    public static boolean isIntranetAccessible(java.lang.String id,
                                               java.lang.String intranetid)
                                        throws SecurityException

  Accès à un intranet

  Parameters:
    `id` - l'identifiant de l'utilisateur
    `intranetid` - l'identifiant de l'intranet
  Returns:
    access true | false
  Throws:
    `SecurityException`

### getLevel

    public static int getLevel(java.lang.String id,
                               java.lang.String folderid)
                        throws SecurityException

  Retourne le niveau de droit pour un dossier

  Parameters:
    `id` - l'identifiant de l'utilisateur
    `folderid` - l'identifiant du dossier
  Returns:
    level NONE | AUT_NEW | AUT_MOD | AUT_MOD | VAL_FOL | ED_VAL | ED_ADM
  Throws:
    `SecurityException`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD