josehernandezfintecheandomx commented on code in PR #2308:
URL: https://github.com/apache/fineract/pull/2308#discussion_r864859184
##########
fineract-provider/src/main/java/org/apache/fineract/infrastructure/core/config/FineractProperties.java:
##########
@@ -60,5 +60,25 @@ public static class FineractModeProperties {
public boolean isReadOnlyMode() {
return readEnabled && !writeEnabled && !batchEnabled;
}
+
+ public boolean isWriteOnlyMode() {
+ return !readEnabled && writeEnabled && !batchEnabled;
+ }
+
+ public boolean isBatchOnlyMode() {
+ return !readEnabled && !writeEnabled && batchEnabled;
+ }
+
+ public boolean isReadInstance() {
+ return isReadOnlyMode() || readEnabled;
+ }
+
+ public boolean isWriteInstance() {
+ return isWriteOnlyMode() || writeEnabled;
+ }
+
+ public boolean isBatchInstance() {
Review Comment:
Due mixing the setup, you could have Batch only or Read/Write with Batch or
all and in all cases the instance is a Batch instance
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]