public abstract class EntitlementStd
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
AREA_ADM |
static int |
AREA_GENERAL |
static int |
AREA_ORGANIZE |
static int |
AREA_REC |
static int |
AREA_REC_NEW_ONLY |
static int |
AREA_SUP |
static int |
RIGHT_NONE
no rights at all
|
static int |
RIGHT_READ
right to read
|
static int |
RIGHT_WRITE
right to write and delete
|
static java.lang.String |
TERRITORY_ADMINISTRATION
administration territory
|
static java.lang.String |
TERRITORY_ORGANIZATION
organization territory
|
static java.lang.String |
TERRITORY_STANDARD
everything that is 'standard work' with the application
|
Constructor and Description |
---|
EntitlementStd() |
Modifier and Type | Method and Description |
---|---|
int |
getRight(java.lang.String territory)
Returns the right of the user in this territory.
|
boolean |
isEditable(java.lang.String territory) |
boolean |
isEntitled(int area)
Returns true if user is entitled for this area.
|
boolean |
isEntitled(java.lang.String territory)
Returns true if user's role allows at least read access.
|
public static final int AREA_GENERAL
public static final int AREA_REC
public static final int AREA_REC_NEW_ONLY
public static final int AREA_ORGANIZE
public static final int AREA_ADM
public static final int AREA_SUP
public static final java.lang.String TERRITORY_ADMINISTRATION
public static final java.lang.String TERRITORY_ORGANIZATION
public static final java.lang.String TERRITORY_STANDARD
public static final int RIGHT_WRITE
public static final int RIGHT_READ
public static final int RIGHT_NONE
public boolean isEntitled(int area)
area
- the area to be accessed.public boolean isEntitled(java.lang.String territory)
territory
- the territory the user requests to enterpublic boolean isEditable(java.lang.String territory)
public int getRight(java.lang.String territory)
territory
- the territory the user requests to enterCopyright 1998-2023 Christoph Mueller, Kaerntner Str. 56, D-70469 Stuttgart, Germany, https://www.perpus.de