Package ca.cdr.api.fhir.interceptor
Enum Class MemberMatchConsentDecision
- All Implemented Interfaces:
Serializable,Comparable<MemberMatchConsentDecision>,Constable
Outcome of a custom consent validation performed by a
CdrPointcut.MEMBER_MATCH_CONSENT_VALIDATION hook.
A hook returns one of these values to override the built-in consent determination for a matched member. Returning
null (or void) instead abstains, in which case the default consent validation is applied.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe consent is constrained; the member-match operation fails with a422 Unprocessable Entityresponse.The consent determination is valid and the member-match operation may proceed. -
Method Summary
Modifier and TypeMethodDescriptionstatic MemberMatchConsentDecisionReturns the enum constant of this class with the specified name.static MemberMatchConsentDecision[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
VALID
The consent determination is valid and the member-match operation may proceed. -
CONSTRAINED
The consent is constrained; the member-match operation fails with a422 Unprocessable Entityresponse.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-