Class PolicyResponse
java.lang.Object
com.broadleafcommerce.data.tracking.core.policy.PolicyResponse
The result of the validation.
- VALID - the validation succeeded
- NOT_VISIBLE - the validation failed because a resource requested as part of the context or
method params was deemed not visible to one or more other context params, or the current
Authentication
- NOT_MUTABLE - the validation failed because a resource requested as part of the context or
method params was deemed not mutable based on one or more other context params, or the current
Authentication
- NOT_PERMITTED - the validation failed because an operation requested with a particular
associated permission was deemed out-of-scope for allowed granted authorities on the current
Authentication
- Author:
- Jeff Fischer
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final PolicyResponse
static final int
static final PolicyResponse
static final int
static final PolicyResponse
static final int
static final PolicyResponse
static final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
int
getState()
getTrace()
int
hashCode()
log()
void
void
setTrace
(StackTraceElement[] trace) toString()
trace()
with
(String reason, Map<String, Object> authenticationDetails, org.apache.commons.lang3.tuple.Pair<String, String>... keyValue)
-
Field Details
-
VALID_STATE
public static final int VALID_STATE- See Also:
-
NOT_VISIBLE_STATE
public static final int NOT_VISIBLE_STATE- See Also:
-
NOT_MUTABLE_STATE
public static final int NOT_MUTABLE_STATE- See Also:
-
NOT_PERMITTED_STATE
public static final int NOT_PERMITTED_STATE- See Also:
-
VALID
-
NOT_VISIBLE
-
NOT_MUTABLE
-
NOT_PERMITTED
-
-
Constructor Details
-
PolicyResponse
-
-
Method Details
-
with
public PolicyResponse with(String reason, Map<String, Object> authenticationDetails, ContextInfo contextInfo) -
with
-
trace
-
log
-
equals
-
canEqual
-
hashCode
public int hashCode() -
getState
public int getState() -
getStateString
-
getReason
-
getTrace
-
setReason
-
setTrace
-
toString
-