public final class AuditTypeEntryValue extends Object implements Serializable, Comparable
Modifier and Type | Field and Description |
---|---|
static int |
AUDIT_SUCCESS_MODE_FAILURE_ONLY
Constant used for the OPERATIONSUCCESSMODE attribute, indicating that
only failed operations will be audited.
|
static int |
AUDIT_SUCCESS_MODE_NONE
Constant used for the OPERATIONSUCCESSMODE attribute, indicating that
neither successful nor failed operations will be audited.
|
static int |
AUDIT_SUCCESS_MODE_SUCCESS_ONLY
Constant used for the OPERATIONSUCCESSMODE attribute, indicating that
only successful operations will be audited.
|
static int |
AUDIT_SUCCESS_MODE_SUCCESS_OR_FAILURE
Constant used for the OPERATIONSUCCESSMODE attribute, indicating that
both successful and failed operations will be audited.
|
Constructor and Description |
---|
AuditTypeEntryValue(int opType,
String opTypeKey,
int mode)
Constructs an AuditTypeEntryValue.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Object obj)
Determines the order of this result with respect to another.
|
int |
getOperationSuccessMode()
Returns the numeric value that describes whether successful and/or
failed operations should be audited.
|
int |
getOperationType()
Gets the operation type.
|
String |
getOperationTypeKey()
Gets the operation type key.
|
boolean |
isOperationIncluded(boolean wasSuccessful)
Gets whether an operation with the specified success status
should be audited.
|
public static final int AUDIT_SUCCESS_MODE_NONE
Value: 1
public static final int AUDIT_SUCCESS_MODE_SUCCESS_ONLY
Value: 2
public static final int AUDIT_SUCCESS_MODE_FAILURE_ONLY
Value: 3
public static final int AUDIT_SUCCESS_MODE_SUCCESS_OR_FAILURE
Value: 4
public AuditTypeEntryValue(int opType, String opTypeKey, int mode)
opType
- the operation typeopTypeKey
- the equivalent operation type keymode
- the success/failure modepublic int getOperationType()
public String getOperationTypeKey()
public boolean isOperationIncluded(boolean wasSuccessful)
public int getOperationSuccessMode()
Will be one of the following constants:
AUDIT_SUCCESS_MODE_NONE
AUDIT_SUCCESS_MODE_SUCCESS_ONLY
AUDIT_SUCCESS_MODE_FAILURE_ONLY
AUDIT_SUCCESS_MODE_SUCCESS_OR_FAILURE
public int compareTo(Object obj) throws ClassCastException
Note: this class has a natural ordering that is inconsistent with equals.
compareTo
in interface Comparable
obj
- the AuditTypeEntryValue to compareClassCastException
- if the object specified is not an
AuditTypeEntryValueCopyright © 2023. All rights reserved.