public class SessionUtilities extends Object
Modifier and Type | Field and Description |
---|---|
static int |
EXECUTIONMODE_IGNORE_ACCESS_CHECKS
Custom execution mode for ignoring access checks (bit 0).
|
static int |
EXECUTIONMODE_IGNORE_CAPABILITY_CHECKS
Custom execution mode for ignoring type/configuration
capability checks (bit 1).
|
static int |
EXECUTIONMODE_IGNORE_LOCK_CHECKS
Custom execution mode for ignoring lock checks (bit 2).
|
Modifier and Type | Method and Description |
---|---|
static boolean |
isAccessCheckIgnored(LibrarySession session)
Check to see if the "access checks ignored" mode is enabled
in the application execution mode state.
|
static boolean |
isCapabilityCheckIgnored(LibrarySession session)
Check to see if the "type/configuration capability checks ignored"
mode is enabled in the application execution mode state.
|
static boolean |
isLockCheckIgnored(LibrarySession session)
Check to see if the "lock checks ignored"
mode is enabled in the application execution mode state.
|
static void |
popMode(LibrarySession session,
SessionMode mode)
Pop from a custom execution mode.
|
static void |
pushMode(LibrarySession session,
SessionMode mode)
Push into a custom execution mode.
|
public static final int EXECUTIONMODE_IGNORE_ACCESS_CHECKS
public static final int EXECUTIONMODE_IGNORE_CAPABILITY_CHECKS
public static final int EXECUTIONMODE_IGNORE_LOCK_CHECKS
public static void pushMode(LibrarySession session, SessionMode mode) throws IfsException
Uses information from the SessionMode argument to enable any of the following:
The caller must gaurantee that a popCustomMode
will be called with the same SessionMode argument specified
in this call when the specified mode is no longer desired.
session
- the session contextmode
- the desired custom execution modeIfsException
- if the operation failspublic static void popMode(LibrarySession session, SessionMode mode) throws IfsException
session
- the session contextmode
- the previously pushed cusotm execution modeIfsException
- if the operation failspublic static boolean isAccessCheckIgnored(LibrarySession session) throws IfsException
session
- the session contextIfsException
- if the operation failspublic static boolean isCapabilityCheckIgnored(LibrarySession session) throws IfsException
session
- the session contextIfsException
- if the operation failspublic static boolean isLockCheckIgnored(LibrarySession session) throws IfsException
session
- the session contextIfsException
- if the operation failsCopyright © 2023. All rights reserved.