This is an automated email from the ASF dual-hosted git repository.

arnold pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/fineract.git


The following commit(s) were added to refs/heads/develop by this push:
     new bb0c7eba7 FINERACT-1716: Reduce boilerplate code by using @Getter 
annotation in `CommandWrapper` class.
bb0c7eba7 is described below

commit bb0c7eba7ac3507a354993c7ab81d8cac7243815
Author: zeyad2003 <[email protected]>
AuthorDate: Wed Mar 20 00:35:41 2024 +0200

    FINERACT-1716: Reduce boilerplate code by using @Getter annotation in 
`CommandWrapper` class.
---
 .../fineract/commands/domain/CommandWrapper.java   | 70 +---------------------
 1 file changed, 2 insertions(+), 68 deletions(-)

diff --git 
a/fineract-core/src/main/java/org/apache/fineract/commands/domain/CommandWrapper.java
 
b/fineract-core/src/main/java/org/apache/fineract/commands/domain/CommandWrapper.java
index 99a340a8e..135c1bce6 100644
--- 
a/fineract-core/src/main/java/org/apache/fineract/commands/domain/CommandWrapper.java
+++ 
b/fineract-core/src/main/java/org/apache/fineract/commands/domain/CommandWrapper.java
@@ -18,8 +18,10 @@
  */
 package org.apache.fineract.commands.domain;
 
+import lombok.Getter;
 import 
org.apache.fineract.useradministration.api.PasswordPreferencesApiConstants;
 
+@Getter
 public class CommandWrapper {
 
     private final Long commandId;
@@ -140,26 +142,6 @@ public class CommandWrapper {
         this.idempotencyKey = idempotencyKey;
     }
 
-    public Long getCreditBureauId() {
-        return this.creditBureauId;
-    }
-
-    public Long getOrganisationCreditBureauId() {
-        return this.organisationCreditBureauId;
-    }
-
-    public String getIdempotencyKey() {
-        return idempotencyKey;
-    }
-
-    public String getHref() {
-        return this.href;
-    }
-
-    public String getJson() {
-        return this.json;
-    }
-
     public boolean isCreate() {
         return this.actionName.equalsIgnoreCase("CREATE");
     }
@@ -226,22 +208,6 @@ public class CommandWrapper {
         return this.entityName.equalsIgnoreCase("CACHE");
     }
 
-    public Long getSubentityId() {
-        return this.subentityId;
-    }
-
-    public String getTransactionId() {
-        return this.transactionId;
-    }
-
-    public String getEntityName() {
-        return this.entityName;
-    }
-
-    public Long getEntityId() {
-        return this.entityId;
-    }
-
     public boolean isUpdateOperation() {
         return this.actionName.equalsIgnoreCase("UPDATE");
     }
@@ -298,34 +264,6 @@ public class CommandWrapper {
         return this.actionName + "_" + this.entityName;
     }
 
-    public String getTaskPermissionName() {
-        return this.taskPermissionName;
-    }
-
-    public Long getOfficeId() {
-        return officeId;
-    }
-
-    public Long getGroupId() {
-        return this.groupId;
-    }
-
-    public Long getClientId() {
-        return this.clientId;
-    }
-
-    public Long getLoanId() {
-        return this.loanId;
-    }
-
-    public Long getSavingsId() {
-        return this.savingsId;
-    }
-
-    public Long getProductId() {
-        return this.productId;
-    }
-
     public boolean isPermissionResource() {
         return this.entityName.equalsIgnoreCase("PERMISSION");
     }
@@ -355,8 +293,4 @@ public class CommandWrapper {
         return this.actionName.equalsIgnoreCase("UPDATE") && 
this.entityName.equalsIgnoreCase("DISBURSEMENTDETAIL")
                 && this.entityId == null;
     }
-
-    public String getJobName() {
-        return jobName;
-    }
 }

Reply via email to