![](/hapi-fhir/images/logos/raccoon-forwards.png)
Enum ConsentOperationStatusEnum
java.lang.Object
java.lang.Enum<ConsentOperationStatusEnum>
ca.uhn.fhir.rest.server.interceptor.consent.ConsentOperationStatusEnum
- All Implemented Interfaces:
Serializable
,Comparable<ConsentOperationStatusEnum>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe engine has nothing to say about the operation (same as proceed, but the host application need not consult the engine - can use more efficient counting/caching methods)The requested operation is allowed to proceed, but the engine will review each resource before sending to the clientThe requested operation cannot proceed, and an operation outcome suitable for the user is available -
Method Summary
Modifier and TypeMethodDescriptionstatic ConsentOperationStatusEnum
parallelEvaluate
(Stream<ConsentOperationStatusEnum> theVoteStream) Evaluate all verdicts together, allowing any to veto (i.e.parallelReduce
(ConsentOperationStatusEnum theNextVerdict) Evaluate two verdicts together, allowing either to veto (i.e.static ConsentOperationStatusEnum
serialEvaluate
(Stream<ConsentOperationStatusEnum> theVoteStream) Evaluate verdicts in order, taking the first "decision" (i.e.serialReduce
(ConsentOperationStatusEnum theNextVerdict) Evaluate verdicts in order, taking the first "decision" (i.e.static ConsentOperationStatusEnum
Returns the enum constant of this type with the specified name.static ConsentOperationStatusEnum[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
REJECT
The requested operation cannot proceed, and an operation outcome suitable for the user is available -
PROCEED
The requested operation is allowed to proceed, but the engine will review each resource before sending to the client -
AUTHORIZED
The engine has nothing to say about the operation (same as proceed, but the host application need not consult the engine - can use more efficient counting/caching methods)
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
serialEvaluate
public static ConsentOperationStatusEnum serialEvaluate(Stream<ConsentOperationStatusEnum> theVoteStream) Evaluate verdicts in order, taking the first "decision" (i.e. first non-PROCEED) verdict.- Returns:
- the first decisive verdict, or PROCEED when empty or all PROCEED.
-
serialReduce
Evaluate verdicts in order, taking the first "decision" (i.e. first non-PROCEED) verdict.- Parameters:
theNextVerdict
- the next verdict to consider- Returns:
- the combined verdict
-
parallelEvaluate
public static ConsentOperationStatusEnum parallelEvaluate(Stream<ConsentOperationStatusEnum> theVoteStream) Evaluate all verdicts together, allowing any to veto (i.e. REJECT) the operation.- If any vote is REJECT, then the result is REJECT.
- If no vote is REJECT, and any vote is AUTHORIZED, then the result is AUTHORIZED.
- If no vote is REJECT or AUTHORIZED, the result is PROCEED.
- Returns:
- REJECT if any reject, AUTHORIZED if no REJECT and some AUTHORIZED, PROCEED if empty or all PROCEED
-
parallelReduce
Evaluate two verdicts together, allowing either to veto (i.e. REJECT) the operation.- Returns:
- REJECT if either reject, AUTHORIZED if no REJECT and some AUTHORIZED, PROCEED otherwise
-