public final class SessionMode extends Object
SessionUtilities.pushCustomMode
and
SessionUtilities.popCustomMode
.
A SessionMode can represent execution mode settings for any or all of the following:
Modifier and Type | Field and Description |
---|---|
static SessionMode |
ADMIN_IGNORE_ACCESS_CAPOVERRIDES
Session mode for enabling LibrarySession Administration mode,
with ignoring of access checks and capability override checks.
|
static SessionMode |
ADMIN_IGNORE_ALL
Session mode for enabling LibrarySession Administration mode,
with ignoring all checks (access checks, lock checks, and
capability override checks).
|
static SessionMode |
DISCOVERALL
Session mode for enabling LibrarySession AdministrationDiscover mode.
|
static SessionMode |
IGNORE_ACCESS_CAPOVERRIDES
Session mode for ignoring of access checks and
capability override checks.
|
static SessionMode |
IGNORE_LOCKS
Session mode for ignoring of lock checks.
|
static SessionMode |
INSTALLADMIN_IGNORE_ALL
Session mode for enabling LibrarySession install Administration mode,
with ignoring all checks (access checks, lock checks, and
capability override checks).
|
static SessionMode |
SYSTEMADMIN_IGNORE_ACCESS_CAPOVERRIDES
Session mode for enabling LibrarySession System Administration mode,
with ignoring of access checks and capability override checks.
|
static SessionMode |
SYSTEMADMIN_IGNORE_ALL
Session mode for enabling LibrarySession System Administration mode,
with ignoring all checks (access checks, lock checks, and
capability override checks).
|
Constructor and Description |
---|
SessionMode(Integer execMode,
boolean ignoreAccess,
boolean ignoreCapability,
boolean ignoreLock)
Construct a SessionMode.
|
Modifier and Type | Method and Description |
---|---|
int |
getApplicationMode()
Returns the combined Application mode.
|
Integer |
getExecutionMode()
Gets the desired LibrarySession execution mode.
|
boolean |
isAccessCheckIgnored()
Returns true if access checks are to be ignored.
|
boolean |
isCapabilityCheckIgnored()
Returns true if type/configuration capability
checks should be ignored
|
boolean |
isLockCheckIgnored()
Returns true if lock checks are to be ignored.
|
public static final SessionMode DISCOVERALL
public static final SessionMode ADMIN_IGNORE_ACCESS_CAPOVERRIDES
public static final SessionMode IGNORE_ACCESS_CAPOVERRIDES
public static final SessionMode IGNORE_LOCKS
public static final SessionMode ADMIN_IGNORE_ALL
public static final SessionMode SYSTEMADMIN_IGNORE_ACCESS_CAPOVERRIDES
public static final SessionMode SYSTEMADMIN_IGNORE_ALL
public static final SessionMode INSTALLADMIN_IGNORE_ALL
public SessionMode(Integer execMode, boolean ignoreAccess, boolean ignoreCapability, boolean ignoreLock)
execMode
- desired LibrarySession execution mode; null
if no special execution mode is desiredignoreAccess
- whether access checks should be ignoredignoreCapability
- whether type/configuration capability
checks should be ignoredignoreLock
- whether lock checks should be ignoredpublic final Integer getExecutionMode()
Returns null if no special execution mode is desired.
public final boolean isAccessCheckIgnored()
public final boolean isCapabilityCheckIgnored()
public final boolean isLockCheckIgnored()
public final int getApplicationMode()
Copyright © 2023. All rights reserved.