mirror of
https://github.com/hapifhir/hapi-fhir.git
synced 2025-03-01 17:49:21 +00:00
Started implementing mdm passive mode
This commit is contained in:
parent
dea9706652
commit
6c519ef81c
@ -48,6 +48,11 @@ public interface IBaseInterceptorService<POINTCUT extends IPointcut> extends IBa
|
|||||||
*/
|
*/
|
||||||
List<Object> getAllRegisteredInterceptors();
|
List<Object> getAllRegisteredInterceptors();
|
||||||
|
|
||||||
|
|
||||||
|
default boolean hasRegisteredInterceptor(Class<?> theInterceptorClass) {
|
||||||
|
return getAllRegisteredInterceptors().stream().anyMatch(t -> t.getClass().equals(theInterceptorClass));
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Unregisters all registered interceptors.
|
* Unregisters all registered interceptors.
|
||||||
*/
|
*/
|
||||||
|
@ -72,4 +72,7 @@ public interface IMdmSettings {
|
|||||||
default void setAutoExpungeGoldenResources(boolean theShouldAutoExpunge) {
|
default void setAutoExpungeGoldenResources(boolean theShouldAutoExpunge) {
|
||||||
throw new UnsupportedOperationException(Msg.code(2427));
|
throw new UnsupportedOperationException(Msg.code(2427));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// In passive mode, the Patient/$match operation is available, but no mdm processing takes place.
|
||||||
|
boolean isPassiveModeEnabled();
|
||||||
}
|
}
|
||||||
|
@ -42,6 +42,7 @@ public class MdmSettings implements IMdmSettings {
|
|||||||
private String myGoldenResourcePartitionName;
|
private String myGoldenResourcePartitionName;
|
||||||
private boolean mySearchAllPartitionForMatch = false;
|
private boolean mySearchAllPartitionForMatch = false;
|
||||||
private boolean myShouldAutoDeleteGoldenResources = true;
|
private boolean myShouldAutoDeleteGoldenResources = true;
|
||||||
|
private boolean myPassiveModeEnabled = false;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* If disabled, the underlying MDM system will operate under the following assumptions:
|
* If disabled, the underlying MDM system will operate under the following assumptions:
|
||||||
@ -169,4 +170,13 @@ public class MdmSettings implements IMdmSettings {
|
|||||||
public void setAutoExpungeGoldenResources(boolean theShouldAutoExpunge) {
|
public void setAutoExpungeGoldenResources(boolean theShouldAutoExpunge) {
|
||||||
myShouldAutoDeleteGoldenResources = theShouldAutoExpunge;
|
myShouldAutoDeleteGoldenResources = theShouldAutoExpunge;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void setPassiveModeEnabled(boolean thePassiveModeEnabled) {
|
||||||
|
myPassiveModeEnabled = thePassiveModeEnabled;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean isPassiveModeEnabled() {
|
||||||
|
return myPassiveModeEnabled;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user