public abstract class EntitlementStd
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
AREA_GENERAL |
static int |
AREA_ROOT |
static int |
LEVEL_ADD |
static int |
LEVEL_ALL |
static int |
LEVEL_CHANGE |
static int |
LEVEL_DELETE |
static int |
LEVEL_NOTHING |
static int |
LEVEL_VIEW |
protected SessionData |
sessionData |
Constructor and Description |
---|
EntitlementStd(SessionData sessionData)
Constructs a new entitlement manager.
|
Modifier and Type | Method and Description |
---|---|
int |
getLevel(Dialog dialog)
Returns the access level of the dialog as specified.
|
protected abstract int |
getLevel(int subjectArea)
Returns what the logged in user may do in this context.
|
int |
getLevel(MustMenu mustMenu)
Returns the access level of the menu as specified.
|
int |
getLevel(MustMenuItem mustMenuItem)
Returns the access level of the menu item as specified.
|
boolean |
isEntitled(MustMenuItem mustMenuItem)
Returns whether a menu item may be accessed.
|
public static final int AREA_GENERAL
public static final int AREA_ROOT
public static final int LEVEL_NOTHING
public static final int LEVEL_VIEW
public static final int LEVEL_ADD
public static final int LEVEL_CHANGE
public static final int LEVEL_DELETE
public static final int LEVEL_ALL
protected SessionData sessionData
public EntitlementStd(SessionData sessionData)
sessionData
- the session's global datapublic int getLevel(MustMenu mustMenu)
mustmenu
- the menu to check accesspublic boolean isEntitled(MustMenuItem mustMenuItem)
mustMenuItem
- the menu item to check accesspublic int getLevel(MustMenuItem mustMenuItem)
mustMenuItem
- the menu item to check accesspublic int getLevel(Dialog dialog)
dialog
- the dialog to check accessprotected abstract int getLevel(int subjectArea)
subjectArea
- the subject area of the contextCopyright 1998-2023 Christoph Mueller, Kaerntner Str. 56, D-70469 Stuttgart, Germany, https://www.perpus.de