Skip to content

Commit

Permalink
FINERACT-1716: Reduce boilerplate code by using @getter annotation in…
Browse files Browse the repository at this point in the history
… `CommandWrapper` class.
  • Loading branch information
Zeyad2003 authored and Jose Alberto Hernandez committed Mar 21, 2024
1 parent d2887a9 commit 45c5d44
Showing 1 changed file with 2 additions and 68 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -140,26 +142,6 @@ private CommandWrapper(final Long commandId, final String actionName, final Stri
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");
}
Expand Down Expand Up @@ -226,22 +208,6 @@ public boolean isCacheResource() {
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");
}
Expand Down Expand Up @@ -298,34 +264,6 @@ public String taskPermissionName() {
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");
}
Expand Down Expand Up @@ -355,8 +293,4 @@ public boolean addAndDeleteDisbursementDetails() {
return this.actionName.equalsIgnoreCase("UPDATE") && this.entityName.equalsIgnoreCase("DISBURSEMENTDETAIL")
&& this.entityId == null;
}

public String getJobName() {
return jobName;
}
}

0 comments on commit 45c5d44

Please sign in to comment.