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 SummaryNested Classes
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final PolicyResponsestatic final intstatic final PolicyResponsestatic final intstatic final PolicyResponsestatic final intstatic final PolicyResponsestatic final int
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected booleanbooleanintgetState()getTrace()inthashCode()log()voidvoidsetTrace(StackTraceElement[] trace) toString()trace()with(String reason, Map<String, Object> authenticationDetails, org.apache.commons.lang3.tuple.Pair<String, String>... keyValue) 
- 
Field Details- 
VALID_STATEpublic static final int VALID_STATE- See Also:
 
- 
NOT_VISIBLE_STATEpublic static final int NOT_VISIBLE_STATE- See Also:
 
- 
NOT_MUTABLE_STATEpublic static final int NOT_MUTABLE_STATE- See Also:
 
- 
NOT_PERMITTED_STATEpublic static final int NOT_PERMITTED_STATE- See Also:
 
- 
VALID
- 
NOT_VISIBLE
- 
NOT_MUTABLE
- 
NOT_PERMITTED
 
- 
- 
Constructor Details- 
PolicyResponse
 
- 
- 
Method Details- 
withpublic PolicyResponse with(String reason, Map<String, Object> authenticationDetails, ContextInfo contextInfo) 
- 
with
- 
trace
- 
log
- 
equals
- 
canEqual
- 
hashCodepublic int hashCode()
- 
getStatepublic int getState()
- 
getStateString
- 
getReason
- 
getTrace
- 
setReason
- 
setTrace
- 
toString
 
-