Enum ConsentOperationStatusEnum
java.lang.Object
java.lang.Enum<ConsentOperationStatusEnum>
ca.uhn.fhir.rest.server.interceptor.consent.ConsentOperationStatusEnum
- All Implemented Interfaces:
IConsentVote
,Serializable
,Comparable<ConsentOperationStatusEnum>
public enum ConsentOperationStatusEnum
extends Enum<ConsentOperationStatusEnum>
implements IConsentVote
-
Enum Constant Summary
Enum 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 TypeMethodDescriptionGet the votestatic ConsentOperationStatusEnum
parallelEvaluate
(Stream<ConsentOperationStatusEnum> theVoteStream) Deprecated, for removal: This API element is subject to removal in a future version.for renamestatic ConsentOperationStatusEnum
parallelReduce
(Stream<ConsentOperationStatusEnum> theVoteStream) static ConsentOperationStatusEnum
serialEvaluate
(Stream<ConsentOperationStatusEnum> theVoteStream) Deprecated, for removal: This API element is subject to removal in a future version.for renamestatic ConsentOperationStatusEnum
serialReduce
(Stream<ConsentOperationStatusEnum> theVoteStream) 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
-
getStatus
Description copied from interface:IConsentVote
Get the vote- Specified by:
getStatus
in interfaceIConsentVote
- Returns:
- the vote
-
serialReduce
public static ConsentOperationStatusEnum serialReduce(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.
-
parallelReduce
public static ConsentOperationStatusEnum parallelReduce(Stream<ConsentOperationStatusEnum> theVoteStream) -
serialEvaluate
@Deprecated(forRemoval=true) public static ConsentOperationStatusEnum serialEvaluate(Stream<ConsentOperationStatusEnum> theVoteStream) Deprecated, for removal: This API element is subject to removal in a future version.for rename -
parallelEvaluate
@Deprecated(forRemoval=true) public static ConsentOperationStatusEnum parallelEvaluate(Stream<ConsentOperationStatusEnum> theVoteStream) Deprecated, for removal: This API element is subject to removal in a future version.for rename
-