diff --git a/mifosng-provider/src/main/java/org/mifosplatform/accounting/accrual/handler/ExecutePeriodicAccrualCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/accounting/accrual/handler/ExecutePeriodicAccrualCommandHandler.java index c2e41ce3a..a43da877b 100755 --- a/mifosng-provider/src/main/java/org/mifosplatform/accounting/accrual/handler/ExecutePeriodicAccrualCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/accounting/accrual/handler/ExecutePeriodicAccrualCommandHandler.java @@ -6,6 +6,7 @@ package org.mifosplatform.accounting.accrual.handler; import org.mifosplatform.accounting.accrual.service.AccrualAccountingWritePlatformService; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "PERIODICACCRUALACCOUNTING", action = "EXECUTE") public class ExecutePeriodicAccrualCommandHandler implements NewCommandSourceHandler { private final AccrualAccountingWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/accounting/closure/handler/CreateGLClosureCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/accounting/closure/handler/CreateGLClosureCommandHandler.java index a5e0051a3..843370aa8 100755 --- a/mifosng-provider/src/main/java/org/mifosplatform/accounting/closure/handler/CreateGLClosureCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/accounting/closure/handler/CreateGLClosureCommandHandler.java @@ -6,6 +6,7 @@ package org.mifosplatform.accounting.closure.handler; import org.mifosplatform.accounting.closure.service.GLClosureWritePlatformService; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "GLCLOSURE", action = "CREATE") public class CreateGLClosureCommandHandler implements NewCommandSourceHandler { private final GLClosureWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/accounting/closure/handler/DeleteGLClosureCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/accounting/closure/handler/DeleteGLClosureCommandHandler.java index 8ed6e23a8..6107339dc 100755 --- a/mifosng-provider/src/main/java/org/mifosplatform/accounting/closure/handler/DeleteGLClosureCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/accounting/closure/handler/DeleteGLClosureCommandHandler.java @@ -6,6 +6,7 @@ package org.mifosplatform.accounting.closure.handler; import org.mifosplatform.accounting.closure.service.GLClosureWritePlatformService; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "GLCLOSURE", action = "DELETE") public class DeleteGLClosureCommandHandler implements NewCommandSourceHandler { private final GLClosureWritePlatformService closureWritePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/accounting/closure/handler/UpdateGLClosureCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/accounting/closure/handler/UpdateGLClosureCommandHandler.java index 665041c8b..75e4c32a9 100755 --- a/mifosng-provider/src/main/java/org/mifosplatform/accounting/closure/handler/UpdateGLClosureCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/accounting/closure/handler/UpdateGLClosureCommandHandler.java @@ -6,6 +6,7 @@ package org.mifosplatform.accounting.closure.handler; import org.mifosplatform.accounting.closure.service.GLClosureWritePlatformService; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "GLCLOSURE", action = "UPDATE") public class UpdateGLClosureCommandHandler implements NewCommandSourceHandler { private final GLClosureWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/accounting/financialactivityaccount/handler/CreateFinancialActivityAccountHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/accounting/financialactivityaccount/handler/CreateFinancialActivityAccountHandler.java index 57caccb50..c8113b1c9 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/accounting/financialactivityaccount/handler/CreateFinancialActivityAccountHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/accounting/financialactivityaccount/handler/CreateFinancialActivityAccountHandler.java @@ -6,6 +6,7 @@ package org.mifosplatform.accounting.financialactivityaccount.handler; import org.mifosplatform.accounting.financialactivityaccount.service.FinancialActivityAccountWritePlatformService; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "FINANCIALACTIVITYACCOUNT", action = "CREATE") public class CreateFinancialActivityAccountHandler implements NewCommandSourceHandler { private final FinancialActivityAccountWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/accounting/financialactivityaccount/handler/DeleteFinancialActivityAccountCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/accounting/financialactivityaccount/handler/DeleteFinancialActivityAccountCommandHandler.java index 3b5454c93..26909f41f 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/accounting/financialactivityaccount/handler/DeleteFinancialActivityAccountCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/accounting/financialactivityaccount/handler/DeleteFinancialActivityAccountCommandHandler.java @@ -6,6 +6,7 @@ package org.mifosplatform.accounting.financialactivityaccount.handler; import org.mifosplatform.accounting.financialactivityaccount.service.FinancialActivityAccountWritePlatformService; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "FINANCIALACTIVITYACCOUNT", action = "DELETE") public class DeleteFinancialActivityAccountCommandHandler implements NewCommandSourceHandler { private final FinancialActivityAccountWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/accounting/financialactivityaccount/handler/UpdateFinancialActivityAccountCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/accounting/financialactivityaccount/handler/UpdateFinancialActivityAccountCommandHandler.java index ba2a94a11..290467cf4 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/accounting/financialactivityaccount/handler/UpdateFinancialActivityAccountCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/accounting/financialactivityaccount/handler/UpdateFinancialActivityAccountCommandHandler.java @@ -6,6 +6,7 @@ package org.mifosplatform.accounting.financialactivityaccount.handler; import org.mifosplatform.accounting.financialactivityaccount.service.FinancialActivityAccountWritePlatformService; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "FINANCIALACTIVITYACCOUNT", action = "UPDATE") public class UpdateFinancialActivityAccountCommandHandler implements NewCommandSourceHandler { private final FinancialActivityAccountWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/accounting/glaccount/handler/CreateGLAccountCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/accounting/glaccount/handler/CreateGLAccountCommandHandler.java index 36f686573..44c345e64 100755 --- a/mifosng-provider/src/main/java/org/mifosplatform/accounting/glaccount/handler/CreateGLAccountCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/accounting/glaccount/handler/CreateGLAccountCommandHandler.java @@ -6,6 +6,7 @@ package org.mifosplatform.accounting.glaccount.handler; import org.mifosplatform.accounting.glaccount.service.GLAccountWritePlatformService; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "GLACCOUNT", action = "CREATE") public class CreateGLAccountCommandHandler implements NewCommandSourceHandler { private final GLAccountWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/accounting/glaccount/handler/DeleteGLAccountCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/accounting/glaccount/handler/DeleteGLAccountCommandHandler.java index ba872d8c7..2aefd9cef 100755 --- a/mifosng-provider/src/main/java/org/mifosplatform/accounting/glaccount/handler/DeleteGLAccountCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/accounting/glaccount/handler/DeleteGLAccountCommandHandler.java @@ -6,6 +6,7 @@ package org.mifosplatform.accounting.glaccount.handler; import org.mifosplatform.accounting.glaccount.service.GLAccountWritePlatformService; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "GLACCOUNT", action = "DELETE") public class DeleteGLAccountCommandHandler implements NewCommandSourceHandler { private final GLAccountWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/accounting/glaccount/handler/UpdateGLAccountCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/accounting/glaccount/handler/UpdateGLAccountCommandHandler.java index a25f4ab90..83cc61bc6 100755 --- a/mifosng-provider/src/main/java/org/mifosplatform/accounting/glaccount/handler/UpdateGLAccountCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/accounting/glaccount/handler/UpdateGLAccountCommandHandler.java @@ -6,6 +6,7 @@ package org.mifosplatform.accounting.glaccount.handler; import org.mifosplatform.accounting.glaccount.service.GLAccountWritePlatformService; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "GLACCOUNT", action = "UPDATE") public class UpdateGLAccountCommandHandler implements NewCommandSourceHandler { private final GLAccountWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/accounting/journalentry/handler/CreateJournalEntryCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/accounting/journalentry/handler/CreateJournalEntryCommandHandler.java index a6644fbac..fe86a4237 100755 --- a/mifosng-provider/src/main/java/org/mifosplatform/accounting/journalentry/handler/CreateJournalEntryCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/accounting/journalentry/handler/CreateJournalEntryCommandHandler.java @@ -6,6 +6,7 @@ package org.mifosplatform.accounting.journalentry.handler; import org.mifosplatform.accounting.journalentry.service.JournalEntryWritePlatformService; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "JOURNALENTRY", action = "CREATE") public class CreateJournalEntryCommandHandler implements NewCommandSourceHandler { private final JournalEntryWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/accounting/journalentry/handler/DefineOpeningBalanceCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/accounting/journalentry/handler/DefineOpeningBalanceCommandHandler.java index ff6be269d..bee95db0a 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/accounting/journalentry/handler/DefineOpeningBalanceCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/accounting/journalentry/handler/DefineOpeningBalanceCommandHandler.java @@ -6,6 +6,7 @@ package org.mifosplatform.accounting.journalentry.handler; import org.mifosplatform.accounting.journalentry.service.JournalEntryWritePlatformService; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -13,6 +14,7 @@ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @Service +@CommandType(entity = "JOURNALENTRY", action = "DEFINEOPENINGBALANCE") public class DefineOpeningBalanceCommandHandler implements NewCommandSourceHandler { private final JournalEntryWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/accounting/journalentry/handler/ReverseJournalEntryCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/accounting/journalentry/handler/ReverseJournalEntryCommandHandler.java index 971da60dd..64bf2630a 100755 --- a/mifosng-provider/src/main/java/org/mifosplatform/accounting/journalentry/handler/ReverseJournalEntryCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/accounting/journalentry/handler/ReverseJournalEntryCommandHandler.java @@ -6,6 +6,7 @@ package org.mifosplatform.accounting.journalentry.handler; import org.mifosplatform.accounting.journalentry.service.JournalEntryWritePlatformService; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "JOURNALENTRY", action = "REVERSE") public class ReverseJournalEntryCommandHandler implements NewCommandSourceHandler { private final JournalEntryWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/accounting/journalentry/handler/UpdateRunningBalanceCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/accounting/journalentry/handler/UpdateRunningBalanceCommandHandler.java index 3268eb3fb..9d52f2a9c 100755 --- a/mifosng-provider/src/main/java/org/mifosplatform/accounting/journalentry/handler/UpdateRunningBalanceCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/accounting/journalentry/handler/UpdateRunningBalanceCommandHandler.java @@ -6,6 +6,7 @@ package org.mifosplatform.accounting.journalentry.handler; import org.mifosplatform.accounting.journalentry.service.JournalEntryRunningBalanceUpdateService; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -13,6 +14,7 @@ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @Service +@CommandType(entity = "JOURNALENTRY", action = "UPDATERUNNINGBALANCE") public class UpdateRunningBalanceCommandHandler implements NewCommandSourceHandler { private final JournalEntryRunningBalanceUpdateService journalEntryRunningBalanceUpdateService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/accounting/rule/handler/CreateAccountingRuleCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/accounting/rule/handler/CreateAccountingRuleCommandHandler.java index bb5fe8966..c4028b31a 100755 --- a/mifosng-provider/src/main/java/org/mifosplatform/accounting/rule/handler/CreateAccountingRuleCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/accounting/rule/handler/CreateAccountingRuleCommandHandler.java @@ -6,6 +6,7 @@ package org.mifosplatform.accounting.rule.handler; import org.mifosplatform.accounting.rule.service.AccountingRuleWritePlatformService; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "ACCOUNTINGRULE", action = "CREATE") public class CreateAccountingRuleCommandHandler implements NewCommandSourceHandler { private final AccountingRuleWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/accounting/rule/handler/DeleteAccountingRuleCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/accounting/rule/handler/DeleteAccountingRuleCommandHandler.java index dd6d9c996..1bb24c7be 100755 --- a/mifosng-provider/src/main/java/org/mifosplatform/accounting/rule/handler/DeleteAccountingRuleCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/accounting/rule/handler/DeleteAccountingRuleCommandHandler.java @@ -6,6 +6,7 @@ package org.mifosplatform.accounting.rule.handler; import org.mifosplatform.accounting.rule.service.AccountingRuleWritePlatformService; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "ACCOUNTINGRULE", action = "DELETE") public class DeleteAccountingRuleCommandHandler implements NewCommandSourceHandler { private final AccountingRuleWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/accounting/rule/handler/UpdateAccountingRuleCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/accounting/rule/handler/UpdateAccountingRuleCommandHandler.java index f0da2a337..9cc6bf050 100755 --- a/mifosng-provider/src/main/java/org/mifosplatform/accounting/rule/handler/UpdateAccountingRuleCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/accounting/rule/handler/UpdateAccountingRuleCommandHandler.java @@ -6,6 +6,7 @@ package org.mifosplatform.accounting.rule.handler; import org.mifosplatform.accounting.rule.service.AccountingRuleWritePlatformService; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "ACCOUNTINGRULE", action = "UPDATE") public class UpdateAccountingRuleCommandHandler implements NewCommandSourceHandler { private final AccountingRuleWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/commands/domain/CommandWrapper.java b/mifosng-provider/src/main/java/org/mifosplatform/commands/domain/CommandWrapper.java index 625f771fa..1ff8fcd4f 100755 --- a/mifosng-provider/src/main/java/org/mifosplatform/commands/domain/CommandWrapper.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/commands/domain/CommandWrapper.java @@ -5,9 +5,6 @@ */ package org.mifosplatform.commands.domain; -import org.mifosplatform.infrastructure.accountnumberformat.service.AccountNumberFormatConstants; -import org.mifosplatform.portfolio.loanaccount.rescheduleloan.RescheduleLoansApiConstants; -import org.mifosplatform.portfolio.savings.DepositsApiConstants; import org.mifosplatform.useradministration.api.PasswordPreferencesApiConstants; public class CommandWrapper { @@ -109,6 +106,127 @@ public class CommandWrapper { this.transactionId = transactionId; this.productId = productId; } + + public String getHref() { + return this.href; + } + + public String getJson() { + return this.json; + } + + public boolean isCreate() { + return this.actionName.equalsIgnoreCase("CREATE"); + } + + public boolean isCreateDatatable() { + return this.actionName.equalsIgnoreCase("CREATE") && this.href.startsWith("/datatables/") && this.entityId == null; + } + + public boolean isDeleteDatatable() { + return this.actionName.equalsIgnoreCase("DELETE") && this.href.startsWith("/datatables/") && this.entityId == null; + } + + public boolean isUpdateDatatable() { + return this.actionName.equalsIgnoreCase("UPDATE") && this.href.startsWith("/datatables/") && this.entityId == null; + } + + public boolean isDatatableResource() { + return this.href.startsWith("/datatables/"); + } + + public boolean isDeleteOneToOne() { + /* also covers case of deleting all of a one to many */ + return isDatatableResource() && isDeleteOperation() && this.subentityId == null; + } + + public boolean isDeleteMultiple() { + return isDatatableResource() && isDeleteOperation() && this.subentityId != null; + } + + public boolean isUpdateOneToOne() { + return isDatatableResource() && isUpdateOperation() && this.subentityId == null; + } + + public boolean isUpdateMultiple() { + return isDatatableResource() && isUpdateOperation() && this.subentityId != null; + } + + public boolean isRegisterDatatable() { + return this.actionName.equalsIgnoreCase("REGISTER") && this.href.startsWith("/datatables/") && this.entityId == null; + } + + public boolean isNoteResource() { + boolean isnoteResource = false; + if (this.entityName.equalsIgnoreCase("CLIENTNOTE") || this.entityName.equalsIgnoreCase("LOANNOTE") + || this.entityName.equalsIgnoreCase("LOANTRANSACTIONNOTE") || this.entityName.equalsIgnoreCase("SAVINGNOTE") + || this.entityName.equalsIgnoreCase("GROUPNOTE")) { + isnoteResource = true; + } + return isnoteResource; + } + + public boolean isUpdateOfOwnUserDetails(final Long loggedInUserId) { + return isUserResource() && isUpdate() && loggedInUserId.equals(this.entityId); + } + + public boolean isUpdate() { + // permissions resource has special update which involves no resource. + return isPermissionResource() && isUpdateOperation() || isCurrencyResource() && isUpdateOperation() || isCacheResource() + && isUpdateOperation() || isWorkingDaysResource() && isUpdateOperation() || isPasswordPreferencesResource() + && isUpdateOperation() || isUpdateOperation() && this.entityId != null; + } + + 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"); + } + + public boolean isDelete() { + return isDeleteOperation() && this.entityId != null; + } + + public boolean isDeleteOperation() { + return this.actionName.equalsIgnoreCase("DELETE"); + } + + public boolean isSurveyResource() { + return this.href.startsWith("/survey/"); + } + + public boolean isRegisterSurvey() { + return this.actionName.equalsIgnoreCase("REGISTER"); + } + + public boolean isFullFilSurvey() { + return this.actionName.equalsIgnoreCase("CREATE"); + } + + public boolean isWorkingDaysResource() { + return this.entityName.equalsIgnoreCase("WORKINGDAYS"); + } + + public boolean isPasswordPreferencesResource() { + return this.entityName.equalsIgnoreCase(PasswordPreferencesApiConstants.ENTITY_NAME); + } public Long commandId() { return this.commandId; @@ -133,51 +251,11 @@ public class CommandWrapper { public String taskPermissionName() { return this.actionName + "_" + this.entityName; } - - public boolean isCreate() { - return this.actionName.equalsIgnoreCase("CREATE"); - } - - public boolean isCreateDatatable() { - return this.actionName.equalsIgnoreCase("CREATE") && this.href.startsWith("/datatables/") && this.entityId == null; - } - - public boolean isDeleteDatatable() { - return this.actionName.equalsIgnoreCase("DELETE") && this.href.startsWith("/datatables/") && this.entityId == null; - } - - public boolean isUpdateDatatable() { - return this.actionName.equalsIgnoreCase("UPDATE") && this.href.startsWith("/datatables/") && this.entityId == null; - } - + public String getTaskPermissionName() { return this.taskPermissionName; } - public String getHref() { - return this.href; - } - - public String getJson() { - return this.json; - } - - public String getTransactionId() { - return this.transactionId; - } - - public String getEntityName() { - return this.entityName; - } - - public Long getEntityId() { - return this.entityId; - } - - public Long getSubentityId() { - return this.subentityId; - } - public Long getGroupId() { return this.groupId; } @@ -198,837 +276,20 @@ public class CommandWrapper { return this.productId; } - public boolean isUpdate() { - // permissions resource has special update which involves no resource. - return isPermissionResource() && isUpdateOperation() || isCurrencyResource() && isUpdateOperation() || isCacheResource() - && isUpdateOperation() || isWorkingDaysResource() && isUpdateOperation() || isPasswordPreferencesResource() - && isUpdateOperation() || isUpdateOperation() && this.entityId != null; - } - - public boolean isUpdateOperation() { - return this.actionName.equalsIgnoreCase("UPDATE"); - } - - public boolean isDelete() { - return isDeleteOperation() && this.entityId != null; - } - - public boolean isDeleteOperation() { - return this.actionName.equalsIgnoreCase("DELETE"); - } - - public boolean isUpdateRolePermissions() { - return this.actionName.equalsIgnoreCase("PERMISSIONS") && this.entityId != null; - } - - public boolean isConfigurationResource() { - return this.entityName.equalsIgnoreCase("CONFIGURATION"); - } - public boolean isPermissionResource() { return this.entityName.equalsIgnoreCase("PERMISSION"); } - public boolean isRoleResource() { - return this.entityName.equalsIgnoreCase("ROLE"); - } - public boolean isUserResource() { return this.entityName.equalsIgnoreCase("USER"); } - - public boolean isHookResource() { - return this.entityName.equalsIgnoreCase("HOOK"); - } - + public boolean isCurrencyResource() { return this.entityName.equalsIgnoreCase("CURRENCY"); } - public boolean isSmsResource() { - return this.entityName.equalsIgnoreCase("SMS"); - } - - public boolean isSmsCampaignResource() { - return this.entityName.equals("SMS_CAMPAIGN"); - } - - public boolean isLoanRescheduleResource() { - return this.entityName.equals(RescheduleLoansApiConstants.ENTITY_NAME); - } - - public boolean isAccountNumberFormatResource() { - return this.entityName.equals(AccountNumberFormatConstants.ENTITY_NAME.toUpperCase()); - } - - public boolean isApprove() { - return this.actionName.equalsIgnoreCase("APPROVE"); - } - - public boolean isReject() { - return this.actionName.equalsIgnoreCase("REJECT"); - } - - public boolean isSmsCampaignActivation() { - return this.actionName.equalsIgnoreCase("ACTIVATE") && this.entityName.equalsIgnoreCase("SMS_CAMPAIGN"); - } - - public boolean isSmsCampaignClosure() { - return this.actionName.equalsIgnoreCase("CLOSE") && this.entityName.equalsIgnoreCase("SMS_CAMPAIGN"); - } - - public boolean isCodeResource() { - return this.entityName.equalsIgnoreCase("CODE"); - } - - public boolean isCodeValueResource() { - return this.entityName.equalsIgnoreCase("CODEVALUE"); - } - - public boolean isStaffResource() { - return this.entityName.equalsIgnoreCase("STAFF"); - } - - public boolean isGuarantorResource() { - return this.entityName.equalsIgnoreCase("GUARANTOR"); - } - - public boolean isGuaranteeRecovery() { - return this.actionName.equalsIgnoreCase("RECOVERGUARANTEES"); - } - - public boolean isGLAccountResource() { - return this.entityName.equalsIgnoreCase("GLACCOUNT"); - } - - public boolean isGLClosureResource() { - return this.entityName.equalsIgnoreCase("GLCLOSURE"); - } - - public boolean isJournalEntryResource() { - return this.entityName.equalsIgnoreCase("JOURNALENTRY"); - } - - public boolean isPeriodicAccrualResource() { - return this.entityName.equalsIgnoreCase("PERIODICACCRUALACCOUNTING"); - } - - public boolean isExecute() { - return this.actionName.equalsIgnoreCase("EXECUTE"); - } - - public boolean isRevertJournalEntry() { - return this.actionName.equalsIgnoreCase("REVERSE") && this.entityName.equalsIgnoreCase("JOURNALENTRY"); - } - - public boolean isUpdateRunningbalance() { - return this.actionName.equalsIgnoreCase("UPDATERUNNINGBALANCE") && this.entityName.equalsIgnoreCase("JOURNALENTRY"); - } - - public boolean isDefineOpeningalance() { - return this.actionName.equalsIgnoreCase("DEFINEOPENINGBALANCE") && this.entityName.equalsIgnoreCase("JOURNALENTRY"); - } - - public boolean isUpdateOpeningbalance() { - return this.actionName.equalsIgnoreCase("UPDATEOPENINGBALANCE") && this.entityName.equalsIgnoreCase("JOURNALENTRY"); - } - - public boolean isFundResource() { - return this.entityName.equalsIgnoreCase("FUND"); - } - - public boolean isOfficeResource() { - return this.entityName.equalsIgnoreCase("OFFICE"); - } - - public boolean isOfficeTransactionResource() { - return this.entityName.equalsIgnoreCase("OFFICETRANSACTION"); - } - - public boolean isChargeDefinitionResource() { - return this.entityName.equalsIgnoreCase("CHARGE"); - } - - public boolean isLoanProductResource() { - return this.entityName.equalsIgnoreCase("LOANPRODUCT"); - } - - public boolean isClientResource() { - return this.entityName.equalsIgnoreCase("CLIENT"); - } - - public boolean isClientActivation() { - return this.actionName.equalsIgnoreCase("ACTIVATE") && this.entityName.equalsIgnoreCase("CLIENT"); - } - - public boolean isGroupActivation() { - return this.actionName.equalsIgnoreCase("ACTIVATE") && this.entityName.equalsIgnoreCase("GROUP"); - } - - public boolean isGroupClose() { - return this.actionName.equalsIgnoreCase("CLOSE") && this.entityName.equalsIgnoreCase("GROUP"); - } - - public boolean isCenterActivation() { - return this.actionName.equalsIgnoreCase("ACTIVATE") && this.entityName.equalsIgnoreCase("CENTER"); - } - - public boolean isCenterClose() { - return this.actionName.equalsIgnoreCase("CLOSE") && this.entityName.equalsIgnoreCase("CENTER"); - } - - public boolean isCenterAssociateGroups() { - return this.actionName.equalsIgnoreCase("ASSOCIATEGROUPS") && this.entityName.equalsIgnoreCase("CENTER"); - } - - public boolean isCenterDisassociateGroups() { - return this.actionName.equalsIgnoreCase("DISASSOCIATEGROUPS") && this.entityName.equalsIgnoreCase("CENTER"); - } - - public boolean isClientIdentifierResource() { - return this.entityName.equals("CLIENTIDENTIFIER"); - } - - public boolean isClientNoteResource() { - return this.entityName.equals("CLIENTNOTE"); - } - - public boolean isLoanResource() { - return this.entityName.equalsIgnoreCase("LOAN"); - } - - public boolean isTellerResource() { - return this.entityName.equalsIgnoreCase("TELLER"); - } - - public boolean isAllocateCashier() { - return this.actionName.equalsIgnoreCase("ALLOCATECASHIER"); - } - - public boolean isUpdateCashierAllocation() { - return this.actionName.equalsIgnoreCase("UPDATECASHIERALLOCATION"); - } - - public boolean isDeleteCashierAllocation() { - return this.actionName.equalsIgnoreCase("DELETECASHIERALLOCATION"); - } - - public boolean isAllocateCashToCashier() { - return this.actionName.equalsIgnoreCase("ALLOCATECASHTOCASHIER"); - } - - public boolean isSettleCashFromCashier() { - return this.actionName.equalsIgnoreCase("SETTLECASHFROMCASHIER"); - } - - public boolean isLoanChargeResource() { - return this.entityName.equalsIgnoreCase("LOANCHARGE"); - } - - public boolean isLoanDisburseDetailResource() { - return this.entityName.equalsIgnoreCase("DISBURSEMENTDETAIL"); - } - - public boolean isCollateralResource() { - return this.entityName.equalsIgnoreCase("COLLATERAL"); - } - - public boolean isTemplateRessource() { - return this.entityName.equalsIgnoreCase("Template"); - } - - public boolean isApproveLoanApplication() { - return this.actionName.equalsIgnoreCase("APPROVE") && this.entityName.equalsIgnoreCase("LOAN"); - } - - public boolean isUndoApprovalOfLoanApplication() { - return this.actionName.equalsIgnoreCase("APPROVALUNDO") && this.entityName.equalsIgnoreCase("LOAN"); - } - - public boolean isApplicantWithdrawalFromLoanApplication() { - return this.actionName.equalsIgnoreCase("WITHDRAW") && this.entityName.equalsIgnoreCase("LOAN"); - } - - public boolean isRejectionOfLoanApplication() { - return this.actionName.equalsIgnoreCase("REJECT") && this.entityName.equalsIgnoreCase("LOAN"); - } - - public boolean isDisbursementOfLoan() { - return this.actionName.equalsIgnoreCase("DISBURSE") && this.entityName.equalsIgnoreCase("LOAN"); - } - - public boolean isDisbursementOfLoanToSavings() { - return this.actionName.equalsIgnoreCase("DISBURSETOSAVINGS") && this.entityName.equalsIgnoreCase("LOAN"); - } - - public boolean isUndoDisbursementOfLoan() { - return this.actionName.equalsIgnoreCase("DISBURSALUNDO") && this.entityName.equalsIgnoreCase("LOAN"); - } - - public boolean isLoanRepayment() { - return this.actionName.equalsIgnoreCase("REPAYMENT") && this.entityName.equalsIgnoreCase("LOAN"); - } - - public boolean isLoanRecoveryPayment() { - return this.actionName.equalsIgnoreCase("RECOVERYPAYMENT") && this.entityName.equalsIgnoreCase("LOAN"); - } - - public boolean isLoanRepaymentAdjustment() { - return this.actionName.equalsIgnoreCase("ADJUST") && this.entityName.equalsIgnoreCase("LOAN"); - } - - public boolean isWaiveInterestPortionOnLoan() { - return this.actionName.equalsIgnoreCase("WAIVEINTERESTPORTION") && this.entityName.equalsIgnoreCase("LOAN"); - } - - public boolean isLoanWriteOff() { - return this.actionName.equalsIgnoreCase("WRITEOFF") && this.entityName.equalsIgnoreCase("LOAN"); - } - - public boolean isUndoLoanWriteOff() { - return this.actionName.equalsIgnoreCase("UNDOWRITEOFF") && this.entityName.equalsIgnoreCase("LOAN"); - } - - public boolean isUpdateDisbursementDate() { - return this.actionName.equalsIgnoreCase("UPDATE") && this.entityName.equalsIgnoreCase("DISBURSEMENTDETAIL") - && this.entityId != null; - } - - public boolean addAndDeleteDisbursementDetails() { - return this.actionName.equalsIgnoreCase("UPDATE") && this.entityName.equalsIgnoreCase("DISBURSEMENTDETAIL") - && this.entityId == null; - } - - public boolean isStandingInstruction() { - return this.entityName.equalsIgnoreCase("STANDINGINSTRUCTION"); - } - - public boolean isCloseLoanAsObligationsMet() { - return this.actionName.equalsIgnoreCase("CLOSE") && this.entityName.equalsIgnoreCase("LOAN"); - } - - public boolean isCloseLoanAsRescheduled() { - return this.actionName.equalsIgnoreCase("CLOSEASRESCHEDULED") && this.entityName.equalsIgnoreCase("LOAN"); - } - - public boolean isAddLoanCharge() { - return this.actionName.equalsIgnoreCase("CREATE") && this.entityName.equalsIgnoreCase("LOANCHARGE"); - } - - public boolean isDeleteLoanCharge() { - return isDeleteOperation() && this.entityName.equalsIgnoreCase("LOANCHARGE"); - } - - public boolean isUpdateLoanCharge() { - return this.actionName.equalsIgnoreCase("UPDATE") && this.entityName.equalsIgnoreCase("LOANCHARGE"); - } - - public boolean isWaiveLoanCharge() { - return this.actionName.equalsIgnoreCase("WAIVE") && this.entityName.equalsIgnoreCase("LOANCHARGE"); - } - - public boolean isPayLoanCharge() { - return this.actionName.equalsIgnoreCase("PAY") && this.entityName.equalsIgnoreCase("LOANCHARGE"); - } - - public boolean isUpdateLoanOfficer() { - return this.actionName.equalsIgnoreCase("UPDATELOANOFFICER") && this.entityName.equalsIgnoreCase("LOAN"); - } - - public boolean isRemoveLoanOfficer() { - return this.actionName.equalsIgnoreCase("REMOVELOANOFFICER") && this.entityName.equalsIgnoreCase("LOAN"); - } - - public boolean isBulkUpdateLoanOfficer() { - return this.actionName.equalsIgnoreCase("BULKREASSIGN") && this.entityName.equalsIgnoreCase("LOAN"); - } - - public boolean isDatatableResource() { - return this.href.startsWith("/datatables/"); - } - - public boolean isDeleteOneToOne() { - /* also covers case of deleting all of a one to many */ - return isDatatableResource() && isDeleteOperation() && this.subentityId == null; - } - - public boolean isDeleteMultiple() { - return isDatatableResource() && isDeleteOperation() && this.subentityId != null; - } - - public boolean isUpdateOneToOne() { - return isDatatableResource() && isUpdateOperation() && this.subentityId == null; - } - - public boolean isUpdateMultiple() { - return isDatatableResource() && isUpdateOperation() && this.subentityId != null; - } - - public boolean isUnassignStaff() { - return this.actionName.equalsIgnoreCase("UNASSIGNSTAFF") && this.entityName.equalsIgnoreCase("GROUP"); - } - - public boolean isAssignStaff() { - return this.actionName.equalsIgnoreCase("ASSIGNSTAFF"); - } - public String commandName() { return this.actionName + "_" + this.entityName; } - - public boolean isUpdateOfOwnUserDetails(final Long loggedInUserId) { - return isUserResource() && isUpdate() && loggedInUserId.equals(this.entityId); - } - - public boolean isSavingsProductResource() { - return this.entityName.equalsIgnoreCase("SAVINGSPRODUCT"); - } - - public boolean isSavingsAccountResource() { - return this.entityName.equalsIgnoreCase("SAVINGSACCOUNT"); - } - - public boolean isRejectionOfSavingsAccountApplication() { - return this.actionName.equalsIgnoreCase("REJECT") && this.entityName.equalsIgnoreCase("SAVINGSACCOUNT"); - } - - public boolean isWithdrawFromSavingsAccountApplicationByApplicant() { - return this.actionName.equalsIgnoreCase("WITHDRAW") && this.entityName.equalsIgnoreCase("SAVINGSACCOUNT"); - } - - public boolean isApprovalOfSavingsAccountApplication() { - return this.actionName.equalsIgnoreCase("APPROVE") && this.entityName.equalsIgnoreCase("SAVINGSACCOUNT"); - } - - public boolean isUndoApprovalOfSavingsAccountApplication() { - return this.actionName.equalsIgnoreCase("APPROVALUNDO") && this.entityName.equalsIgnoreCase("SAVINGSACCOUNT"); - } - - public boolean isSavingsAccountActivation() { - return this.actionName.equalsIgnoreCase("ACTIVATE") && this.entityName.equalsIgnoreCase("SAVINGSACCOUNT"); - } - - public boolean isSavingsAccountDeposit() { - return this.actionName.equalsIgnoreCase("DEPOSIT") && this.entityName.equalsIgnoreCase("SAVINGSACCOUNT"); - } - - public boolean isSavingsAccountClose() { - return this.actionName.equalsIgnoreCase("CLOSE") && this.entityName.equalsIgnoreCase("SAVINGSACCOUNT"); - } - - public boolean isSavingsAccountWithdrawal() { - return this.actionName.equalsIgnoreCase("WITHDRAWAL") && this.entityName.equalsIgnoreCase("SAVINGSACCOUNT"); - } - - public boolean isSavingsAccountInterestCalculation() { - return this.actionName.equalsIgnoreCase("CALCULATEINTEREST") && this.entityName.equalsIgnoreCase("SAVINGSACCOUNT"); - } - - public boolean isSavingsAccountInterestPosting() { - return this.actionName.equalsIgnoreCase("POSTINTEREST") && this.entityName.equalsIgnoreCase("SAVINGSACCOUNT"); - } - - public boolean isSavingsAccountApplyAnnualFee() { - return this.actionName.equalsIgnoreCase("APPLYANNUALFEE") && this.entityName.equalsIgnoreCase("SAVINGSACCOUNT"); - } - - public boolean isSavingsAccountUndoTransaction() { - return this.actionName.equalsIgnoreCase("UNDOTRANSACTION") && this.entityName.equalsIgnoreCase("SAVINGSACCOUNT"); - } - - public boolean isAdjustSavingsAccountTransaction() { - return this.actionName.equalsIgnoreCase("ADJUSTTRANSACTION") && this.entityName.equalsIgnoreCase("SAVINGSACCOUNT"); - } - - public boolean isUpdateSavingsOfficer() { - return this.actionName.equalsIgnoreCase("UPDATESAVINGSOFFICER") && this.entityName.equalsIgnoreCase("SAVINGSACCOUNT"); - } - - public boolean isRemoveSavingsOfficer() { - return this.actionName.equalsIgnoreCase("REMOVESAVINGSOFFICER") && this.entityName.equalsIgnoreCase("SAVINGSACCOUNT"); - } - - public boolean isSavingsAccountChargeResource() { - return this.entityName.equalsIgnoreCase("SAVINGSACCOUNTCHARGE"); - } - - public boolean isAddSavingsAccountCharge() { - return this.actionName.equalsIgnoreCase("CREATE") && this.entityName.equalsIgnoreCase("SAVINGSACCOUNTCHARGE"); - } - - public boolean isDeleteSavingsAccountCharge() { - return isDeleteOperation() && this.entityName.equalsIgnoreCase("SAVINGSACCOUNTCHARGE"); - } - - public boolean isUpdateSavingsAccountCharge() { - return this.actionName.equalsIgnoreCase("UPDATE") && this.entityName.equalsIgnoreCase("SAVINGSACCOUNTCHARGE"); - } - - public boolean isWaiveSavingsAccountCharge() { - return this.actionName.equalsIgnoreCase("WAIVE") && this.entityName.equalsIgnoreCase("SAVINGSACCOUNTCHARGE"); - } - - public boolean isPaySavingsAccountCharge() { - return this.actionName.equalsIgnoreCase("PAY") && this.entityName.equalsIgnoreCase("SAVINGSACCOUNTCHARGE"); - } - - public boolean isInterestRateChartResource() { - return this.entityName.equalsIgnoreCase("INTERESTRATECHART"); - } - - public boolean isInterestRateChartSlabResource() { - return this.entityName.equalsIgnoreCase("CHARTSLAB"); - } - - public boolean isCalendarResource() { - return this.entityName.equalsIgnoreCase("CALENDAR"); - } - - public boolean isNoteResource() { - boolean isnoteResource = false; - if (this.entityName.equalsIgnoreCase("CLIENTNOTE") || this.entityName.equalsIgnoreCase("LOANNOTE") - || this.entityName.equalsIgnoreCase("LOANTRANSACTIONNOTE") || this.entityName.equalsIgnoreCase("SAVINGNOTE") - || this.entityName.equalsIgnoreCase("GROUPNOTE")) { - isnoteResource = true; - } - return isnoteResource; - } - - public boolean isGroupResource() { - return this.entityName.equalsIgnoreCase("GROUP"); - } - - public boolean isSaveGroupCollectionSheet() { - return this.entityName.equalsIgnoreCase("GROUP") && this.actionName.equalsIgnoreCase("SAVECOLLECTIONSHEET"); - } - - public boolean isCollectionSheetResource() { - return this.entityName.equals("COLLECTIONSHEET"); - } - - public boolean isSaveIndividualCollectionSheet() { - return isCollectionSheetResource() && this.actionName.equalsIgnoreCase("SAVE"); - } - - public boolean isCenterResource() { - return this.entityName.equalsIgnoreCase("CENTER"); - } - - public boolean isSaveCenterCollectionSheet() { - return this.entityName.equalsIgnoreCase("CENTER") && this.actionName.equalsIgnoreCase("SAVECOLLECTIONSHEET"); - } - - public boolean isReportResource() { - return this.entityName.equalsIgnoreCase("REPORT"); - } - - public boolean isAssociateClients() { - return this.actionName.equalsIgnoreCase("ASSOCIATECLIENTS"); - } - - public boolean isDisassociateClients() { - return this.actionName.equalsIgnoreCase("DISASSOCIATECLIENTS"); - } - - public boolean isXBRLMappingResource() { - return this.entityName.equalsIgnoreCase("XBRLMAPPING"); - } - - public boolean isHolidayResource() { - return this.entityName.equalsIgnoreCase("HOLIDAY"); - } - - public boolean isHolidayActivation() { - return this.entityName.equalsIgnoreCase("HOLIDAY") && this.actionName.equalsIgnoreCase("ACTIVATE") && this.entityId != null; - } - - public boolean isAccountingRuleResource() { - return this.entityName.equalsIgnoreCase("ACCOUNTINGRULE"); - } - - public boolean isClientUnassignStaff() { - return this.actionName.equalsIgnoreCase("UNASSIGNSTAFF") && this.entityName.equalsIgnoreCase("CLIENT"); - } - - public boolean isAssignGroupRole() { - return this.entityName.equalsIgnoreCase("GROUP") && this.actionName.equalsIgnoreCase("ASSIGNROLE"); - } - - public boolean isUnAssignGroupRole() { - return this.entityName.equalsIgnoreCase("GROUP") && this.actionName.equalsIgnoreCase("UNASSIGNROLE"); - } - - public boolean isUpdateGroupRole() { - return this.entityName.equalsIgnoreCase("GROUP") && this.actionName.equalsIgnoreCase("UPDATEROLE"); - } - - public boolean isTransferClientsBetweenGroups() { - return this.entityName.equalsIgnoreCase("GROUP") && this.actionName.equalsIgnoreCase("TRANSFERCLIENTS"); - } - - public boolean isClientAssignStaff() { - return this.actionName.equalsIgnoreCase("ASSIGNSTAFF") && this.entityName.equalsIgnoreCase("CLIENT"); - } - - public boolean isClientClose() { - return this.actionName.equalsIgnoreCase("CLOSE") && this.entityName.equalsIgnoreCase("CLIENT"); - } - - public boolean isProposeClientTransfer() { - return this.actionName.equalsIgnoreCase("PROPOSETRANSFER") && this.entityName.equalsIgnoreCase("CLIENT"); - } - - public boolean isProposeAndAcceptClientTransfer() { - return this.actionName.equalsIgnoreCase("PROPOSEANDACCEPTTRANSFER") && this.entityName.equalsIgnoreCase("CLIENT"); - } - - public boolean isWithdrawClientTransfer() { - return this.actionName.equalsIgnoreCase("WITHDRAWTRANSFER") && this.entityName.equalsIgnoreCase("CLIENT"); - } - - public boolean isAcceptClientTransfer() { - return this.actionName.equalsIgnoreCase("ACCEPTTRANSFER") && this.entityName.equalsIgnoreCase("CLIENT"); - } - - public boolean isRejectClientTransfer() { - return this.actionName.equalsIgnoreCase("REJECTTRANSFER") && this.entityName.equalsIgnoreCase("CLIENT"); - } - - public boolean isUpdateClientSavingsAccount() { - return this.actionName.equalsIgnoreCase("UPDATESAVINGSACCOUNT") && this.entityName.equalsIgnoreCase("CLIENT"); - } - - public boolean isProductMixResource() { - return this.entityName.equalsIgnoreCase("PRODUCTMIX"); - } - - public boolean isSchedulerResource() { - return this.entityName.equalsIgnoreCase("SCHEDULER"); - } - - public boolean isAccountTransferResource() { - return this.entityName.equalsIgnoreCase("ACCOUNTTRANSFER"); - } - - public boolean isMeetingResource() { - return this.entityName.equalsIgnoreCase("MEETING"); - } - - public boolean isSaveOrUpdateAttendance() { - return this.actionName.equalsIgnoreCase("SAVEORUPDATEATTENDANCE"); - } - - public boolean isCacheResource() { - return this.entityName.equalsIgnoreCase("CACHE"); - } - - // Begin - Deposit product - public boolean isFixedDepositProductResource() { - return this.entityName.equalsIgnoreCase("FIXEDDEPOSITPRODUCT"); - } - - public boolean isRecurringDepositProductResource() { - return this.entityName.equalsIgnoreCase("RECURRINGDEPOSITPRODUCT"); - } - - // End - Deposit product - - // Begin - Deposit accounts - public boolean isDepositAccountResource() { - return isFixedDepositAccountResource() || isRecurringDepositAccountResource(); - } - - public boolean isFixedDepositAccountResource() { - return this.entityName.equalsIgnoreCase("FIXEDDEPOSITACCOUNT"); - } - - public boolean isRecurringDepositAccountResource() { - return this.entityName.equalsIgnoreCase("RECURRINGDEPOSITACCOUNT"); - } - - public boolean isFixedDepositAccountCreate() { - return isCreate() && isFixedDepositAccountResource(); - } - - public boolean isRecurringDepositAccountCreate() { - return isCreate() && isRecurringDepositAccountResource(); - } - - public boolean isFixedDepositAccountUpdate() { - return isUpdate() && isFixedDepositAccountResource(); - } - - public boolean isRecurringDepositAccountUpdate() { - return isUpdate() && isRecurringDepositAccountResource(); - } - - public boolean isFixedDepositAccountDelete() { - return isDelete() && isFixedDepositAccountResource(); - } - - public boolean isRecurringDepositAccountDelete() { - return isDelete() && isRecurringDepositAccountResource(); - } - - public boolean isRejectionOfFixedDepositAccountApplication() { - return this.actionName.equalsIgnoreCase("REJECT") && isFixedDepositAccountResource(); - } - - public boolean isRejectionOfRecurringDepositAccountApplication() { - return this.actionName.equalsIgnoreCase("REJECT") && isRecurringDepositAccountResource(); - } - - public boolean isWithdrawFixedDepositAccountApplicationByApplicant() { - return this.actionName.equalsIgnoreCase("WITHDRAW") && isFixedDepositAccountResource(); - } - - public boolean isWithdrawRecurringDepositAccountApplicationByApplicant() { - return this.actionName.equalsIgnoreCase("WITHDRAW") && isRecurringDepositAccountResource(); - } - - public boolean isApprovalOfFixedDepositAccountApplication() { - return this.actionName.equalsIgnoreCase("APPROVE") && isFixedDepositAccountResource(); - } - - public boolean isApprovalOfRecurringDepositAccountApplication() { - return this.actionName.equalsIgnoreCase("APPROVE") && isRecurringDepositAccountResource(); - } - - public boolean isUndoApprovalOfFixedDepositAccountApplication() { - return this.actionName.equalsIgnoreCase("APPROVALUNDO") && isFixedDepositAccountResource(); - } - - public boolean isUndoApprovalOfRecurringDepositAccountApplication() { - return this.actionName.equalsIgnoreCase("APPROVALUNDO") && isRecurringDepositAccountResource(); - } - - // Account transaction actions - - public boolean isDeposit() { - return this.actionName.equalsIgnoreCase("DEPOSIT"); - } - - public boolean isWithdrawal() { - return this.actionName.equalsIgnoreCase("WITHDRAWAL"); - } - - public boolean isWithdrawn() { - return this.actionName.equalsIgnoreCase("WITHDRAW"); - } - - public boolean isReactivated() { - return this.actionName.equalsIgnoreCase("REACTIVATE"); - } - - public boolean isActivation() { - return this.actionName.equalsIgnoreCase("ACTIVATE"); - } - - public boolean isInterestCalculation() { - return this.actionName.equalsIgnoreCase("CALCULATEINTEREST"); - } - - public boolean isInterestPosting() { - return this.actionName.equalsIgnoreCase("POSTINTEREST"); - } - - public boolean isUndoTransaction() { - return this.actionName.equalsIgnoreCase("UNDOTRANSACTION"); - } - - public boolean isAdjustTransaction() { - return this.actionName.equalsIgnoreCase("ADJUSTTRANSACTION"); - } - - public boolean isDepositAccountClose() { - return this.actionName.equalsIgnoreCase("CLOSE") && isDepositAccountResource(); - } - - public boolean isDepositAccountPrematureClose() { - return this.actionName.equalsIgnoreCase("PREMATURECLOSE") && isDepositAccountResource(); - } - - public boolean isDepositAmountUpdateForRecurringDepositAccount() { - return this.actionName.equalsIgnoreCase(DepositsApiConstants.UPDATE_DEPOSIT_AMOUNT.toUpperCase()) && isDepositAccountResource(); - } - - // End - Deposit accounts - - public boolean isFinancialActivityAccountMapping() { - return this.entityName.equalsIgnoreCase("FINANCIALACTIVITYACCOUNT"); - } - - public boolean isRegisterDatatable() { - return this.actionName.equalsIgnoreCase("REGISTER") && this.href.startsWith("/datatables/") && this.entityId == null; - } - - public boolean isLikelihoodResource() { - return this.entityName.equalsIgnoreCase("Likelihood"); - } - - public boolean isSurveyResource() { - - return this.href.startsWith("/survey/"); - - } - - public boolean isUpdateLikelihood() { - return this.actionName.equalsIgnoreCase("UPDATE"); - } - - public boolean isRegisterSurvey() { - return this.actionName.equalsIgnoreCase("REGISTER"); - } - - public boolean isFullFilSurvey() { - return this.actionName.equalsIgnoreCase("CREATE"); - } - - public boolean isInactivateSavingsAccountCharge() { - return this.actionName.equalsIgnoreCase("INACTIVATE") && this.entityName.equalsIgnoreCase("SAVINGSACCOUNTCHARGE"); - } - - public boolean isRefundByTransfer() { - return this.actionName.equalsIgnoreCase("REFUNDBYTRANSFER"); - } - - public boolean isLoanRefundByCash() { - return this.actionName.equalsIgnoreCase("REFUNDBYCASH") && this.entityName.equalsIgnoreCase("LOAN"); - } - - public boolean isUndoLoanRefund() { - return this.actionName.equalsIgnoreCase("UNDOREFUND") && this.entityName.equalsIgnoreCase("LOAN"); - } - - public boolean isDisable() { - return isDisableOperation() && this.entityId != null; - } - - public boolean isDisableOperation() { - return this.actionName.equalsIgnoreCase("DISABLE"); - } - - public boolean isEnable() { - return isEnableOperation() && this.entityId != null; - } - - public boolean isEnableOperation() { - return this.actionName.equalsIgnoreCase("ENABLE"); - } - - public boolean isEntityMappingResource() { - return this.entityName.equalsIgnoreCase("ENTITYMAPPING"); - } - - public boolean isWorkingDaysResource() { - return this.entityName.equalsIgnoreCase("WORKINGDAYS"); - } - - public boolean isPasswordPreferencesResource() { - return this.entityName.equalsIgnoreCase(PasswordPreferencesApiConstants.ENTITY_NAME); - } - - public boolean isPaymentTypeResource() { - return this.entityName.equalsIgnoreCase("PAYMENTTYPE"); - } + } \ No newline at end of file diff --git a/mifosng-provider/src/main/java/org/mifosplatform/commands/service/SynchronousCommandProcessingService.java b/mifosng-provider/src/main/java/org/mifosplatform/commands/service/SynchronousCommandProcessingService.java index 6072e0bd4..cf48825fb 100755 --- a/mifosng-provider/src/main/java/org/mifosplatform/commands/service/SynchronousCommandProcessingService.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/commands/service/SynchronousCommandProcessingService.java @@ -67,9 +67,6 @@ public class SynchronousCommandProcessingService implements CommandProcessingSer final NewCommandSourceHandler handler = findCommandHandler(wrapper); - // TODO remove line 64 and uncomment following statement once all handlers are refactored - // final NewCommandSourceHandler handler = this.commandHandlerProvider.getHandler(wrapper.entityName(), wrapper.actionName()); - final CommandProcessingResult result = handler.processCommand(command); final AppUser maker = this.context.authenticatedUser(wrapper); @@ -132,22 +129,10 @@ public class SynchronousCommandProcessingService implements CommandProcessingSer .withEntityId(commandSourceResult.getResourceId()).build(); } - // TODO remove this method once all handlers are refactored - @Deprecated private NewCommandSourceHandler findCommandHandler(final CommandWrapper wrapper) { NewCommandSourceHandler handler = null; - if (wrapper.isAccountTransferResource()) { - if (wrapper.isCreate()) { - handler = this.applicationContext.getBean("createAccountTransferCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isRefundByTransfer()) { - handler = this.applicationContext.getBean("refundByTransferCommandHandler", NewCommandSourceHandler.class); - } else { - throw new UnsupportedCommandException(wrapper.commandName()); - } - } else if (wrapper.isConfigurationResource()) { - handler = this.applicationContext.getBean("updateGlobalConfigurationCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isDatatableResource()) { + if (wrapper.isDatatableResource()) { if (wrapper.isCreateDatatable()) { handler = this.applicationContext.getBean("createDatatableCommandHandler", NewCommandSourceHandler.class); } else if (wrapper.isDeleteDatatable()) { @@ -179,723 +164,7 @@ public class SynchronousCommandProcessingService implements CommandProcessingSer } else { throw new UnsupportedCommandException(wrapper.commandName()); } - } else if (wrapper.isClientIdentifierResource()) { - if (wrapper.isCreate()) { - handler = this.applicationContext.getBean("createClientIdentifierCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isUpdate()) { - handler = this.applicationContext.getBean("updateClientIdentifierCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isDelete()) { - handler = this.applicationContext.getBean("deleteClientIdentifierCommandHandler", NewCommandSourceHandler.class); - } else { - throw new UnsupportedCommandException(wrapper.commandName()); - } - } else if (wrapper.isClientResource() && !wrapper.isClientNoteResource() && !wrapper.isClientIdentifierResource()) { - if (wrapper.isCreate()) { - handler = this.applicationContext.getBean("createClientCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isUpdate()) { - handler = this.applicationContext.getBean("updateClientCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isDelete()) { - handler = this.applicationContext.getBean("deleteClientCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isClientActivation()) { - handler = this.applicationContext.getBean("activateClientCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isClientUnassignStaff()) { - handler = this.applicationContext.getBean("unassignClientStaffCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isClientAssignStaff()) { - handler = this.applicationContext.getBean("assignClientStaffCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isClientClose()) { - handler = this.applicationContext.getBean("closeClientCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isProposeClientTransfer()) { - handler = this.applicationContext.getBean("proposeClientTransferCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isProposeAndAcceptClientTransfer()) { - handler = this.applicationContext.getBean("proposeAndAcceptClientTransferCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isWithdrawClientTransfer()) { - handler = this.applicationContext.getBean("withdrawClientTransferCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isAcceptClientTransfer()) { - handler = this.applicationContext.getBean("acceptClientTransferCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isRejectClientTransfer()) { - handler = this.applicationContext.getBean("rejectClientTransferCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isUpdateClientSavingsAccount()) { - handler = this.applicationContext.getBean("updateClientSavingsAccountCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isReject()) { - handler = this.applicationContext.getBean("rejectClientCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isWithdrawn()) { - handler = this.applicationContext.getBean("withdrawClientCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isReactivated()) { - handler = this.applicationContext.getBean("reActivateClientCommandHandler", NewCommandSourceHandler.class); - } else { - throw new UnsupportedCommandException(wrapper.commandName()); - } - // end of client - } else if (wrapper.isUpdateRolePermissions()) { - handler = this.applicationContext.getBean("updateRolePermissionsCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isPermissionResource()) { - handler = this.applicationContext.getBean("updateMakerCheckerPermissionsCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isRoleResource()) { - if (wrapper.isCreate()) { - handler = this.applicationContext.getBean("createRoleCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isUpdate()) { - handler = this.applicationContext.getBean("updateRoleCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isDelete()) { - handler = this.applicationContext.getBean("deleteRoleCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isDisable()) { - handler = this.applicationContext.getBean("disableRoleCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isEnable()) { - handler = this.applicationContext.getBean("enableRoleCommandHandler", NewCommandSourceHandler.class); - } else { - throw new UnsupportedCommandException(wrapper.commandName()); - } - } else if (wrapper.isUserResource()) { - if (wrapper.isCreate()) { - handler = this.applicationContext.getBean("createUserCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isUpdate()) { - handler = this.applicationContext.getBean("updateUserCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isDelete()) { - handler = this.applicationContext.getBean("deleteUserCommandHandler", NewCommandSourceHandler.class); - } else { - throw new UnsupportedCommandException(wrapper.commandName()); - } - } else if (wrapper.isHookResource()) { - if (wrapper.isCreate()) { - handler = this.applicationContext.getBean("createHookCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isUpdate()) { - handler = this.applicationContext.getBean("updateHookCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isDelete()) { - handler = this.applicationContext.getBean("deleteHookCommandHandler", NewCommandSourceHandler.class); - } else { - throw new UnsupportedCommandException(wrapper.commandName()); - } - } else if (wrapper.isStaffResource()) { - if (wrapper.isCreate()) { - handler = this.applicationContext.getBean("createStaffCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isUpdate()) { - handler = this.applicationContext.getBean("updateStaffCommandHandler", NewCommandSourceHandler.class); - } else { - throw new UnsupportedCommandException(wrapper.commandName()); - } - } else if (wrapper.isGuarantorResource()) { - if (wrapper.isCreate()) { - handler = this.applicationContext.getBean("createGuarantorCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isUpdate()) { - handler = this.applicationContext.getBean("updateGuarantorCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isDelete()) { - handler = this.applicationContext.getBean("deleteGuarantorCommandHandler", NewCommandSourceHandler.class); - } else { - throw new UnsupportedCommandException(wrapper.commandName()); - } - } else if (wrapper.isTellerResource()) { - if (wrapper.isCreate()) { - handler = this.applicationContext.getBean("createTellerCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isUpdate()) { - handler = this.applicationContext.getBean("updateTellerCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isDelete()) { - handler = this.applicationContext.getBean("deleteTellerCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isAllocateCashier()) { - handler = this.applicationContext.getBean("allocateCashierToTellerCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isUpdateCashierAllocation()) { - handler = this.applicationContext.getBean("updateCashierAllocationCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isDeleteCashierAllocation()) { - handler = this.applicationContext.getBean("deleteCashierAllocationCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isAllocateCashToCashier()) { - handler = this.applicationContext.getBean("allocateCashToCashierCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isSettleCashFromCashier()) { - handler = this.applicationContext.getBean("settleCashFromCashierCommandHandler", NewCommandSourceHandler.class); - } else { - throw new UnsupportedCommandException(wrapper.commandName()); - } - } else if (wrapper.isCollateralResource()) { - if (wrapper.isCreate()) { - handler = this.applicationContext.getBean("createCollateralCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isUpdate()) { - handler = this.applicationContext.getBean("updateCollateralCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isDelete()) { - handler = this.applicationContext.getBean("deleteCollateralCommandHandler", NewCommandSourceHandler.class); - } else { - throw new UnsupportedCommandException(wrapper.commandName()); - } - } else if (wrapper.isCodeResource()) { - if (wrapper.isCreate()) { - handler = this.applicationContext.getBean("createCodeCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isUpdate()) { - handler = this.applicationContext.getBean("updateCodeCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isDelete()) { - handler = this.applicationContext.getBean("deleteCodeCommandHandler", NewCommandSourceHandler.class); - } else { - throw new UnsupportedCommandException(wrapper.commandName()); - } - } else if (wrapper.isCodeValueResource()) { - if (wrapper.isCreate()) { - handler = this.applicationContext.getBean("createCodeValueCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isUpdate()) { - handler = this.applicationContext.getBean("updateCodeValueCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isDelete()) { - handler = this.applicationContext.getBean("deleteCodeValueCommandHandler", NewCommandSourceHandler.class); - } else { - throw new UnsupportedCommandException(wrapper.commandName()); - } - } else if (wrapper.isSmsResource()) { - if (wrapper.isCreate()) { - handler = this.applicationContext.getBean("createSmsCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isUpdate()) { - handler = this.applicationContext.getBean("updateSmsCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isDelete()) { - handler = this.applicationContext.getBean("deleteSmsCommandHandler", NewCommandSourceHandler.class); - } else { - throw new UnsupportedCommandException(wrapper.commandName()); - } - } else if (wrapper.isCurrencyResource()) { - handler = this.applicationContext.getBean("updateCurrencyCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isFundResource()) { - if (wrapper.isCreate()) { - handler = this.applicationContext.getBean("createFundCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isUpdate()) { - handler = this.applicationContext.getBean("updateFundCommandHandler", NewCommandSourceHandler.class); - } else { - throw new UnsupportedCommandException(wrapper.commandName()); - } - } else if (wrapper.isOfficeResource()) { - if (wrapper.isCreate()) { - handler = this.applicationContext.getBean("createOfficeCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isUpdate()) { - handler = this.applicationContext.getBean("updateOfficeCommandHandler", NewCommandSourceHandler.class); - } else { - throw new UnsupportedCommandException(wrapper.commandName()); - } - } else if (wrapper.isOfficeTransactionResource()) { - if (wrapper.isCreate()) { - handler = this.applicationContext.getBean("createOfficeTransactionCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isDelete()) { - handler = this.applicationContext.getBean("deleteOfficeTransactionCommandHandler", NewCommandSourceHandler.class); - } else { - throw new UnsupportedCommandException(wrapper.commandName()); - } - } else if (wrapper.isChargeDefinitionResource()) { - if (wrapper.isCreate()) { - handler = this.applicationContext.getBean("createChargeDefinitionCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isUpdate()) { - handler = this.applicationContext.getBean("updateChargeDefinitionCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isDelete()) { - handler = this.applicationContext.getBean("deleteChargeDefinitionCommandHandler", NewCommandSourceHandler.class); - } else { - throw new UnsupportedCommandException(wrapper.commandName()); - } - } else if (wrapper.isLoanProductResource()) { - if (wrapper.isCreate()) { - handler = this.applicationContext.getBean("createLoanProductCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isUpdate()) { - handler = this.applicationContext.getBean("updateLoanProductCommandHandler", NewCommandSourceHandler.class); - } else { - throw new UnsupportedCommandException(wrapper.commandName()); - } - } else if (wrapper.isLoanResource()) { - if (wrapper.isApproveLoanApplication()) { - handler = this.applicationContext.getBean("loanApplicationApprovalCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isUndoApprovalOfLoanApplication()) { - handler = this.applicationContext.getBean("loanApplicationApprovalUndoCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isApplicantWithdrawalFromLoanApplication()) { - handler = this.applicationContext.getBean("loanApplicationWithdrawnByApplicantCommandHandler", - NewCommandSourceHandler.class); - } else if (wrapper.isRejectionOfLoanApplication()) { - handler = this.applicationContext.getBean("loanApplicationRejectedCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isDisbursementOfLoan()) { - handler = this.applicationContext.getBean("disburseLoanCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isDisbursementOfLoanToSavings()) { - handler = this.applicationContext.getBean("disburseLoanToSavingsCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isUndoDisbursementOfLoan()) { - handler = this.applicationContext.getBean("undoDisbursalLoanCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isLoanRepayment()) { - handler = this.applicationContext.getBean("loanRepaymentCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isLoanRecoveryPayment()) { - handler = this.applicationContext.getBean("loanRecoveryPaymentCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isLoanRepaymentAdjustment()) { - handler = this.applicationContext.getBean("loanRepaymentAdjustmentCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isWaiveInterestPortionOnLoan()) { - handler = this.applicationContext.getBean("waiveInterestPortionOnLoanCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isLoanWriteOff()) { - handler = this.applicationContext.getBean("writeOffLoanCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isCloseLoanAsObligationsMet()) { - handler = this.applicationContext.getBean("closeLoanCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isCloseLoanAsRescheduled()) { - handler = this.applicationContext.getBean("closeLoanAsRescheduledCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isUpdateLoanOfficer()) { - handler = this.applicationContext.getBean("updateLoanOfficerCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isRemoveLoanOfficer()) { - handler = this.applicationContext.getBean("removeLoanOfficerCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isBulkUpdateLoanOfficer()) { - handler = this.applicationContext.getBean("bulkUpdateLoanOfficerCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isCreate()) { - handler = this.applicationContext.getBean("loanApplicationSubmittalCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isUpdate()) { - handler = this.applicationContext.getBean("loanApplicationModificationCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isDelete()) { - handler = this.applicationContext.getBean("loanApplicationDeletionCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isUndoLoanWriteOff()) { - handler = this.applicationContext.getBean("undoWriteOffLoanCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isGuaranteeRecovery()) { - handler = this.applicationContext.getBean("recoverFromGuarantorCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isLoanRefundByCash()) { - handler = this.applicationContext.getBean("loanRefundByCashCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isUndoLoanRefund()) { - handler = this.applicationContext.getBean("loanRefundAdjustmentCommandHandler", NewCommandSourceHandler.class); - } else { - throw new UnsupportedCommandException(wrapper.commandName()); - } - } else if (wrapper.isLoanChargeResource()) { - if (wrapper.isAddLoanCharge()) { - handler = this.applicationContext.getBean("addLoanChargeCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isDeleteLoanCharge()) { - handler = this.applicationContext.getBean("deleteLoanChargeCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isUpdateLoanCharge()) { - handler = this.applicationContext.getBean("updateLoanChargeCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isWaiveLoanCharge()) { - handler = this.applicationContext.getBean("waiveLoanChargeCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isPayLoanCharge()) { - handler = this.applicationContext.getBean("payLoanChargeCommandHandler", NewCommandSourceHandler.class); - } - } else if (wrapper.isLoanDisburseDetailResource()) { - if (wrapper.isUpdateDisbursementDate()) { - handler = this.applicationContext.getBean("updateLoanDisbuseDateCommandHandler", NewCommandSourceHandler.class); - } - if (wrapper.addAndDeleteDisbursementDetails()) { - handler = this.applicationContext.getBean("addAndDeleteLoanDisburseDetailsCommandHandler", NewCommandSourceHandler.class); - } - } else if (wrapper.isGLAccountResource()) { - if (wrapper.isCreate()) { - handler = this.applicationContext.getBean("createGLAccountCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isUpdate()) { - handler = this.applicationContext.getBean("updateGLAccountCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isDelete()) { - handler = this.applicationContext.getBean("deleteGLAccountCommandHandler", NewCommandSourceHandler.class); - } else { - throw new UnsupportedCommandException(wrapper.commandName()); - } - } else if (wrapper.isGLClosureResource()) { - if (wrapper.isCreate()) { - handler = this.applicationContext.getBean("createGLClosureCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isUpdate()) { - handler = this.applicationContext.getBean("updateGLClosureCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isDelete()) { - handler = this.applicationContext.getBean("deleteGLClosureCommandHandler", NewCommandSourceHandler.class); - } else { - throw new UnsupportedCommandException(wrapper.commandName()); - } - } else if (wrapper.isJournalEntryResource()) { - if (wrapper.isCreate()) { - handler = this.applicationContext.getBean("createJournalEntryCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isRevertJournalEntry()) { - handler = this.applicationContext.getBean("reverseJournalEntryCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isUpdateRunningbalance()) { - handler = this.applicationContext.getBean("updateRunningBalanceCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isDefineOpeningalance()) { - handler = this.applicationContext.getBean("defineOpeningBalanceCommandHandler", NewCommandSourceHandler.class); - } else { - throw new UnsupportedCommandException(wrapper.commandName()); - } - } else if (wrapper.isPeriodicAccrualResource()) { - if (wrapper.isExecute()) { - handler = this.applicationContext.getBean("executePeriodicAccrualCommandHandler", NewCommandSourceHandler.class); - } - } else if (wrapper.isSavingsProductResource()) { - if (wrapper.isCreate()) { - handler = this.applicationContext.getBean("createSavingsProductCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isUpdate()) { - handler = this.applicationContext.getBean("updateSavingsProductCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isDelete()) { - handler = this.applicationContext.getBean("deleteSavingsProductCommandHandler", NewCommandSourceHandler.class); - } else { - throw new UnsupportedCommandException(wrapper.commandName()); - } - } else if (wrapper.isFixedDepositProductResource()) { - if (wrapper.isCreate()) { - handler = this.applicationContext.getBean("createFixedDepositProductCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isUpdate()) { - handler = this.applicationContext.getBean("updateFixedDepositProductCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isDelete()) { - handler = this.applicationContext.getBean("deleteFixedDepositProductCommandHandler", NewCommandSourceHandler.class); - } else { - throw new UnsupportedCommandException(wrapper.commandName()); - } - } else if (wrapper.isRecurringDepositProductResource()) { - if (wrapper.isCreate()) { - handler = this.applicationContext.getBean("createRecurringDepositProductCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isUpdate()) { - handler = this.applicationContext.getBean("updateRecurringDepositProductCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isDelete()) { - handler = this.applicationContext.getBean("deleteRecurringDepositProductCommandHandler", NewCommandSourceHandler.class); - } else { - throw new UnsupportedCommandException(wrapper.commandName()); - } - } else if (wrapper.isSavingsAccountResource()) { - if (wrapper.isCreate()) { - handler = this.applicationContext - .getBean("savingsAccountApplicationSubmittalCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isUpdate()) { - handler = this.applicationContext.getBean("savingsAccountApplicationModificationCommandHandler", - NewCommandSourceHandler.class); - } else if (wrapper.isDelete()) { - handler = this.applicationContext.getBean("savingsAccountApplicationDeletionCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isRejectionOfSavingsAccountApplication()) { - handler = this.applicationContext.getBean("savingsAccountApplicationRejectedCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isWithdrawFromSavingsAccountApplicationByApplicant()) { - handler = this.applicationContext.getBean("savingsAccountApplicationWithdrawnByApplicantCommandHandler", - NewCommandSourceHandler.class); - } else if (wrapper.isApprovalOfSavingsAccountApplication()) { - handler = this.applicationContext.getBean("savingsAccountApplicationApprovalCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isUndoApprovalOfSavingsAccountApplication()) { - handler = this.applicationContext.getBean("savingsAccountApplicationApprovalUndoCommandHandler", - NewCommandSourceHandler.class); - } else if (wrapper.isSavingsAccountDeposit()) { - handler = this.applicationContext.getBean("depositSavingsAccountCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isSavingsAccountWithdrawal()) { - handler = this.applicationContext.getBean("withdrawSavingsAccountCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isSavingsAccountActivation()) { - handler = this.applicationContext.getBean("activateSavingsAccountCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isSavingsAccountInterestCalculation()) { - handler = this.applicationContext.getBean("calculateInterestSavingsAccountCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isSavingsAccountInterestPosting()) { - handler = this.applicationContext.getBean("postInterestSavingsAccountCommandHandler", NewCommandSourceHandler.class); - } /* - * else if (wrapper.isSavingsAccountApplyAnnualFee()) { handler = - * this.applicationContext.getBean( - * "applyAnnualFeeSavingsAccountCommandHandler", - * NewCommandSourceHandler.class); } - */else if (wrapper.isSavingsAccountUndoTransaction()) { - handler = this.applicationContext.getBean("undoTransactionSavingsAccountCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isAdjustSavingsAccountTransaction()) { - handler = this.applicationContext.getBean("savingsTransactionAdjustmentCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isSavingsAccountClose()) { - handler = this.applicationContext.getBean("closeSavingsAccountCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isUpdateSavingsOfficer()) { - handler = this.applicationContext.getBean("updateSavingsOfficerCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isRemoveSavingsOfficer()) { - handler = this.applicationContext.getBean("removeSavingsOfficerCommandHandler", NewCommandSourceHandler.class); - } else { - throw new UnsupportedCommandException(wrapper.commandName()); - } - } else if (wrapper.isSavingsAccountChargeResource()) { - if (wrapper.isAddSavingsAccountCharge()) { - handler = this.applicationContext.getBean("addSavingsAccountChargeCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isDeleteSavingsAccountCharge()) { - handler = this.applicationContext.getBean("deleteSavingsAccountChargeCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isUpdateSavingsAccountCharge()) { - handler = this.applicationContext.getBean("updateSavingsAccountChargeCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isWaiveSavingsAccountCharge()) { - handler = this.applicationContext.getBean("waiveSavingsAccountChargeCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isPaySavingsAccountCharge()) { - handler = this.applicationContext.getBean("paySavingsAccountChargeCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isInactivateSavingsAccountCharge()) { - handler = this.applicationContext.getBean("inactivateSavingsAccountChargeCommandHandler", NewCommandSourceHandler.class); - } else { - throw new UnsupportedCommandException(wrapper.commandName()); - } - } else if (wrapper.isFixedDepositAccountResource()) { - if (wrapper.isCreate()) { - handler = this.applicationContext.getBean("fixedDepositAccountApplicationSubmittalCommandHandler", - NewCommandSourceHandler.class); - } else if (wrapper.isUpdate()) { - handler = this.applicationContext.getBean("fixedDepositAccountApplicationModificationCommandHandler", - NewCommandSourceHandler.class); - } else if (wrapper.isDelete()) { - handler = this.applicationContext.getBean("fixedDepositAccountApplicationDeletionCommandHandler", - NewCommandSourceHandler.class); - } else if (wrapper.isRejectionOfFixedDepositAccountApplication()) { - handler = this.applicationContext.getBean("fixedDepositAccountApplicationRejectedCommandHandler", - NewCommandSourceHandler.class); - } else if (wrapper.isWithdrawFixedDepositAccountApplicationByApplicant()) { - handler = this.applicationContext.getBean("fixedDepositAccountApplicationWithdrawnByApplicantCommandHandler", - NewCommandSourceHandler.class); - } else if (wrapper.isApprovalOfFixedDepositAccountApplication()) { - handler = this.applicationContext.getBean("fixedDepositAccountApplicationApprovalCommandHandler", - NewCommandSourceHandler.class); - } else if (wrapper.isUndoApprovalOfFixedDepositAccountApplication()) { - handler = this.applicationContext.getBean("fixedDepositAccountApplicationApprovalUndoCommandHandler", - NewCommandSourceHandler.class); - } else if (wrapper.isDeposit()) { - handler = this.applicationContext.getBean("fixedDepositAccountDepositCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isWithdrawal()) { - handler = this.applicationContext.getBean("withdrawalFixedDepositAccountCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isActivation()) { - handler = this.applicationContext.getBean("activateFixedDepositAccountCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isInterestCalculation()) { - handler = this.applicationContext.getBean("calculateInterestFixedDepositAccountCommandHandler", - NewCommandSourceHandler.class); - } else if (wrapper.isInterestPosting()) { - handler = this.applicationContext.getBean("postInterestFixedDepositAccountCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isUndoTransaction()) { - handler = this.applicationContext - .getBean("undoTransactionFixedDepositAccountCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isAdjustTransaction()) { - handler = this.applicationContext.getBean("fixedDepositTransactionAdjustmentCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isDepositAccountClose()) { - handler = this.applicationContext.getBean("closeFixedDepositAccountCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isDepositAccountPrematureClose()) { - handler = this.applicationContext.getBean("prematureCloseFixedDepositAccountCommandHandler", NewCommandSourceHandler.class); - } else { - throw new UnsupportedCommandException(wrapper.commandName()); - } - } else if (wrapper.isRecurringDepositAccountResource()) { - if (wrapper.isCreate()) { - handler = this.applicationContext.getBean("recurringDepositAccountApplicationSubmittalCommandHandler", - NewCommandSourceHandler.class); - } else if (wrapper.isUpdate()) { - handler = this.applicationContext.getBean("recurringDepositAccountApplicationModificationCommandHandler", - NewCommandSourceHandler.class); - } else if (wrapper.isDelete()) { - handler = this.applicationContext.getBean("recurringDepositAccountApplicationDeletionCommandHandler", - NewCommandSourceHandler.class); - } else if (wrapper.isRejectionOfRecurringDepositAccountApplication()) { - handler = this.applicationContext.getBean("recurringDepositAccountApplicationRejectedCommandHandler", - NewCommandSourceHandler.class); - } else if (wrapper.isWithdrawRecurringDepositAccountApplicationByApplicant()) { - handler = this.applicationContext.getBean("recurringDepositAccountApplicationWithdrawnByApplicantCommandHandler", - NewCommandSourceHandler.class); - } else if (wrapper.isApprovalOfRecurringDepositAccountApplication()) { - handler = this.applicationContext.getBean("recurringDepositAccountApplicationApprovalCommandHandler", - NewCommandSourceHandler.class); - } else if (wrapper.isUndoApprovalOfRecurringDepositAccountApplication()) { - handler = this.applicationContext.getBean("recurringDepositAccountApplicationApprovalUndoCommandHandler", - NewCommandSourceHandler.class); - } else if (wrapper.isDepositAmountUpdateForRecurringDepositAccount()) { - handler = this.applicationContext.getBean("recurringDepositAccountUpdateDepositAmountCommandHandler", - NewCommandSourceHandler.class); - } else if (wrapper.isDeposit()) { - handler = this.applicationContext.getBean("recurringDepositAccountDepositCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isWithdrawal()) { - handler = this.applicationContext.getBean("withdrawalRecurringDepositAccountCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isActivation()) { - handler = this.applicationContext.getBean("activateRecurringDepositAccountCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isInterestCalculation()) { - handler = this.applicationContext.getBean("calculateInterestRecurringDepositAccountCommandHandler", - NewCommandSourceHandler.class); - } else if (wrapper.isInterestPosting()) { - handler = this.applicationContext.getBean("postInterestRecurringDepositAccountCommandHandler", - NewCommandSourceHandler.class); - } else if (wrapper.isUndoTransaction()) { - handler = this.applicationContext.getBean("undoTransactionRecurringDepositAccountCommandHandler", - NewCommandSourceHandler.class); - } else if (wrapper.isAdjustTransaction()) { - handler = this.applicationContext.getBean("recurringDepositTransactionAdjustmentCommandHandler", - NewCommandSourceHandler.class); - } else if (wrapper.isDepositAccountClose()) { - handler = this.applicationContext.getBean("closeRecurringDepositAccountCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isDepositAccountPrematureClose()) { - handler = this.applicationContext.getBean("prematureCloseRecurringDepositAccountCommandHandler", - NewCommandSourceHandler.class); - } else { - throw new UnsupportedCommandException(wrapper.commandName()); - } - } else if (wrapper.isInterestRateChartResource()) { - if (wrapper.isCreate()) { - handler = this.applicationContext.getBean("createInterestRateChartCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isUpdate()) { - handler = this.applicationContext.getBean("updateInterestRateChartCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isDelete()) { - handler = this.applicationContext.getBean("deleteInterestRateChartCommandHandler", NewCommandSourceHandler.class); - } else { - throw new UnsupportedCommandException(wrapper.commandName()); - } - } else if (wrapper.isInterestRateChartSlabResource()) { - if (wrapper.isCreate()) { - handler = this.applicationContext.getBean("createInterestRateChartSlabCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isUpdate()) { - handler = this.applicationContext.getBean("updateInterestRateChartSlabCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isDelete()) { - handler = this.applicationContext.getBean("deleteInterestRateChartSlabCommandHandler", NewCommandSourceHandler.class); - } else { - throw new UnsupportedCommandException(wrapper.commandName()); - } - } else if (wrapper.isCalendarResource()) { - if (wrapper.isCreate()) { - handler = this.applicationContext.getBean("createCalendarCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isUpdate()) { - handler = this.applicationContext.getBean("updateCalendarCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isDelete()) { - handler = this.applicationContext.getBean("deleteCalendarCommandHandler", NewCommandSourceHandler.class); - } else { - throw new UnsupportedCommandException(wrapper.commandName()); - } - } else if (wrapper.isGroupResource()) { - if (wrapper.isCreate()) { - handler = this.applicationContext.getBean("createGroupCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isUpdate()) { - handler = this.applicationContext.getBean("updateGroupCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isUnassignStaff()) { - handler = this.applicationContext.getBean("unassignGroupStaffCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isDelete()) { - handler = this.applicationContext.getBean("deleteGroupCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isGroupActivation()) { - handler = this.applicationContext.getBean("activateGroupCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isAssociateClients()) { - handler = this.applicationContext.getBean("associateClientsToGroupCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isDisassociateClients()) { - handler = this.applicationContext.getBean("disassociateClientsFromGroupCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isSaveGroupCollectionSheet()) { - handler = this.applicationContext.getBean("saveGroupCollectionSheetCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isAssignGroupRole()) { - handler = this.applicationContext.getBean("assignRoleCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isUnAssignGroupRole()) { - handler = this.applicationContext.getBean("unassignRoleCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isUpdateGroupRole()) { - handler = this.applicationContext.getBean("updateGroupRoleCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isAssignStaff()) { - handler = this.applicationContext.getBean("assignGroupStaffCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isTransferClientsBetweenGroups()) { - handler = this.applicationContext.getBean("transferClientsBetweenGroupsCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isGroupClose()) { - handler = this.applicationContext.getBean("closeGroupCommandHandler", NewCommandSourceHandler.class); - } else { - throw new UnsupportedCommandException(wrapper.commandName()); - } - } else if (wrapper.isCenterResource()) { - if (wrapper.isCreate()) { - handler = this.applicationContext.getBean("createCenterCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isUpdate()) { - handler = this.applicationContext.getBean("updateCenterCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isDelete()) { - handler = this.applicationContext.getBean("deleteCenterCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isCenterActivation()) { - handler = this.applicationContext.getBean("activateCenterCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isSaveCenterCollectionSheet()) { - handler = this.applicationContext.getBean("saveCenterCollectionSheetCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isCenterClose()) { - handler = this.applicationContext.getBean("closeCenterCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isCenterDisassociateGroups()) { - handler = this.applicationContext.getBean("disassociateGroupsFromCenterCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isCenterAssociateGroups()) { - handler = this.applicationContext.getBean("associateGroupsToCenterCommandHandler", NewCommandSourceHandler.class); - } else { - throw new UnsupportedCommandException(wrapper.commandName()); - } - } else if (wrapper.isCollectionSheetResource()) { - if (wrapper.isUpdate()) { - handler = this.applicationContext.getBean("updateCollectionSheetCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isSaveIndividualCollectionSheet()) { - handler = this.applicationContext.getBean("saveIndividualCollectionSheetCommandHandler", NewCommandSourceHandler.class); - } else { - throw new UnsupportedCommandException(wrapper.commandName()); - } - } else if (wrapper.isReportResource()) { - if (wrapper.isCreate()) { - handler = this.applicationContext.getBean("createReportCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isUpdate()) { - handler = this.applicationContext.getBean("updateReportCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isDelete()) { - handler = this.applicationContext.getBean("deleteReportCommandHandler", NewCommandSourceHandler.class); - } else { - throw new UnsupportedCommandException(wrapper.commandName()); - } - } else if (wrapper.isAccountingRuleResource()) { - if (wrapper.isCreate()) { - handler = this.applicationContext.getBean("createAccountingRuleCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isUpdate()) { - handler = this.applicationContext.getBean("updateAccountingRuleCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isDelete()) { - handler = this.applicationContext.getBean("deleteAccountingRuleCommandHandler", NewCommandSourceHandler.class); - } else { - throw new UnsupportedCommandException(wrapper.commandName()); - } - } else if (wrapper.isXBRLMappingResource()) { - if (wrapper.isUpdate()) { - handler = this.applicationContext.getBean("updateTaxonomyMappingCommandHandler", NewCommandSourceHandler.class); - } else { - throw new UnsupportedCommandException(wrapper.commandName()); - } - } else if (wrapper.isHolidayResource()) { - if (wrapper.isCreate()) { - handler = this.applicationContext.getBean("createHolidayCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isHolidayActivation()) { - handler = this.applicationContext.getBean("activateHolidayCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isUpdate()) { - handler = this.applicationContext.getBean("updateHolidayCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isDelete()) { - handler = this.applicationContext.getBean("deleteHolidayCommandHandler", NewCommandSourceHandler.class); - } else { - throw new UnsupportedCommandException(wrapper.commandName()); - } - } else if (wrapper.isProductMixResource()) { - if (wrapper.isCreate()) { - handler = this.applicationContext.getBean("createProductMixCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isUpdateOperation()) { - handler = this.applicationContext.getBean("updateProductMixCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isDeleteOperation()) { - handler = this.applicationContext.getBean("deleteProductMixCommandHandler", NewCommandSourceHandler.class); - } else { - throw new UnsupportedCommandException(wrapper.commandName()); - } - } else if (wrapper.isSchedulerResource()) { - if (wrapper.isUpdate()) { - handler = this.applicationContext.getBean("updateJobDetailCommandhandler", NewCommandSourceHandler.class); - } else { - throw new UnsupportedCommandException(wrapper.commandName()); - } - } else if (wrapper.isCacheResource()) { - if (wrapper.isUpdateOperation()) { - handler = this.applicationContext.getBean("updateCacheCommandHandler", NewCommandSourceHandler.class); - } else { - throw new UnsupportedCommandException(wrapper.commandName()); - } - } else if (wrapper.isMeetingResource()) { - if (wrapper.isCreate()) { - handler = this.applicationContext.getBean("createMeetingCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isUpdate()) { - handler = this.applicationContext.getBean("updateMeetingCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isDelete()) { - handler = this.applicationContext.getBean("deleteMeetingCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isSaveOrUpdateAttendance()) { - handler = this.applicationContext.getBean("updateMeetingAttendanceCommandHandler", NewCommandSourceHandler.class); - } else { - throw new UnsupportedCommandException(wrapper.commandName()); - } - } else if (wrapper.isTemplateRessource()) { - - if (wrapper.isCreate()) { - handler = this.applicationContext.getBean("createTemplateCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isUpdate()) { - handler = this.applicationContext.getBean("updateTemplateCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isDelete()) { - handler = this.applicationContext.getBean("deleteTemplateCommandHandler", NewCommandSourceHandler.class); - } else { - throw new UnsupportedCommandException(wrapper.commandName()); - } - - } else if (wrapper.isTemplateRessource()) { - if (wrapper.isCreate()) { - handler = this.applicationContext.getBean("createTemplateCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isUpdate()) { - handler = this.applicationContext.getBean("updateTemplateCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isDelete()) { - handler = this.applicationContext.getBean("deleteTemplateCommandHandler", NewCommandSourceHandler.class); - } else { - throw new UnsupportedCommandException(wrapper.commandName()); - } - - } else if (wrapper.isStandingInstruction()) { - if (wrapper.isCreate()) { - handler = this.applicationContext.getBean("createStandingInstructionCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isUpdate()) { - handler = this.applicationContext.getBean("updateStandingInstructionCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isDelete()) { - handler = this.applicationContext.getBean("deleteStandingInstructionCommandHandler", NewCommandSourceHandler.class); - } else { - throw new UnsupportedCommandException(wrapper.commandName()); - } - - } else if (wrapper.isFinancialActivityAccountMapping()) { - if (wrapper.isCreate()) { - handler = this.applicationContext.getBean("createFinancialActivityAccountHandler", NewCommandSourceHandler.class); - } else if (wrapper.isUpdate()) { - handler = this.applicationContext.getBean("updateFinancialActivityAccountCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isDelete()) { - handler = this.applicationContext.getBean("deleteFinancialActivityAccountCommandHandler", NewCommandSourceHandler.class); - } else { - throw new UnsupportedCommandException(wrapper.commandName()); - } - } else if (wrapper.isLikelihoodResource()) { - if (wrapper.isUpdateLikelihood()) { - handler = this.applicationContext.getBean("updateLikelihoodCommandHandler", NewCommandSourceHandler.class); - } else { - throw new UnsupportedCommandException(wrapper.commandName()); - } - } else if (wrapper.isSurveyResource()) { + } else if (wrapper.isSurveyResource()) { if (wrapper.isRegisterSurvey()) { handler = this.applicationContext.getBean("registerSurveyCommandHandler", NewCommandSourceHandler.class); } else if (wrapper.isFullFilSurvey()) { @@ -903,64 +172,10 @@ public class SynchronousCommandProcessingService implements CommandProcessingSer } else { throw new UnsupportedCommandException(wrapper.commandName()); } - } else if (wrapper.isLoanRescheduleResource()) { - if (wrapper.isCreate()) { - handler = this.applicationContext.getBean("createLoanRescheduleRequestCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isApprove()) { - handler = this.applicationContext.getBean("approveLoanRescheduleRequestCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isReject()) { - handler = this.applicationContext.getBean("rejectLoanRescheduleRequestCommandHandler", NewCommandSourceHandler.class); - } else { - throw new UnsupportedCommandException(wrapper.commandName()); - } - } else if (wrapper.isAccountNumberFormatResource()) { - if (wrapper.isCreate()) { - handler = this.applicationContext.getBean("createAccountNumberFormatCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isUpdate()) { - handler = this.applicationContext.getBean("updateAccountNumberFormatCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isDelete()) { - handler = this.applicationContext.getBean("deleteAccountNumberFormatCommandHandler", NewCommandSourceHandler.class); - } else { - throw new UnsupportedCommandException(wrapper.commandName()); - } - } else if (wrapper.isEntityMappingResource()) { - if (wrapper.isCreate()) { - handler = this.applicationContext.getBean("createEntityToEntityMappingCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isUpdate()) { - handler = this.applicationContext.getBean("updateEntityToEntityMappingCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isDelete()) { - handler = this.applicationContext.getBean("deleteEntityToEntityMappingCommandHandler", NewCommandSourceHandler.class); - } else { - throw new UnsupportedCommandException(wrapper.commandName()); - } - } else if (wrapper.isWorkingDaysResource()) { - if (wrapper.isUpdate()) { - handler = this.applicationContext.getBean("updateWorkingDaysCommandHandler", NewCommandSourceHandler.class); - } else { - throw new UnsupportedCommandException(wrapper.commandName()); - } - } else if (wrapper.isPasswordPreferencesResource()) { - if (wrapper.isUpdate()) { - handler = this.applicationContext.getBean("updatePasswordPreferencesCommandHandler", NewCommandSourceHandler.class); + } + else { - } else { - throw new UnsupportedCommandException(wrapper.commandName()); - } - - } else if (wrapper.isPaymentTypeResource()) { - if (wrapper.isCreate()) { - handler = this.applicationContext.getBean("createPaymentTypeCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isUpdate()) { - handler = this.applicationContext.getBean("updatePaymentTypeCommandHandler", NewCommandSourceHandler.class); - } else if (wrapper.isDelete()) { - handler = this.applicationContext.getBean("deletePaymentTypeCommandHandler", NewCommandSourceHandler.class); - } else { - throw new UnsupportedCommandException(wrapper.commandName()); - } - - } else { - - throw new UnsupportedCommandException(wrapper.commandName()); + handler = this.commandHandlerProvider.getHandler(wrapper.entityName(), wrapper.actionName()); } return handler; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/infrastructure/accountnumberformat/handler/CreateAccountNumberFormatCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/infrastructure/accountnumberformat/handler/CreateAccountNumberFormatCommandHandler.java index 25a1ec7ae..dfd199bc5 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/infrastructure/accountnumberformat/handler/CreateAccountNumberFormatCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/infrastructure/accountnumberformat/handler/CreateAccountNumberFormatCommandHandler.java @@ -7,6 +7,7 @@ package org.mifosplatform.infrastructure.accountnumberformat.handler; import javax.transaction.Transactional; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.accountnumberformat.service.AccountNumberFormatWritePlatformService; import org.mifosplatform.infrastructure.core.api.JsonCommand; @@ -15,6 +16,7 @@ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @Service +@CommandType(entity = "ACCOUNTNUMBERFORMAT", action = "CREATE") public class CreateAccountNumberFormatCommandHandler implements NewCommandSourceHandler { private final AccountNumberFormatWritePlatformService accountNumberFormatWritePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/infrastructure/accountnumberformat/handler/DeleteAccountNumberFormatCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/infrastructure/accountnumberformat/handler/DeleteAccountNumberFormatCommandHandler.java index 6704cd303..2f0b1bfcf 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/infrastructure/accountnumberformat/handler/DeleteAccountNumberFormatCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/infrastructure/accountnumberformat/handler/DeleteAccountNumberFormatCommandHandler.java @@ -7,6 +7,7 @@ package org.mifosplatform.infrastructure.accountnumberformat.handler; import javax.transaction.Transactional; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.accountnumberformat.service.AccountNumberFormatWritePlatformService; import org.mifosplatform.infrastructure.core.api.JsonCommand; @@ -15,6 +16,7 @@ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @Service +@CommandType(entity = "ACCOUNTNUMBERFORMAT", action = "DELETE") public class DeleteAccountNumberFormatCommandHandler implements NewCommandSourceHandler { private final AccountNumberFormatWritePlatformService accountNumberFormatWritePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/infrastructure/accountnumberformat/handler/UpdateAccountNumberFormatCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/infrastructure/accountnumberformat/handler/UpdateAccountNumberFormatCommandHandler.java index ea93c6106..a748e745f 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/infrastructure/accountnumberformat/handler/UpdateAccountNumberFormatCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/infrastructure/accountnumberformat/handler/UpdateAccountNumberFormatCommandHandler.java @@ -7,6 +7,7 @@ package org.mifosplatform.infrastructure.accountnumberformat.handler; import javax.transaction.Transactional; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.accountnumberformat.service.AccountNumberFormatWritePlatformService; import org.mifosplatform.infrastructure.core.api.JsonCommand; @@ -15,6 +16,7 @@ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @Service +@CommandType(entity = "ACCOUNTNUMBERFORMAT", action = "UPDATE") public class UpdateAccountNumberFormatCommandHandler implements NewCommandSourceHandler { private final AccountNumberFormatWritePlatformService accountNumberFormatWritePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/infrastructure/cache/command/UpdateCacheCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/infrastructure/cache/command/UpdateCacheCommandHandler.java index b862767ee..98d27590e 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/infrastructure/cache/command/UpdateCacheCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/infrastructure/cache/command/UpdateCacheCommandHandler.java @@ -11,6 +11,7 @@ import java.util.List; import java.util.Map; import org.apache.commons.lang.StringUtils; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.cache.CacheApiConstants; import org.mifosplatform.infrastructure.cache.domain.CacheType; @@ -29,6 +30,7 @@ import org.springframework.transaction.annotation.Transactional; import com.google.gson.reflect.TypeToken; @Service +@CommandType(entity = "CACHE", action = "UPDATE") public class UpdateCacheCommandHandler implements NewCommandSourceHandler { private final CacheWritePlatformService cacheService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/infrastructure/codes/handler/CreateCodeCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/infrastructure/codes/handler/CreateCodeCommandHandler.java index 36817f1c8..f87ef6bb9 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/infrastructure/codes/handler/CreateCodeCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/infrastructure/codes/handler/CreateCodeCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.infrastructure.codes.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.codes.service.CodeWritePlatformService; import org.mifosplatform.infrastructure.core.api.JsonCommand; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "CODE", action = "CREATE") public class CreateCodeCommandHandler implements NewCommandSourceHandler { private final CodeWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/infrastructure/codes/handler/CreateCodeValueCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/infrastructure/codes/handler/CreateCodeValueCommandHandler.java index bcd678553..ab3c861db 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/infrastructure/codes/handler/CreateCodeValueCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/infrastructure/codes/handler/CreateCodeValueCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.infrastructure.codes.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.codes.service.CodeValueWritePlatformService; import org.mifosplatform.infrastructure.core.api.JsonCommand; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "CODEVALUE", action = "CREATE") public class CreateCodeValueCommandHandler implements NewCommandSourceHandler { private final CodeValueWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/infrastructure/codes/handler/DeleteCodeCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/infrastructure/codes/handler/DeleteCodeCommandHandler.java index 28ee904eb..152557413 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/infrastructure/codes/handler/DeleteCodeCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/infrastructure/codes/handler/DeleteCodeCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.infrastructure.codes.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.codes.service.CodeWritePlatformService; import org.mifosplatform.infrastructure.core.api.JsonCommand; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "CODE", action = "DELETE") public class DeleteCodeCommandHandler implements NewCommandSourceHandler { private final CodeWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/infrastructure/codes/handler/DeleteCodeValueCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/infrastructure/codes/handler/DeleteCodeValueCommandHandler.java index d767898b3..971c29102 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/infrastructure/codes/handler/DeleteCodeValueCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/infrastructure/codes/handler/DeleteCodeValueCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.infrastructure.codes.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.codes.service.CodeValueWritePlatformService; import org.mifosplatform.infrastructure.core.api.JsonCommand; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "CODEVALUE", action = "DELETE") public class DeleteCodeValueCommandHandler implements NewCommandSourceHandler { private final CodeValueWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/infrastructure/codes/handler/UpdateCodeCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/infrastructure/codes/handler/UpdateCodeCommandHandler.java index 9b1a373ce..33ef4ad5f 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/infrastructure/codes/handler/UpdateCodeCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/infrastructure/codes/handler/UpdateCodeCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.infrastructure.codes.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.codes.service.CodeWritePlatformService; import org.mifosplatform.infrastructure.core.api.JsonCommand; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "CODE", action = "UPDATE") public class UpdateCodeCommandHandler implements NewCommandSourceHandler { private final CodeWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/infrastructure/codes/handler/UpdateCodeValueCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/infrastructure/codes/handler/UpdateCodeValueCommandHandler.java index 5f0c7dd96..2f408866a 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/infrastructure/codes/handler/UpdateCodeValueCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/infrastructure/codes/handler/UpdateCodeValueCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.infrastructure.codes.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.codes.service.CodeValueWritePlatformService; import org.mifosplatform.infrastructure.core.api.JsonCommand; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "CODEVALUE", action = "UPDATE") public class UpdateCodeValueCommandHandler implements NewCommandSourceHandler { private final CodeValueWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/infrastructure/configuration/handler/UpdateGlobalConfigurationCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/infrastructure/configuration/handler/UpdateGlobalConfigurationCommandHandler.java index e4ee9b034..bd70dfeb6 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/infrastructure/configuration/handler/UpdateGlobalConfigurationCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/infrastructure/configuration/handler/UpdateGlobalConfigurationCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.infrastructure.configuration.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.configuration.service.GlobalConfigurationWritePlatformService; import org.mifosplatform.infrastructure.core.api.JsonCommand; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "CONFIGURATION", action = "UPDATE") public class UpdateGlobalConfigurationCommandHandler implements NewCommandSourceHandler { private final GlobalConfigurationWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/infrastructure/dataqueries/handler/CreateReportCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/infrastructure/dataqueries/handler/CreateReportCommandHandler.java index 345062e56..e1ceca934 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/infrastructure/dataqueries/handler/CreateReportCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/infrastructure/dataqueries/handler/CreateReportCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.infrastructure.dataqueries.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "REPORT", action = "CREATE") public class CreateReportCommandHandler implements NewCommandSourceHandler { private final ReportWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/infrastructure/dataqueries/handler/DeleteReportCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/infrastructure/dataqueries/handler/DeleteReportCommandHandler.java index c7b78b788..37328ccef 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/infrastructure/dataqueries/handler/DeleteReportCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/infrastructure/dataqueries/handler/DeleteReportCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.infrastructure.dataqueries.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -15,6 +16,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "REPORT", action = "DELETE") public class DeleteReportCommandHandler implements NewCommandSourceHandler { private final ReportWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/infrastructure/dataqueries/handler/UpdateReportCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/infrastructure/dataqueries/handler/UpdateReportCommandHandler.java index a42685f86..6a1d1e54b 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/infrastructure/dataqueries/handler/UpdateReportCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/infrastructure/dataqueries/handler/UpdateReportCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.infrastructure.dataqueries.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "REPORT", action = "UPDATE") public class UpdateReportCommandHandler implements NewCommandSourceHandler { private final ReportWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/infrastructure/entityaccess/handler/CreateEntityToEntityMappingCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/infrastructure/entityaccess/handler/CreateEntityToEntityMappingCommandHandler.java index 0de0919a3..b857e8b73 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/infrastructure/entityaccess/handler/CreateEntityToEntityMappingCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/infrastructure/entityaccess/handler/CreateEntityToEntityMappingCommandHandler.java @@ -7,6 +7,7 @@ package org.mifosplatform.infrastructure.entityaccess.handler; import javax.transaction.Transactional; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -15,6 +16,7 @@ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @Service +@CommandType(entity = "ENTITYMAPPING", action = "CREATE") public class CreateEntityToEntityMappingCommandHandler implements NewCommandSourceHandler { private final MifosEntityAccessWriteService mifosEntityAccessWriteService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/infrastructure/entityaccess/handler/DeleteEntityToEntityMappingCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/infrastructure/entityaccess/handler/DeleteEntityToEntityMappingCommandHandler.java index 6afdb834d..b232edae3 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/infrastructure/entityaccess/handler/DeleteEntityToEntityMappingCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/infrastructure/entityaccess/handler/DeleteEntityToEntityMappingCommandHandler.java @@ -7,6 +7,7 @@ package org.mifosplatform.infrastructure.entityaccess.handler; import javax.transaction.Transactional; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -15,6 +16,7 @@ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @Service +@CommandType(entity = "ENTITYMAPPING", action = "DELETE") public class DeleteEntityToEntityMappingCommandHandler implements NewCommandSourceHandler { private final MifosEntityAccessWriteService mifosEntityAccessWriteService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/infrastructure/entityaccess/handler/UpdateEntityToEntityMappingCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/infrastructure/entityaccess/handler/UpdateEntityToEntityMappingCommandHandler.java index c6ce06579..0a3fe651f 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/infrastructure/entityaccess/handler/UpdateEntityToEntityMappingCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/infrastructure/entityaccess/handler/UpdateEntityToEntityMappingCommandHandler.java @@ -7,6 +7,7 @@ package org.mifosplatform.infrastructure.entityaccess.handler; import javax.transaction.Transactional; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -15,6 +16,7 @@ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @Service +@CommandType(entity = "ENTITYMAPPING", action = "UPDATE") public class UpdateEntityToEntityMappingCommandHandler implements NewCommandSourceHandler { private final MifosEntityAccessWriteService mifosEntityAccessWriteService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/infrastructure/hooks/handler/CreateHookCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/infrastructure/hooks/handler/CreateHookCommandHandler.java index a9519a6cd..f1d1f2f5d 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/infrastructure/hooks/handler/CreateHookCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/infrastructure/hooks/handler/CreateHookCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.infrastructure.hooks.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "HOOK", action = "CREATE") public class CreateHookCommandHandler implements NewCommandSourceHandler { private final HookWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/infrastructure/hooks/handler/DeleteHookCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/infrastructure/hooks/handler/DeleteHookCommandHandler.java index f7be20643..3bfbea110 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/infrastructure/hooks/handler/DeleteHookCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/infrastructure/hooks/handler/DeleteHookCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.infrastructure.hooks.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "HOOK", action = "DELETE") public class DeleteHookCommandHandler implements NewCommandSourceHandler { private final HookWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/infrastructure/hooks/handler/UpdateHookCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/infrastructure/hooks/handler/UpdateHookCommandHandler.java index 131edbefa..81d74a3b2 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/infrastructure/hooks/handler/UpdateHookCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/infrastructure/hooks/handler/UpdateHookCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.infrastructure.hooks.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "HOOK", action = "UPDATE") public class UpdateHookCommandHandler implements NewCommandSourceHandler { private final HookWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/infrastructure/jobs/handler/UpdateJobDetailCommandhandler.java b/mifosng-provider/src/main/java/org/mifosplatform/infrastructure/jobs/handler/UpdateJobDetailCommandhandler.java index e611f14cd..3f67797fe 100755 --- a/mifosng-provider/src/main/java/org/mifosplatform/infrastructure/jobs/handler/UpdateJobDetailCommandhandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/infrastructure/jobs/handler/UpdateJobDetailCommandhandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.infrastructure.jobs.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -13,6 +14,7 @@ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @Service +@CommandType(entity = "SCHEDULER", action = "UPDATE") public class UpdateJobDetailCommandhandler implements NewCommandSourceHandler { private final SchedularWritePlatformService schedularWritePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/infrastructure/sms/handler/CreateSmsCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/infrastructure/sms/handler/CreateSmsCommandHandler.java index 3987752ad..0cc007c8e 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/infrastructure/sms/handler/CreateSmsCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/infrastructure/sms/handler/CreateSmsCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.infrastructure.sms.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "SMS", action = "CREATE") public class CreateSmsCommandHandler implements NewCommandSourceHandler { private final SmsWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/infrastructure/sms/handler/DeleteSmsCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/infrastructure/sms/handler/DeleteSmsCommandHandler.java index cad18ebc8..4dbaeaf37 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/infrastructure/sms/handler/DeleteSmsCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/infrastructure/sms/handler/DeleteSmsCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.infrastructure.sms.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "SMS", action = "DELETE") public class DeleteSmsCommandHandler implements NewCommandSourceHandler { private final SmsWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/infrastructure/sms/handler/UpdateSmsCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/infrastructure/sms/handler/UpdateSmsCommandHandler.java index 6ca829b8f..978700d0a 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/infrastructure/sms/handler/UpdateSmsCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/infrastructure/sms/handler/UpdateSmsCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.infrastructure.sms.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "SMS", action = "UPDATE") public class UpdateSmsCommandHandler implements NewCommandSourceHandler { private final SmsWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/infrastructure/survey/handler/UpdateLikelihoodCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/infrastructure/survey/handler/UpdateLikelihoodCommandHandler.java index b0f9717dc..307d33a57 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/infrastructure/survey/handler/UpdateLikelihoodCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/infrastructure/survey/handler/UpdateLikelihoodCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.infrastructure.survey.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -18,6 +19,7 @@ import org.springframework.transaction.annotation.Transactional; */ @Service +@CommandType(entity = "LIKELIHOOD", action = "UPDATE") public class UpdateLikelihoodCommandHandler implements NewCommandSourceHandler { diff --git a/mifosng-provider/src/main/java/org/mifosplatform/mix/handler/UpdateTaxonomyMappingCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/mix/handler/UpdateTaxonomyMappingCommandHandler.java index 84f8c4598..31eb91a96 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/mix/handler/UpdateTaxonomyMappingCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/mix/handler/UpdateTaxonomyMappingCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.mix.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "XBRLMAPPING", action = "UPDATE") public class UpdateTaxonomyMappingCommandHandler implements NewCommandSourceHandler { private final MixTaxonomyMappingWritePlatformService writeTaxonomyService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/organisation/holiday/handler/ActivateHolidayCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/organisation/holiday/handler/ActivateHolidayCommandHandler.java index 26b28e0ac..72e755049 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/organisation/holiday/handler/ActivateHolidayCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/organisation/holiday/handler/ActivateHolidayCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.organisation.holiday.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "HOLIDAY", action = "ACTIVATE") public class ActivateHolidayCommandHandler implements NewCommandSourceHandler { private final HolidayWritePlatformService holidayWritePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/organisation/holiday/handler/CreateHolidayCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/organisation/holiday/handler/CreateHolidayCommandHandler.java index c1715c22a..8c691b804 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/organisation/holiday/handler/CreateHolidayCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/organisation/holiday/handler/CreateHolidayCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.organisation.holiday.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "HOLIDAY", action = "CREATE") public class CreateHolidayCommandHandler implements NewCommandSourceHandler { private final HolidayWritePlatformService holidayWritePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/organisation/holiday/handler/DeleteHolidayCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/organisation/holiday/handler/DeleteHolidayCommandHandler.java index 335653219..795489e68 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/organisation/holiday/handler/DeleteHolidayCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/organisation/holiday/handler/DeleteHolidayCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.organisation.holiday.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "HOLIDAY", action = "DELETE") public class DeleteHolidayCommandHandler implements NewCommandSourceHandler { private final HolidayWritePlatformService holidayWritePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/organisation/holiday/handler/UpdateHolidayCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/organisation/holiday/handler/UpdateHolidayCommandHandler.java index 33acc1dc2..c06df632a 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/organisation/holiday/handler/UpdateHolidayCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/organisation/holiday/handler/UpdateHolidayCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.organisation.holiday.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "HOLIDAY", action = "UPDATE") public class UpdateHolidayCommandHandler implements NewCommandSourceHandler { private final HolidayWritePlatformService holidayWritePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/organisation/monetary/handler/UpdateCurrencyCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/organisation/monetary/handler/UpdateCurrencyCommandHandler.java index 8b26aa23f..e9ee72967 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/organisation/monetary/handler/UpdateCurrencyCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/organisation/monetary/handler/UpdateCurrencyCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.organisation.monetary.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "CURRENCY", action = "UPDATE") public class UpdateCurrencyCommandHandler implements NewCommandSourceHandler { private final CurrencyWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/organisation/office/handler/CreateOfficeCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/organisation/office/handler/CreateOfficeCommandHandler.java index 7ddf267a4..9b977a538 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/organisation/office/handler/CreateOfficeCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/organisation/office/handler/CreateOfficeCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.organisation.office.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "OFFICE", action = "CREATE") public class CreateOfficeCommandHandler implements NewCommandSourceHandler { private final OfficeWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/organisation/office/handler/CreateOfficeTransactionCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/organisation/office/handler/CreateOfficeTransactionCommandHandler.java index 38b5a6bb0..91582b5eb 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/organisation/office/handler/CreateOfficeTransactionCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/organisation/office/handler/CreateOfficeTransactionCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.organisation.office.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "OFFICETRANSACTION", action = "CREATE") public class CreateOfficeTransactionCommandHandler implements NewCommandSourceHandler { private final OfficeWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/organisation/office/handler/DeleteOfficeTransactionCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/organisation/office/handler/DeleteOfficeTransactionCommandHandler.java index 07c62097b..89ee1f79c 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/organisation/office/handler/DeleteOfficeTransactionCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/organisation/office/handler/DeleteOfficeTransactionCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.organisation.office.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "OFFICETRANSACTION", action = "DELETE") public class DeleteOfficeTransactionCommandHandler implements NewCommandSourceHandler { private final OfficeWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/organisation/office/handler/UpdateOfficeCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/organisation/office/handler/UpdateOfficeCommandHandler.java index ca428e3b2..bf6a8f207 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/organisation/office/handler/UpdateOfficeCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/organisation/office/handler/UpdateOfficeCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.organisation.office.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "OFFICE", action = "UPDATE") public class UpdateOfficeCommandHandler implements NewCommandSourceHandler { private final OfficeWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/organisation/staff/handler/CreateStaffCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/organisation/staff/handler/CreateStaffCommandHandler.java index 807570f63..7ab3d8c3c 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/organisation/staff/handler/CreateStaffCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/organisation/staff/handler/CreateStaffCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.organisation.staff.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "STAFF", action = "CREATE") public class CreateStaffCommandHandler implements NewCommandSourceHandler { private final StaffWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/organisation/staff/handler/UpdateStaffCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/organisation/staff/handler/UpdateStaffCommandHandler.java index dffb61444..99753c108 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/organisation/staff/handler/UpdateStaffCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/organisation/staff/handler/UpdateStaffCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.organisation.staff.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "STAFF", action = "UPDATE") public class UpdateStaffCommandHandler implements NewCommandSourceHandler { private final StaffWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/organisation/teller/handler/AllocateCashToCashierCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/organisation/teller/handler/AllocateCashToCashierCommandHandler.java index f7bd42d85..2cec0cdff 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/organisation/teller/handler/AllocateCashToCashierCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/organisation/teller/handler/AllocateCashToCashierCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.organisation.teller.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -13,6 +14,7 @@ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @Service +@CommandType(entity = "TELLER", action = "ALLOCATECASHTOCASHIER") public class AllocateCashToCashierCommandHandler implements NewCommandSourceHandler { private final TellerWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/organisation/teller/handler/AllocateCashierToTellerCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/organisation/teller/handler/AllocateCashierToTellerCommandHandler.java index 6ee9e621c..e028155ea 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/organisation/teller/handler/AllocateCashierToTellerCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/organisation/teller/handler/AllocateCashierToTellerCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.organisation.teller.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -13,6 +14,7 @@ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @Service +@CommandType(entity = "TELLER", action = "ALLOCATECASHIER") public class AllocateCashierToTellerCommandHandler implements NewCommandSourceHandler { private final TellerWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/organisation/teller/handler/CreateTellerCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/organisation/teller/handler/CreateTellerCommandHandler.java index f1a3926e9..6b6c0027b 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/organisation/teller/handler/CreateTellerCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/organisation/teller/handler/CreateTellerCommandHandler.java @@ -6,6 +6,7 @@ package org.mifosplatform.organisation.teller.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -21,6 +22,7 @@ import org.springframework.stereotype.Service; * @since 2.0.0 */ @Service +@CommandType(entity = "TELLER", action = "CREATE") public class CreateTellerCommandHandler implements NewCommandSourceHandler { private final TellerWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/organisation/teller/handler/DeleteCashierAllocationCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/organisation/teller/handler/DeleteCashierAllocationCommandHandler.java index 5578c31fd..d29556a7f 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/organisation/teller/handler/DeleteCashierAllocationCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/organisation/teller/handler/DeleteCashierAllocationCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.organisation.teller.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -20,6 +21,7 @@ import org.springframework.stereotype.Service; * @since 2.0.0 */ @Service +@CommandType(entity = "TELLER", action = "DELETECASHIERALLOCATION") public class DeleteCashierAllocationCommandHandler implements NewCommandSourceHandler { private final TellerWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/organisation/teller/handler/DeleteTellerCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/organisation/teller/handler/DeleteTellerCommandHandler.java index 5ed3f08a8..98670f268 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/organisation/teller/handler/DeleteTellerCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/organisation/teller/handler/DeleteTellerCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.organisation.teller.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -20,6 +21,7 @@ import org.springframework.stereotype.Service; * @since 2.0.0 */ @Service +@CommandType(entity = "TELLER", action = "DELETE") public class DeleteTellerCommandHandler implements NewCommandSourceHandler { private final TellerWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/organisation/teller/handler/SettleCashFromCashierCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/organisation/teller/handler/SettleCashFromCashierCommandHandler.java index 0b55d0b3d..5c2d6bb6d 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/organisation/teller/handler/SettleCashFromCashierCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/organisation/teller/handler/SettleCashFromCashierCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.organisation.teller.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -13,6 +14,7 @@ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @Service +@CommandType(entity = "TELLER", action = "SETTLECASHFROMCASHIER") public class SettleCashFromCashierCommandHandler implements NewCommandSourceHandler { private final TellerWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/organisation/teller/handler/UpdateCashierAllocationCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/organisation/teller/handler/UpdateCashierAllocationCommandHandler.java index 6551b79f7..ed326a997 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/organisation/teller/handler/UpdateCashierAllocationCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/organisation/teller/handler/UpdateCashierAllocationCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.organisation.teller.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -20,6 +21,7 @@ import org.springframework.stereotype.Service; * @since 2.0.0 */ @Service +@CommandType(entity = "TELLER", action = "UPDATECASHIERALLOCATION") public class UpdateCashierAllocationCommandHandler implements NewCommandSourceHandler { private final TellerWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/organisation/teller/handler/UpdateTellerCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/organisation/teller/handler/UpdateTellerCommandHandler.java index efdc701bf..0a280e2c4 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/organisation/teller/handler/UpdateTellerCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/organisation/teller/handler/UpdateTellerCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.organisation.teller.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -20,6 +21,7 @@ import org.springframework.stereotype.Service; * @since 2.0.0 */ @Service +@CommandType(entity = "TELLER", action = "UPDATE") public class UpdateTellerCommandHandler implements NewCommandSourceHandler { private final TellerWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/organisation/workingdays/handler/UpdateWorkingDaysCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/organisation/workingdays/handler/UpdateWorkingDaysCommandHandler.java index 74aae1241..151526bf5 100755 --- a/mifosng-provider/src/main/java/org/mifosplatform/organisation/workingdays/handler/UpdateWorkingDaysCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/organisation/workingdays/handler/UpdateWorkingDaysCommandHandler.java @@ -6,6 +6,7 @@ package org.mifosplatform.organisation.workingdays.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -15,6 +16,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "WORKINGDAYS", action = "UPDATE") public class UpdateWorkingDaysCommandHandler implements NewCommandSourceHandler { private final WorkingDaysWritePlatformService workingDaysWritePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/account/handler/CreateAccountTransferCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/account/handler/CreateAccountTransferCommandHandler.java index 0845ebad3..25974ab2e 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/account/handler/CreateAccountTransferCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/account/handler/CreateAccountTransferCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.account.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "ACCOUNTTRANSFER", action = "CREATE") public class CreateAccountTransferCommandHandler implements NewCommandSourceHandler { private final AccountTransfersWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/account/handler/CreateStandingInstructionCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/account/handler/CreateStandingInstructionCommandHandler.java index 8a9b102bd..a64aeb706 100755 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/account/handler/CreateStandingInstructionCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/account/handler/CreateStandingInstructionCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.account.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -13,6 +14,7 @@ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @Service +@CommandType(entity = "STANDINGINSTRUCTION", action = "CREATE") public class CreateStandingInstructionCommandHandler implements NewCommandSourceHandler { private StandingInstructionWritePlatformService standingInstructionWritePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/account/handler/DeleteStandingInstructionCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/account/handler/DeleteStandingInstructionCommandHandler.java index 08f201ebe..e396aa637 100755 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/account/handler/DeleteStandingInstructionCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/account/handler/DeleteStandingInstructionCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.account.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -13,6 +14,7 @@ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @Service +@CommandType(entity = "STANDINGINSTRUCTION", action = "DELETE") public class DeleteStandingInstructionCommandHandler implements NewCommandSourceHandler { private StandingInstructionWritePlatformService standingInstructionWritePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/account/handler/RefundByTransferCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/account/handler/RefundByTransferCommandHandler.java index 720f57a4c..450cfe9aa 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/account/handler/RefundByTransferCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/account/handler/RefundByTransferCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.account.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "ACCOUNTTRANSFER", action = "REFUNDBYTRANSFER") public class RefundByTransferCommandHandler implements NewCommandSourceHandler { private final AccountTransfersWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/account/handler/UpdateStandingInstructionCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/account/handler/UpdateStandingInstructionCommandHandler.java index 81e305543..5ca770579 100755 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/account/handler/UpdateStandingInstructionCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/account/handler/UpdateStandingInstructionCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.account.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -13,6 +14,7 @@ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @Service +@CommandType(entity = "STANDINGINSTRUCTION", action = "UPDATE") public class UpdateStandingInstructionCommandHandler implements NewCommandSourceHandler { private StandingInstructionWritePlatformService standingInstructionWritePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/calendar/handler/CreateCalendarCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/calendar/handler/CreateCalendarCommandHandler.java index c7b82f32e..46c0b52a0 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/calendar/handler/CreateCalendarCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/calendar/handler/CreateCalendarCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.calendar.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "CALENDAR", action = "CREATE") public class CreateCalendarCommandHandler implements NewCommandSourceHandler { private final CalendarWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/calendar/handler/DeleteCalendarCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/calendar/handler/DeleteCalendarCommandHandler.java index 657d81453..deced9b35 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/calendar/handler/DeleteCalendarCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/calendar/handler/DeleteCalendarCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.calendar.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "CALENDAR", action = "DELETE") public class DeleteCalendarCommandHandler implements NewCommandSourceHandler { private final CalendarWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/calendar/handler/UpdateCalendarCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/calendar/handler/UpdateCalendarCommandHandler.java index 5a07fe1ab..478084bf3 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/calendar/handler/UpdateCalendarCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/calendar/handler/UpdateCalendarCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.calendar.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "CALENDAR", action = "UPDATE") public class UpdateCalendarCommandHandler implements NewCommandSourceHandler { private final CalendarWritePlatformService calendarWritePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/charge/handler/CreateChargeDefinitionCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/charge/handler/CreateChargeDefinitionCommandHandler.java index 1b6c1d6b5..ca83e7f7e 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/charge/handler/CreateChargeDefinitionCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/charge/handler/CreateChargeDefinitionCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.charge.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "CHARGE", action = "CREATE") public class CreateChargeDefinitionCommandHandler implements NewCommandSourceHandler { private final ChargeWritePlatformService clientWritePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/charge/handler/DeleteChargeDefinitionCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/charge/handler/DeleteChargeDefinitionCommandHandler.java index 9844ce6e8..3c67c16e4 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/charge/handler/DeleteChargeDefinitionCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/charge/handler/DeleteChargeDefinitionCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.charge.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "CHARGE", action = "DELETE") public class DeleteChargeDefinitionCommandHandler implements NewCommandSourceHandler { private final ChargeWritePlatformService clientWritePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/charge/handler/UpdateChargeDefinitionCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/charge/handler/UpdateChargeDefinitionCommandHandler.java index b59371fb3..b44279578 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/charge/handler/UpdateChargeDefinitionCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/charge/handler/UpdateChargeDefinitionCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.charge.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "CHARGE", action = "UPDATE") public class UpdateChargeDefinitionCommandHandler implements NewCommandSourceHandler { private final ChargeWritePlatformService clientWritePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/client/handler/ActivateClientCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/client/handler/ActivateClientCommandHandler.java index 06de0a45b..7b69f901f 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/client/handler/ActivateClientCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/client/handler/ActivateClientCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.client.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "CLIENT", action = "ACTIVATE") public class ActivateClientCommandHandler implements NewCommandSourceHandler { private final ClientWritePlatformService clientWritePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/client/handler/AssignClientStaffCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/client/handler/AssignClientStaffCommandHandler.java index de8510d4a..d1f956b38 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/client/handler/AssignClientStaffCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/client/handler/AssignClientStaffCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.client.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "CLIENT", action = "ASSIGNSTAFF") public class AssignClientStaffCommandHandler implements NewCommandSourceHandler { private final ClientWritePlatformService clientWritePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/client/handler/CloseClientCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/client/handler/CloseClientCommandHandler.java index 62a68fb24..1b3a2fa14 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/client/handler/CloseClientCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/client/handler/CloseClientCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.client.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "CLIENT", action = "CLOSE") public class CloseClientCommandHandler implements NewCommandSourceHandler { private final ClientWritePlatformService clientWritePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/client/handler/CreateClientCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/client/handler/CreateClientCommandHandler.java index caaf9d172..4c0c785b0 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/client/handler/CreateClientCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/client/handler/CreateClientCommandHandler.java @@ -31,4 +31,4 @@ public class CreateClientCommandHandler implements NewCommandSourceHandler { return this.clientWritePlatformService.createClient(command); } -} \ No newline at end of file +} diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/client/handler/CreateClientIdentifierCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/client/handler/CreateClientIdentifierCommandHandler.java index b43fdaf00..b1a295581 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/client/handler/CreateClientIdentifierCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/client/handler/CreateClientIdentifierCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.client.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "CLIENTIDENTIFIER", action = "CREATE") public class CreateClientIdentifierCommandHandler implements NewCommandSourceHandler { private final ClientIdentifierWritePlatformService clientIdentifierWritePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/client/handler/DeleteClientCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/client/handler/DeleteClientCommandHandler.java index a82e8ef2a..5f9f654da 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/client/handler/DeleteClientCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/client/handler/DeleteClientCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.client.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "CLIENT", action = "DELETE") public class DeleteClientCommandHandler implements NewCommandSourceHandler { private final ClientWritePlatformService clientWritePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/client/handler/DeleteClientIdentifierCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/client/handler/DeleteClientIdentifierCommandHandler.java index bbd406dcb..c5b10b6b0 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/client/handler/DeleteClientIdentifierCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/client/handler/DeleteClientIdentifierCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.client.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "CLIENTIDENTIFIER", action = "DELETE") public class DeleteClientIdentifierCommandHandler implements NewCommandSourceHandler { private final ClientIdentifierWritePlatformService clientIdentifierWritePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/client/handler/ReActivateClientCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/client/handler/ReActivateClientCommandHandler.java index 8c5077e46..1192e375e 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/client/handler/ReActivateClientCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/client/handler/ReActivateClientCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.client.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "CLIENT", action = "REACTIVATE") public class ReActivateClientCommandHandler implements NewCommandSourceHandler { private final ClientWritePlatformService clientWritePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/client/handler/RejectClientCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/client/handler/RejectClientCommandHandler.java index 8a0fd3e1f..38edc32ea 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/client/handler/RejectClientCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/client/handler/RejectClientCommandHandler.java @@ -4,6 +4,7 @@ * You can obtain one at http://mozilla.org/MPL/2.0/. */ package org.mifosplatform.portfolio.client.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -12,6 +13,7 @@ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "CLIENT", action = "REJECT") public class RejectClientCommandHandler implements NewCommandSourceHandler { private final ClientWritePlatformService clientWritePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/client/handler/UnassignClientStaffCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/client/handler/UnassignClientStaffCommandHandler.java index f4632f061..572f9aa99 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/client/handler/UnassignClientStaffCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/client/handler/UnassignClientStaffCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.client.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "CLIENT", action = "UNASSIGNSTAFF") public class UnassignClientStaffCommandHandler implements NewCommandSourceHandler { private final ClientWritePlatformService clientWritePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/client/handler/UpdateClientCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/client/handler/UpdateClientCommandHandler.java index 91577d5d3..17b6b98cd 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/client/handler/UpdateClientCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/client/handler/UpdateClientCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.client.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "CLIENT", action = "UPDATE") public class UpdateClientCommandHandler implements NewCommandSourceHandler { private final ClientWritePlatformService clientWritePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/client/handler/UpdateClientIdentifierCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/client/handler/UpdateClientIdentifierCommandHandler.java index 64f98f213..92f4e754d 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/client/handler/UpdateClientIdentifierCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/client/handler/UpdateClientIdentifierCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.client.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "CLIENTIDENTIFIER", action = "UPDATE") public class UpdateClientIdentifierCommandHandler implements NewCommandSourceHandler { private final ClientIdentifierWritePlatformService clientIdentifierWritePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/client/handler/UpdateClientSavingsAccountCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/client/handler/UpdateClientSavingsAccountCommandHandler.java index c6bb6f2c1..63b0cb846 100755 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/client/handler/UpdateClientSavingsAccountCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/client/handler/UpdateClientSavingsAccountCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.client.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "CLIENT", action = "UPDATESAVINGSACCOUNT") public class UpdateClientSavingsAccountCommandHandler implements NewCommandSourceHandler { private final ClientWritePlatformService clientWritePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/client/handler/WithdrawClientCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/client/handler/WithdrawClientCommandHandler.java index b60e0702c..dd2dcf7c3 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/client/handler/WithdrawClientCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/client/handler/WithdrawClientCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.client.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -15,6 +16,7 @@ import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "CLIENT", action = "WITHDRAW") public class WithdrawClientCommandHandler implements NewCommandSourceHandler { private final ClientWritePlatformService clientWritePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/collateral/handler/CreateCollateralCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/collateral/handler/CreateCollateralCommandHandler.java index 191cc738a..0251d0e57 100755 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/collateral/handler/CreateCollateralCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/collateral/handler/CreateCollateralCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.collateral.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "COLLATERAL", action = "CREATE") public class CreateCollateralCommandHandler implements NewCommandSourceHandler { private final CollateralWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/collateral/handler/DeleteCollateralCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/collateral/handler/DeleteCollateralCommandHandler.java index cc9ba6295..26e66851f 100755 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/collateral/handler/DeleteCollateralCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/collateral/handler/DeleteCollateralCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.collateral.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "COLLATERAL", action = "DELETE") public class DeleteCollateralCommandHandler implements NewCommandSourceHandler { private final CollateralWritePlatformService collateralWritePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/collateral/handler/UpdateCollateralCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/collateral/handler/UpdateCollateralCommandHandler.java index d96d66c2b..ce58f6c59 100755 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/collateral/handler/UpdateCollateralCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/collateral/handler/UpdateCollateralCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.collateral.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "COLLATERAL", action = "UPDATE") public class UpdateCollateralCommandHandler implements NewCommandSourceHandler { private final CollateralWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/collectionsheet/handler/SaveIndividualCollectionSheetCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/collectionsheet/handler/SaveIndividualCollectionSheetCommandHandler.java index ade762993..d640b777b 100755 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/collectionsheet/handler/SaveIndividualCollectionSheetCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/collectionsheet/handler/SaveIndividualCollectionSheetCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.collectionsheet.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "COLLECTIONSHEET", action = "SAVE") public class SaveIndividualCollectionSheetCommandHandler implements NewCommandSourceHandler { private final CollectionSheetWritePlatformService collectionSheetWritePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/collectionsheet/handler/UpdateCollectionSheetCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/collectionsheet/handler/UpdateCollectionSheetCommandHandler.java index 9486dbe42..1c9de75f1 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/collectionsheet/handler/UpdateCollectionSheetCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/collectionsheet/handler/UpdateCollectionSheetCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.collectionsheet.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "COLLECTIONSHEET", action = "UPDATE") public class UpdateCollectionSheetCommandHandler implements NewCommandSourceHandler { private final CollectionSheetWritePlatformService collectionSheetWritePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/fund/handler/CreateFundCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/fund/handler/CreateFundCommandHandler.java index 372319efe..289d166cb 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/fund/handler/CreateFundCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/fund/handler/CreateFundCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.fund.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "FUND", action = "CREATE") public class CreateFundCommandHandler implements NewCommandSourceHandler { private final FundWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/fund/handler/UpdateFundCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/fund/handler/UpdateFundCommandHandler.java index 8f555de75..b647f9889 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/fund/handler/UpdateFundCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/fund/handler/UpdateFundCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.fund.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "FUND", action = "UPDATE") public class UpdateFundCommandHandler implements NewCommandSourceHandler { private final FundWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/group/handler/ActivateCenterCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/group/handler/ActivateCenterCommandHandler.java index d47a48213..2f7133532 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/group/handler/ActivateCenterCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/group/handler/ActivateCenterCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.group.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "CENTER", action = "ACTIVATE") public class ActivateCenterCommandHandler implements NewCommandSourceHandler { private final GroupingTypesWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/group/handler/ActivateGroupCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/group/handler/ActivateGroupCommandHandler.java index 13e5d0579..a3f5ff480 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/group/handler/ActivateGroupCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/group/handler/ActivateGroupCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.group.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "GROUP", action = "ACTIVATE") public class ActivateGroupCommandHandler implements NewCommandSourceHandler { private final GroupingTypesWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/group/handler/AssignGroupStaffCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/group/handler/AssignGroupStaffCommandHandler.java index cfe26fe23..0c744802c 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/group/handler/AssignGroupStaffCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/group/handler/AssignGroupStaffCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.group.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "GROUP", action = "ASSIGNSTAFF") public class AssignGroupStaffCommandHandler implements NewCommandSourceHandler { private final GroupingTypesWritePlatformService groupWritePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/group/handler/AssignRoleCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/group/handler/AssignRoleCommandHandler.java index b81ea6ecc..dd4ca22cc 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/group/handler/AssignRoleCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/group/handler/AssignRoleCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.group.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "GROUP", action = "ASSIGNROLE") public class AssignRoleCommandHandler implements NewCommandSourceHandler { private final GroupRolesWritePlatformService groupRolesWritePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/group/handler/AssociateClientsToGroupCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/group/handler/AssociateClientsToGroupCommandHandler.java index 9542ed237..bb13e38db 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/group/handler/AssociateClientsToGroupCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/group/handler/AssociateClientsToGroupCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.group.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "GROUP", action = "ASSOCIATECLIENTS") public class AssociateClientsToGroupCommandHandler implements NewCommandSourceHandler { private final GroupingTypesWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/group/handler/AssociateGroupsToCenterCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/group/handler/AssociateGroupsToCenterCommandHandler.java index d7b0ab053..de4e7ddd8 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/group/handler/AssociateGroupsToCenterCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/group/handler/AssociateGroupsToCenterCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.group.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "CENTER", action = "ASSOCIATEGROUPS") public class AssociateGroupsToCenterCommandHandler implements NewCommandSourceHandler { private final GroupingTypesWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/group/handler/CloseCenterCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/group/handler/CloseCenterCommandHandler.java index 88fe3b284..92bb89436 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/group/handler/CloseCenterCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/group/handler/CloseCenterCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.group.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "CENTER", action = "CLOSE") public class CloseCenterCommandHandler implements NewCommandSourceHandler { private final GroupingTypesWritePlatformService groupingTypesWritePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/group/handler/CloseGroupCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/group/handler/CloseGroupCommandHandler.java index 6a9453ff5..49bf9bf78 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/group/handler/CloseGroupCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/group/handler/CloseGroupCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.group.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "GROUP", action = "CLOSE") public class CloseGroupCommandHandler implements NewCommandSourceHandler { private final GroupingTypesWritePlatformService groupingTypesWritePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/group/handler/CreateCenterCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/group/handler/CreateCenterCommandHandler.java index d2fd280d8..a5625f7de 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/group/handler/CreateCenterCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/group/handler/CreateCenterCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.group.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "CENTER", action = "CREATE") public class CreateCenterCommandHandler implements NewCommandSourceHandler { private final GroupingTypesWritePlatformService groupWritePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/group/handler/CreateGroupCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/group/handler/CreateGroupCommandHandler.java index d89e68d89..ebe6b719a 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/group/handler/CreateGroupCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/group/handler/CreateGroupCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.group.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "GROUP", action = "CREATE") public class CreateGroupCommandHandler implements NewCommandSourceHandler { private final GroupingTypesWritePlatformService groupWritePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/group/handler/DeleteCenterCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/group/handler/DeleteCenterCommandHandler.java index d34ad599f..ad4293eac 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/group/handler/DeleteCenterCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/group/handler/DeleteCenterCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.group.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "CENTER", action = "DELETE") public class DeleteCenterCommandHandler implements NewCommandSourceHandler { private final GroupingTypesWritePlatformService groupWritePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/group/handler/DeleteGroupCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/group/handler/DeleteGroupCommandHandler.java index 88b47db1a..05953a0f0 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/group/handler/DeleteGroupCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/group/handler/DeleteGroupCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.group.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "GROUP", action = "DELETE") public class DeleteGroupCommandHandler implements NewCommandSourceHandler { private final GroupingTypesWritePlatformService groupWritePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/group/handler/DisassociateClientsFromGroupCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/group/handler/DisassociateClientsFromGroupCommandHandler.java index f3e5bb480..a2fa34b57 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/group/handler/DisassociateClientsFromGroupCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/group/handler/DisassociateClientsFromGroupCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.group.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "GROUP", action = "DISASSOCIATECLIENTS") public class DisassociateClientsFromGroupCommandHandler implements NewCommandSourceHandler { private final GroupingTypesWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/group/handler/DisassociateGroupsFromCenterCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/group/handler/DisassociateGroupsFromCenterCommandHandler.java index ad04c76d0..0bfcf6930 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/group/handler/DisassociateGroupsFromCenterCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/group/handler/DisassociateGroupsFromCenterCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.group.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "CENTER", action = "DISASSOCIATEGROUPS") public class DisassociateGroupsFromCenterCommandHandler implements NewCommandSourceHandler { private final GroupingTypesWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/group/handler/SaveCenterCollectionSheetCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/group/handler/SaveCenterCollectionSheetCommandHandler.java index 6efd6d55a..c1f575eab 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/group/handler/SaveCenterCollectionSheetCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/group/handler/SaveCenterCollectionSheetCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.group.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "CENTER", action = "SAVECOLLECTIONSHEET") public class SaveCenterCollectionSheetCommandHandler implements NewCommandSourceHandler { private final CollectionSheetWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/group/handler/SaveGroupCollectionSheetCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/group/handler/SaveGroupCollectionSheetCommandHandler.java index 461bad292..46250fa0e 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/group/handler/SaveGroupCollectionSheetCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/group/handler/SaveGroupCollectionSheetCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.group.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "GROUP", action = "SAVECOLLECTIONSHEET") public class SaveGroupCollectionSheetCommandHandler implements NewCommandSourceHandler { private final CollectionSheetWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/group/handler/UnassignGroupStaffCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/group/handler/UnassignGroupStaffCommandHandler.java index b50657f2d..09c9660ce 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/group/handler/UnassignGroupStaffCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/group/handler/UnassignGroupStaffCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.group.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "GROUP", action = "UNASSIGNSTAFF") public class UnassignGroupStaffCommandHandler implements NewCommandSourceHandler { private final GroupingTypesWritePlatformService groupWritePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/group/handler/UnassignRoleCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/group/handler/UnassignRoleCommandHandler.java index e59d6af6e..e06d0f320 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/group/handler/UnassignRoleCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/group/handler/UnassignRoleCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.group.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "GROUP", action = "UNASSIGNROLE") public class UnassignRoleCommandHandler implements NewCommandSourceHandler { private final GroupRolesWritePlatformService groupRolesWritePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/group/handler/UpdateCenterCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/group/handler/UpdateCenterCommandHandler.java index b2bba7595..140ecab25 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/group/handler/UpdateCenterCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/group/handler/UpdateCenterCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.group.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "CENTER", action = "UPDATE") public class UpdateCenterCommandHandler implements NewCommandSourceHandler { private final GroupingTypesWritePlatformService groupWritePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/group/handler/UpdateGroupCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/group/handler/UpdateGroupCommandHandler.java index 041b07044..c9898d3c8 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/group/handler/UpdateGroupCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/group/handler/UpdateGroupCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.group.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "GROUP", action = "UPDATE") public class UpdateGroupCommandHandler implements NewCommandSourceHandler { private final GroupingTypesWritePlatformService groupWritePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/group/handler/UpdateGroupRoleCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/group/handler/UpdateGroupRoleCommandHandler.java index d39530f35..434f99b7f 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/group/handler/UpdateGroupRoleCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/group/handler/UpdateGroupRoleCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.group.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "GROUP", action = "UPDATEROLE") public class UpdateGroupRoleCommandHandler implements NewCommandSourceHandler { private final GroupRolesWritePlatformService groupRolesWritePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/interestratechart/handler/CreateInterestRateChartCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/interestratechart/handler/CreateInterestRateChartCommandHandler.java index 5b0c9ba2b..8896499b6 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/interestratechart/handler/CreateInterestRateChartCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/interestratechart/handler/CreateInterestRateChartCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.interestratechart.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -13,6 +14,7 @@ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @Service +@CommandType(entity = "INTERESTRATECHART", action = "CREATE") public class CreateInterestRateChartCommandHandler implements NewCommandSourceHandler { private final InterestRateChartWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/interestratechart/handler/CreateInterestRateChartSlabCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/interestratechart/handler/CreateInterestRateChartSlabCommandHandler.java index dfe743153..d7ac116c3 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/interestratechart/handler/CreateInterestRateChartSlabCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/interestratechart/handler/CreateInterestRateChartSlabCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.interestratechart.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -13,6 +14,7 @@ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @Service +@CommandType(entity = "CHARTSLAB", action = "CREATE") public class CreateInterestRateChartSlabCommandHandler implements NewCommandSourceHandler { private final InterestRateChartSlabWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/interestratechart/handler/DeleteInterestRateChartCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/interestratechart/handler/DeleteInterestRateChartCommandHandler.java index 50a75621c..c6d01f6ed 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/interestratechart/handler/DeleteInterestRateChartCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/interestratechart/handler/DeleteInterestRateChartCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.interestratechart.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -13,6 +14,7 @@ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @Service +@CommandType(entity = "INTERESTRATECHART", action = "DELETE") public class DeleteInterestRateChartCommandHandler implements NewCommandSourceHandler { private final InterestRateChartWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/interestratechart/handler/DeleteInterestRateChartSlabCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/interestratechart/handler/DeleteInterestRateChartSlabCommandHandler.java index 235ca6c76..09f6717dc 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/interestratechart/handler/DeleteInterestRateChartSlabCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/interestratechart/handler/DeleteInterestRateChartSlabCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.interestratechart.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -13,6 +14,7 @@ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @Service +@CommandType(entity = "CHARTSLAB", action = "DELETE") public class DeleteInterestRateChartSlabCommandHandler implements NewCommandSourceHandler { private final InterestRateChartSlabWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/interestratechart/handler/UpdateInterestRateChartCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/interestratechart/handler/UpdateInterestRateChartCommandHandler.java index f29205ea3..2ef265e4f 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/interestratechart/handler/UpdateInterestRateChartCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/interestratechart/handler/UpdateInterestRateChartCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.interestratechart.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -13,6 +14,7 @@ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @Service +@CommandType(entity = "INTERESTRATECHART", action = "UPDATE") public class UpdateInterestRateChartCommandHandler implements NewCommandSourceHandler { private final InterestRateChartWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/interestratechart/handler/UpdateInterestRateChartSlabCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/interestratechart/handler/UpdateInterestRateChartSlabCommandHandler.java index 52377c6b3..966bb495b 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/interestratechart/handler/UpdateInterestRateChartSlabCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/interestratechart/handler/UpdateInterestRateChartSlabCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.interestratechart.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -13,6 +14,7 @@ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @Service +@CommandType(entity = "CHARTSLAB", action = "UPDATE") public class UpdateInterestRateChartSlabCommandHandler implements NewCommandSourceHandler { private final InterestRateChartSlabWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/guarantor/handler/CreateGuarantorCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/guarantor/handler/CreateGuarantorCommandHandler.java index 2f0ec3d31..cfc092fce 100755 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/guarantor/handler/CreateGuarantorCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/guarantor/handler/CreateGuarantorCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.loanaccount.guarantor.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "GUARANTOR", action = "CREATE") public class CreateGuarantorCommandHandler implements NewCommandSourceHandler { private final GuarantorWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/guarantor/handler/DeleteGuarantorCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/guarantor/handler/DeleteGuarantorCommandHandler.java index 610112f92..db010ef02 100755 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/guarantor/handler/DeleteGuarantorCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/guarantor/handler/DeleteGuarantorCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.loanaccount.guarantor.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "GUARANTOR", action = "DELETE") public class DeleteGuarantorCommandHandler implements NewCommandSourceHandler { private final GuarantorWritePlatformService guarantorWritePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/guarantor/handler/UpdateGuarantorCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/guarantor/handler/UpdateGuarantorCommandHandler.java index 3eea6fb37..5c6429b85 100755 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/guarantor/handler/UpdateGuarantorCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/guarantor/handler/UpdateGuarantorCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.loanaccount.guarantor.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "GUARANTOR", action = "UPDATE") public class UpdateGuarantorCommandHandler implements NewCommandSourceHandler { private final GuarantorWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/handler/AddLoanChargeCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/handler/AddLoanChargeCommandHandler.java index b111135d0..2101a12df 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/handler/AddLoanChargeCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/handler/AddLoanChargeCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.loanaccount.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "LOANCHARGE", action = "CREATE") public class AddLoanChargeCommandHandler implements NewCommandSourceHandler { private final LoanWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/handler/BulkUpdateLoanOfficerCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/handler/BulkUpdateLoanOfficerCommandHandler.java index b360614fe..7631cbb8b 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/handler/BulkUpdateLoanOfficerCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/handler/BulkUpdateLoanOfficerCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.loanaccount.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "LOAN", action = "BULKREASSIGN") public class BulkUpdateLoanOfficerCommandHandler implements NewCommandSourceHandler { private final LoanWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/handler/CloseLoanAsRescheduledCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/handler/CloseLoanAsRescheduledCommandHandler.java index 5a3ac4186..0ded1168e 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/handler/CloseLoanAsRescheduledCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/handler/CloseLoanAsRescheduledCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.loanaccount.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "LOAN", action = "CLOSEASRESCHEDULED") public class CloseLoanAsRescheduledCommandHandler implements NewCommandSourceHandler { private final LoanWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/handler/CloseLoanCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/handler/CloseLoanCommandHandler.java index 2b2c66578..572036785 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/handler/CloseLoanCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/handler/CloseLoanCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.loanaccount.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "LOAN", action = "CLOSE") public class CloseLoanCommandHandler implements NewCommandSourceHandler { private final LoanWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/handler/DeleteLoanChargeCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/handler/DeleteLoanChargeCommandHandler.java index ae9e42bea..36763457e 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/handler/DeleteLoanChargeCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/handler/DeleteLoanChargeCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.loanaccount.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "LOANCHARGE", action = "DELETE") public class DeleteLoanChargeCommandHandler implements NewCommandSourceHandler { private final LoanWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/handler/DisburseLoanCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/handler/DisburseLoanCommandHandler.java index 0e3ba84ca..f091b823b 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/handler/DisburseLoanCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/handler/DisburseLoanCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.loanaccount.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "LOAN", action = "DISBURSE") public class DisburseLoanCommandHandler implements NewCommandSourceHandler { private final LoanWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/handler/DisburseLoanToSavingsCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/handler/DisburseLoanToSavingsCommandHandler.java index defefbd59..0508dde01 100755 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/handler/DisburseLoanToSavingsCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/handler/DisburseLoanToSavingsCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.loanaccount.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "LOAN", action = "DISBURSETOSAVINGS") public class DisburseLoanToSavingsCommandHandler implements NewCommandSourceHandler { private final LoanWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/handler/LoanApplicationApprovalCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/handler/LoanApplicationApprovalCommandHandler.java index be307af2b..113682bd9 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/handler/LoanApplicationApprovalCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/handler/LoanApplicationApprovalCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.loanaccount.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "LOAN", action = "APPROVE") public class LoanApplicationApprovalCommandHandler implements NewCommandSourceHandler { private final LoanApplicationWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/handler/LoanApplicationApprovalUndoCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/handler/LoanApplicationApprovalUndoCommandHandler.java index 98b07e0c6..175233236 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/handler/LoanApplicationApprovalUndoCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/handler/LoanApplicationApprovalUndoCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.loanaccount.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "LOAN", action = "APPROVALUNDO") public class LoanApplicationApprovalUndoCommandHandler implements NewCommandSourceHandler { private final LoanApplicationWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/handler/LoanApplicationDeletionCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/handler/LoanApplicationDeletionCommandHandler.java index 4fa90a3af..bdd4c520c 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/handler/LoanApplicationDeletionCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/handler/LoanApplicationDeletionCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.loanaccount.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "LOAN", action = "DELETE") public class LoanApplicationDeletionCommandHandler implements NewCommandSourceHandler { private final LoanApplicationWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/handler/LoanApplicationModificationCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/handler/LoanApplicationModificationCommandHandler.java index d72902537..62e8a14aa 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/handler/LoanApplicationModificationCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/handler/LoanApplicationModificationCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.loanaccount.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "LOAN", action = "UPDATE") public class LoanApplicationModificationCommandHandler implements NewCommandSourceHandler { private final LoanApplicationWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/handler/LoanApplicationRejectedCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/handler/LoanApplicationRejectedCommandHandler.java index d8d8288e4..c43a331dd 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/handler/LoanApplicationRejectedCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/handler/LoanApplicationRejectedCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.loanaccount.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "LOAN", action = "REJECT") public class LoanApplicationRejectedCommandHandler implements NewCommandSourceHandler { private final LoanApplicationWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/handler/LoanApplicationSubmittalCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/handler/LoanApplicationSubmittalCommandHandler.java index e01da326d..2ac60fd17 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/handler/LoanApplicationSubmittalCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/handler/LoanApplicationSubmittalCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.loanaccount.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "LOAN", action = "CREATE") public class LoanApplicationSubmittalCommandHandler implements NewCommandSourceHandler { private final LoanApplicationWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/handler/LoanApplicationWithdrawnByApplicantCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/handler/LoanApplicationWithdrawnByApplicantCommandHandler.java index 1f6a66f9a..3ef7201ea 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/handler/LoanApplicationWithdrawnByApplicantCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/handler/LoanApplicationWithdrawnByApplicantCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.loanaccount.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "LOAN", action = "WITHDRAW") public class LoanApplicationWithdrawnByApplicantCommandHandler implements NewCommandSourceHandler { private final LoanApplicationWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/handler/LoanRecoveryPaymentCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/handler/LoanRecoveryPaymentCommandHandler.java index 6c9322d4e..b2244108c 100755 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/handler/LoanRecoveryPaymentCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/handler/LoanRecoveryPaymentCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.loanaccount.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -13,6 +14,7 @@ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @Service +@CommandType(entity = "LOAN", action = "RECOVERYPAYMENT") public class LoanRecoveryPaymentCommandHandler implements NewCommandSourceHandler { private final LoanWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/handler/LoanRefundByCashCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/handler/LoanRefundByCashCommandHandler.java index 6f13457ae..623079f22 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/handler/LoanRefundByCashCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/handler/LoanRefundByCashCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.loanaccount.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "LOAN", action = "REFUNDBYCASH") public class LoanRefundByCashCommandHandler implements NewCommandSourceHandler { private final LoanWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/handler/LoanRepaymentAdjustmentCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/handler/LoanRepaymentAdjustmentCommandHandler.java index 4d6a828be..5dfa6c36e 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/handler/LoanRepaymentAdjustmentCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/handler/LoanRepaymentAdjustmentCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.loanaccount.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "LOAN", action = "ADJUST") public class LoanRepaymentAdjustmentCommandHandler implements NewCommandSourceHandler { private final LoanWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/handler/LoanRepaymentCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/handler/LoanRepaymentCommandHandler.java index 513e91cce..306c1cc8d 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/handler/LoanRepaymentCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/handler/LoanRepaymentCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.loanaccount.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "LOAN", action = "REPAYMENT") public class LoanRepaymentCommandHandler implements NewCommandSourceHandler { private final LoanWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/handler/PayLoanChargeCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/handler/PayLoanChargeCommandHandler.java index 8f516c696..34eb1dc53 100755 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/handler/PayLoanChargeCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/handler/PayLoanChargeCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.loanaccount.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "LOANCHARGE", action = "PAY") public class PayLoanChargeCommandHandler implements NewCommandSourceHandler { private final LoanWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/handler/RecoverFromGuarantorCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/handler/RecoverFromGuarantorCommandHandler.java index c51921679..8f6c1127d 100755 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/handler/RecoverFromGuarantorCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/handler/RecoverFromGuarantorCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.loanaccount.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -13,6 +14,7 @@ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @Service +@CommandType(entity = "LOAN", action = "RECOVERGUARANTEES") public class RecoverFromGuarantorCommandHandler implements NewCommandSourceHandler { private final LoanWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/handler/RemoveLoanOfficerCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/handler/RemoveLoanOfficerCommandHandler.java index 17e22974b..77565be8d 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/handler/RemoveLoanOfficerCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/handler/RemoveLoanOfficerCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.loanaccount.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "LOAN", action = "REMOVELOANOFFICER") public class RemoveLoanOfficerCommandHandler implements NewCommandSourceHandler { private final LoanWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/handler/UndoDisbursalLoanCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/handler/UndoDisbursalLoanCommandHandler.java index b575bbd7e..c59dcbeb5 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/handler/UndoDisbursalLoanCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/handler/UndoDisbursalLoanCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.loanaccount.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "LOAN", action = "DISBURSALUNDO") public class UndoDisbursalLoanCommandHandler implements NewCommandSourceHandler { private final LoanWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/handler/UndoWriteOffLoanCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/handler/UndoWriteOffLoanCommandHandler.java index 83f757f13..c1ffc3769 100755 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/handler/UndoWriteOffLoanCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/handler/UndoWriteOffLoanCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.loanaccount.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "LOAN", action = "UNDOWRITEOFF") public class UndoWriteOffLoanCommandHandler implements NewCommandSourceHandler { private final LoanWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/handler/UpdateLoanChargeCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/handler/UpdateLoanChargeCommandHandler.java index 7eb351d49..155cc7287 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/handler/UpdateLoanChargeCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/handler/UpdateLoanChargeCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.loanaccount.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "LOANCHARGE", action = "UPDATE") public class UpdateLoanChargeCommandHandler implements NewCommandSourceHandler { private final LoanWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/handler/UpdateLoanOfficerCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/handler/UpdateLoanOfficerCommandHandler.java index 9b6c89a58..b454b0dda 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/handler/UpdateLoanOfficerCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/handler/UpdateLoanOfficerCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.loanaccount.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "LOAN", action = "UPDATELOANOFFICER") public class UpdateLoanOfficerCommandHandler implements NewCommandSourceHandler { private final LoanWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/handler/WaiveInterestPortionOnLoanCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/handler/WaiveInterestPortionOnLoanCommandHandler.java index e62baac67..e44e45d2e 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/handler/WaiveInterestPortionOnLoanCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/handler/WaiveInterestPortionOnLoanCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.loanaccount.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "LOAN", action = "WAIVEINTERESTPORTION") public class WaiveInterestPortionOnLoanCommandHandler implements NewCommandSourceHandler { private final LoanWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/handler/WaiveLoanChargeCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/handler/WaiveLoanChargeCommandHandler.java index 187d47452..f50b3ed1b 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/handler/WaiveLoanChargeCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/handler/WaiveLoanChargeCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.loanaccount.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "LOANCHARGE", action = "WAIVE") public class WaiveLoanChargeCommandHandler implements NewCommandSourceHandler { private final LoanWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/handler/WriteOffLoanCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/handler/WriteOffLoanCommandHandler.java index 3ad6c4568..157bf1b13 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/handler/WriteOffLoanCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/handler/WriteOffLoanCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.loanaccount.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "LOAN", action = "WRITEOFF") public class WriteOffLoanCommandHandler implements NewCommandSourceHandler { private final LoanWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/rescheduleloan/handler/ApproveLoanRescheduleRequestCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/rescheduleloan/handler/ApproveLoanRescheduleRequestCommandHandler.java index 3407c38ff..da004b9fa 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/rescheduleloan/handler/ApproveLoanRescheduleRequestCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/rescheduleloan/handler/ApproveLoanRescheduleRequestCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.loanaccount.rescheduleloan.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "RESCHEDULELOAN", action = "APPROVE") public class ApproveLoanRescheduleRequestCommandHandler implements NewCommandSourceHandler { private final LoanRescheduleRequestWritePlatformService loanRescheduleRequestWritePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/rescheduleloan/handler/CreateLoanRescheduleRequestCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/rescheduleloan/handler/CreateLoanRescheduleRequestCommandHandler.java index 7d6d4b2ca..d77dc9ade 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/rescheduleloan/handler/CreateLoanRescheduleRequestCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/rescheduleloan/handler/CreateLoanRescheduleRequestCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.loanaccount.rescheduleloan.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "RESCHEDULELOAN", action = "CREATE") public class CreateLoanRescheduleRequestCommandHandler implements NewCommandSourceHandler { private final LoanRescheduleRequestWritePlatformService loanRescheduleRequestWritePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/rescheduleloan/handler/RejectLoanRescheduleRequestCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/rescheduleloan/handler/RejectLoanRescheduleRequestCommandHandler.java index fd1790c1a..35e6c64cd 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/rescheduleloan/handler/RejectLoanRescheduleRequestCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/rescheduleloan/handler/RejectLoanRescheduleRequestCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.loanaccount.rescheduleloan.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "RESCHEDULELOAN", action = "REJECT") public class RejectLoanRescheduleRequestCommandHandler implements NewCommandSourceHandler { private final LoanRescheduleRequestWritePlatformService loanRescheduleRequestWritePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanproduct/handler/CreateLoanProductCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanproduct/handler/CreateLoanProductCommandHandler.java index ac6e1486a..a8c6e4b3f 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanproduct/handler/CreateLoanProductCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanproduct/handler/CreateLoanProductCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.loanproduct.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "LOANPRODUCT", action = "CREATE") public class CreateLoanProductCommandHandler implements NewCommandSourceHandler { private final LoanProductWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanproduct/handler/UpdateLoanProductCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanproduct/handler/UpdateLoanProductCommandHandler.java index 96ec19008..35cbdca11 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanproduct/handler/UpdateLoanProductCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanproduct/handler/UpdateLoanProductCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.loanproduct.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "LOANPRODUCT", action = "UPDATE") public class UpdateLoanProductCommandHandler implements NewCommandSourceHandler { private final LoanProductWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanproduct/productmix/handler/CreateProductMixCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanproduct/productmix/handler/CreateProductMixCommandHandler.java index 6c224caad..7e4c377bb 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanproduct/productmix/handler/CreateProductMixCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanproduct/productmix/handler/CreateProductMixCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.loanproduct.productmix.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "PRODUCTMIX", action = "CREATE") public class CreateProductMixCommandHandler implements NewCommandSourceHandler { private final ProductMixWritePlatformService productMixWritePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanproduct/productmix/handler/DeleteProductMixCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanproduct/productmix/handler/DeleteProductMixCommandHandler.java index 0b16c55e8..02b349bca 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanproduct/productmix/handler/DeleteProductMixCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanproduct/productmix/handler/DeleteProductMixCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.loanproduct.productmix.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "PRODUCTMIX", action = "DELETE") public class DeleteProductMixCommandHandler implements NewCommandSourceHandler { private final ProductMixWritePlatformService productMixWritePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanproduct/productmix/handler/UpdateProductMixCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanproduct/productmix/handler/UpdateProductMixCommandHandler.java index b0225103a..b9c6233ba 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanproduct/productmix/handler/UpdateProductMixCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanproduct/productmix/handler/UpdateProductMixCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.loanproduct.productmix.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "PRODUCTMIX", action = "UPDATE") public class UpdateProductMixCommandHandler implements NewCommandSourceHandler { private final ProductMixWritePlatformService productMixWritePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/meeting/handler/CreateMeetingCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/meeting/handler/CreateMeetingCommandHandler.java index 690817f59..17e4bf945 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/meeting/handler/CreateMeetingCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/meeting/handler/CreateMeetingCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.meeting.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "MEETING", action = "CREATE") public class CreateMeetingCommandHandler implements NewCommandSourceHandler { private final MeetingWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/meeting/handler/DeleteMeetingCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/meeting/handler/DeleteMeetingCommandHandler.java index cf1ef32ed..85ac27b8a 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/meeting/handler/DeleteMeetingCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/meeting/handler/DeleteMeetingCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.meeting.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "MEETING", action = "DELETE") public class DeleteMeetingCommandHandler implements NewCommandSourceHandler { private final MeetingWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/meeting/handler/UpdateMeetingAttendanceCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/meeting/handler/UpdateMeetingAttendanceCommandHandler.java index cf52a63e0..ada62ba34 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/meeting/handler/UpdateMeetingAttendanceCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/meeting/handler/UpdateMeetingAttendanceCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.meeting.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "MEETING", action = "SAVEORUPDATEATTENDANCE") public class UpdateMeetingAttendanceCommandHandler implements NewCommandSourceHandler { private final MeetingWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/meeting/handler/UpdateMeetingCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/meeting/handler/UpdateMeetingCommandHandler.java index 208eeac77..02d70e8aa 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/meeting/handler/UpdateMeetingCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/meeting/handler/UpdateMeetingCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.meeting.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "MEETING", action = "UPDATE") public class UpdateMeetingCommandHandler implements NewCommandSourceHandler { private final MeetingWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/paymenttype/handler/CreatePaymentTypeCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/paymenttype/handler/CreatePaymentTypeCommandHandler.java index dde2bcd95..fb9dbc77b 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/paymenttype/handler/CreatePaymentTypeCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/paymenttype/handler/CreatePaymentTypeCommandHandler.java @@ -7,6 +7,7 @@ package org.mifosplatform.portfolio.paymenttype.handler; import javax.transaction.Transactional; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -15,6 +16,7 @@ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @Service +@CommandType(entity = "PAYMENTTYPE", action = "CREATE") public class CreatePaymentTypeCommandHandler implements NewCommandSourceHandler { private final PaymentTypeWriteService paymentTypeWriteService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/paymenttype/handler/DeletePaymentTypeCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/paymenttype/handler/DeletePaymentTypeCommandHandler.java index adc128ff5..1917370d4 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/paymenttype/handler/DeletePaymentTypeCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/paymenttype/handler/DeletePaymentTypeCommandHandler.java @@ -7,6 +7,7 @@ package org.mifosplatform.portfolio.paymenttype.handler; import javax.transaction.Transactional; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -15,6 +16,7 @@ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @Service +@CommandType(entity = "PAYMENTTYPE", action = "DELETE") public class DeletePaymentTypeCommandHandler implements NewCommandSourceHandler { private final PaymentTypeWriteService paymentTypeWriteService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/paymenttype/handler/UpdatePaymentTypeCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/paymenttype/handler/UpdatePaymentTypeCommandHandler.java index cf6a7db89..b52532ba7 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/paymenttype/handler/UpdatePaymentTypeCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/paymenttype/handler/UpdatePaymentTypeCommandHandler.java @@ -7,6 +7,7 @@ package org.mifosplatform.portfolio.paymenttype.handler; import javax.transaction.Transactional; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -15,6 +16,7 @@ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @Service +@CommandType(entity = "PAYMENTTYPE", action = "UPDATE") public class UpdatePaymentTypeCommandHandler implements NewCommandSourceHandler { private final PaymentTypeWriteService paymentTypeWriteService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/ActivateFixedDepositAccountCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/ActivateFixedDepositAccountCommandHandler.java index e3bac5932..167c3d1a0 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/ActivateFixedDepositAccountCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/ActivateFixedDepositAccountCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.savings.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "FIXEDDEPOSITACCOUNT", action = "ACTIVATE") public class ActivateFixedDepositAccountCommandHandler implements NewCommandSourceHandler { private final DepositAccountWritePlatformService depositAccountWritePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/ActivateRecurringDepositAccountCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/ActivateRecurringDepositAccountCommandHandler.java index 45943223b..a860422fc 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/ActivateRecurringDepositAccountCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/ActivateRecurringDepositAccountCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.savings.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "RECURRINGDEPOSITACCOUNT", action = "ACTIVATE") public class ActivateRecurringDepositAccountCommandHandler implements NewCommandSourceHandler { private final DepositAccountWritePlatformService depositAccountWritePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/ActivateSavingsAccountCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/ActivateSavingsAccountCommandHandler.java index d586f4a3c..d31fa7542 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/ActivateSavingsAccountCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/ActivateSavingsAccountCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.savings.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "SAVINGSACCOUNT", action = "ACTIVATE") public class ActivateSavingsAccountCommandHandler implements NewCommandSourceHandler { private final SavingsAccountWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/AddSavingsAccountChargeCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/AddSavingsAccountChargeCommandHandler.java index 823010419..d7ab010df 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/AddSavingsAccountChargeCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/AddSavingsAccountChargeCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.savings.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "SAVINGSACCOUNTCHARGE", action = "CREATE") public class AddSavingsAccountChargeCommandHandler implements NewCommandSourceHandler { private final SavingsAccountWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/ApplyAnnualFeeSavingsAccountCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/ApplyAnnualFeeSavingsAccountCommandHandler.java index 3fe462819..7e0d6eb66 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/ApplyAnnualFeeSavingsAccountCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/ApplyAnnualFeeSavingsAccountCommandHandler.java @@ -6,6 +6,7 @@ package org.mifosplatform.portfolio.savings.handler; import org.joda.time.LocalDate; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -15,6 +16,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "SAVINGSACCOUNT", action = "APPLYANNUALFEE") public class ApplyAnnualFeeSavingsAccountCommandHandler implements NewCommandSourceHandler { @SuppressWarnings("unused") diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/CalculateInterestFixedDepositAccountCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/CalculateInterestFixedDepositAccountCommandHandler.java index 1e1f79296..bc3d0f6d6 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/CalculateInterestFixedDepositAccountCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/CalculateInterestFixedDepositAccountCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.savings.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -15,6 +16,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "FIXEDDEPOSITACCOUNT", action = "CALCULATEINTEREST") public class CalculateInterestFixedDepositAccountCommandHandler implements NewCommandSourceHandler { private final DepositAccountWritePlatformService depositAccountWritePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/CalculateInterestRecurringDepositAccountCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/CalculateInterestRecurringDepositAccountCommandHandler.java index f02e1149a..c0ffd86d7 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/CalculateInterestRecurringDepositAccountCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/CalculateInterestRecurringDepositAccountCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.savings.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -15,6 +16,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "RECURRINGDEPOSITACCOUNT", action = "CALCULATEINTEREST") public class CalculateInterestRecurringDepositAccountCommandHandler implements NewCommandSourceHandler { private final DepositAccountWritePlatformService depositAccountWritePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/CalculateInterestSavingsAccountCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/CalculateInterestSavingsAccountCommandHandler.java index 1c389a6cd..c2b44f96e 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/CalculateInterestSavingsAccountCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/CalculateInterestSavingsAccountCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.savings.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "SAVINGSACCOUNT", action = "CALCULATEINTEREST") public class CalculateInterestSavingsAccountCommandHandler implements NewCommandSourceHandler { private final SavingsAccountWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/CloseFixedDepositAccountCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/CloseFixedDepositAccountCommandHandler.java index 05da4dda2..89792663e 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/CloseFixedDepositAccountCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/CloseFixedDepositAccountCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.savings.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "FIXEDDEPOSITACCOUNT", action = "CLOSE") public class CloseFixedDepositAccountCommandHandler implements NewCommandSourceHandler { private final DepositAccountWritePlatformService depositAccountWritePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/CloseRecurringDepositAccountCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/CloseRecurringDepositAccountCommandHandler.java index f4ed5ac6d..1b3c5ed86 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/CloseRecurringDepositAccountCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/CloseRecurringDepositAccountCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.savings.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "RECURRINGDEPOSITACCOUNT", action = "CLOSE") public class CloseRecurringDepositAccountCommandHandler implements NewCommandSourceHandler { private final DepositAccountWritePlatformService depositAccountWritePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/CloseSavingsAccountCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/CloseSavingsAccountCommandHandler.java index 2fb103f8d..f3b93abc1 100755 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/CloseSavingsAccountCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/CloseSavingsAccountCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.savings.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "SAVINGSACCOUNT", action = "CLOSE") public class CloseSavingsAccountCommandHandler implements NewCommandSourceHandler { private final SavingsAccountWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/CreateFixedDepositProductCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/CreateFixedDepositProductCommandHandler.java index fbec1755f..9b721b78a 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/CreateFixedDepositProductCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/CreateFixedDepositProductCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.savings.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -13,6 +14,7 @@ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @Service +@CommandType(entity = "FIXEDDEPOSITPRODUCT", action = "CREATE") public class CreateFixedDepositProductCommandHandler implements NewCommandSourceHandler { private final FixedDepositProductWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/CreateRecurringDepositProductCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/CreateRecurringDepositProductCommandHandler.java index 45a084b5d..460a69309 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/CreateRecurringDepositProductCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/CreateRecurringDepositProductCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.savings.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -13,6 +14,7 @@ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @Service +@CommandType(entity = "RECURRINGDEPOSITPRODUCT", action = "CREATE") public class CreateRecurringDepositProductCommandHandler implements NewCommandSourceHandler { private final RecurringDepositProductWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/CreateSavingsProductCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/CreateSavingsProductCommandHandler.java index 62e276f65..cdfb5fe66 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/CreateSavingsProductCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/CreateSavingsProductCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.savings.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -13,6 +14,7 @@ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @Service +@CommandType(entity = "SAVINGSPRODUCT", action = "CREATE") public class CreateSavingsProductCommandHandler implements NewCommandSourceHandler { private final SavingsProductWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/DeleteFixedDepositProductCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/DeleteFixedDepositProductCommandHandler.java index ffddafbdb..6065e1772 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/DeleteFixedDepositProductCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/DeleteFixedDepositProductCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.savings.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -13,6 +14,7 @@ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @Service +@CommandType(entity = "FIXEDDEPOSITPRODUCT", action = "DELETE") public class DeleteFixedDepositProductCommandHandler implements NewCommandSourceHandler { private final FixedDepositProductWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/DeleteRecurringDepositProductCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/DeleteRecurringDepositProductCommandHandler.java index 1f6838da0..4cf6e48f8 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/DeleteRecurringDepositProductCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/DeleteRecurringDepositProductCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.savings.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -13,6 +14,7 @@ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @Service +@CommandType(entity = "RECURRINGDEPOSITPRODUCT", action = "DELETE") public class DeleteRecurringDepositProductCommandHandler implements NewCommandSourceHandler { private final RecurringDepositProductWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/DeleteSavingsAccountChargeCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/DeleteSavingsAccountChargeCommandHandler.java index aba4258cd..f99b0aaed 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/DeleteSavingsAccountChargeCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/DeleteSavingsAccountChargeCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.savings.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "SAVINGSACCOUNTCHARGE", action = "DELETE") public class DeleteSavingsAccountChargeCommandHandler implements NewCommandSourceHandler { private final SavingsAccountWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/DeleteSavingsProductCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/DeleteSavingsProductCommandHandler.java index 04ba214dd..54b1553ba 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/DeleteSavingsProductCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/DeleteSavingsProductCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.savings.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -13,6 +14,7 @@ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @Service +@CommandType(entity = "SAVINGSPRODUCT", action = "DELETE") public class DeleteSavingsProductCommandHandler implements NewCommandSourceHandler { private final SavingsProductWritePlatformService savingProductWritePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/DepositSavingsAccountCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/DepositSavingsAccountCommandHandler.java index 133f8f2fc..d0732434d 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/DepositSavingsAccountCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/DepositSavingsAccountCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.savings.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "SAVINGSACCOUNT", action = "DEPOSIT") public class DepositSavingsAccountCommandHandler implements NewCommandSourceHandler { private final SavingsAccountWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/FixedDepositAccountApplicationApprovalCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/FixedDepositAccountApplicationApprovalCommandHandler.java index a8c17b9d4..8faf95389 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/FixedDepositAccountApplicationApprovalCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/FixedDepositAccountApplicationApprovalCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.savings.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -15,6 +16,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "FIXEDDEPOSITACCOUNT", action = "APPROVE") public class FixedDepositAccountApplicationApprovalCommandHandler implements NewCommandSourceHandler { private final DepositApplicationProcessWritePlatformService depositAccountWritePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/FixedDepositAccountApplicationApprovalUndoCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/FixedDepositAccountApplicationApprovalUndoCommandHandler.java index 8b1f7d453..8bb439db3 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/FixedDepositAccountApplicationApprovalUndoCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/FixedDepositAccountApplicationApprovalUndoCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.savings.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -15,6 +16,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "FIXEDDEPOSITACCOUNT", action = "APPROVALUNDO") public class FixedDepositAccountApplicationApprovalUndoCommandHandler implements NewCommandSourceHandler { private final DepositApplicationProcessWritePlatformService depositAccountWritePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/FixedDepositAccountApplicationDeletionCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/FixedDepositAccountApplicationDeletionCommandHandler.java index 9d3709891..333988959 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/FixedDepositAccountApplicationDeletionCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/FixedDepositAccountApplicationDeletionCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.savings.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -15,6 +16,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "FIXEDDEPOSITACCOUNT", action = "DELETE") public class FixedDepositAccountApplicationDeletionCommandHandler implements NewCommandSourceHandler { private final DepositApplicationProcessWritePlatformService depositAccountWritePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/FixedDepositAccountApplicationModificationCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/FixedDepositAccountApplicationModificationCommandHandler.java index 11da4baa8..e17307ebc 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/FixedDepositAccountApplicationModificationCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/FixedDepositAccountApplicationModificationCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.savings.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "FIXEDDEPOSITACCOUNT", action = "UPDATE") public class FixedDepositAccountApplicationModificationCommandHandler implements NewCommandSourceHandler { private final DepositApplicationProcessWritePlatformService depositAccountWritePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/FixedDepositAccountApplicationRejectedCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/FixedDepositAccountApplicationRejectedCommandHandler.java index 95b7af027..dcc7f2d3e 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/FixedDepositAccountApplicationRejectedCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/FixedDepositAccountApplicationRejectedCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.savings.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -15,6 +16,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "FIXEDDEPOSITACCOUNT", action = "REJECT") public class FixedDepositAccountApplicationRejectedCommandHandler implements NewCommandSourceHandler { private final DepositApplicationProcessWritePlatformService depositAccountWritePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/FixedDepositAccountApplicationSubmittalCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/FixedDepositAccountApplicationSubmittalCommandHandler.java index 315acbc12..b99b5b37b 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/FixedDepositAccountApplicationSubmittalCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/FixedDepositAccountApplicationSubmittalCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.savings.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "FIXEDDEPOSITACCOUNT", action = "CREATE") public class FixedDepositAccountApplicationSubmittalCommandHandler implements NewCommandSourceHandler { private final DepositApplicationProcessWritePlatformService depositAccountWritePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/FixedDepositAccountApplicationWithdrawnByApplicantCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/FixedDepositAccountApplicationWithdrawnByApplicantCommandHandler.java index ad4dca739..722468ed4 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/FixedDepositAccountApplicationWithdrawnByApplicantCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/FixedDepositAccountApplicationWithdrawnByApplicantCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.savings.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -15,6 +16,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "FIXEDDEPOSITACCOUNT", action = "WITHDRAW") public class FixedDepositAccountApplicationWithdrawnByApplicantCommandHandler implements NewCommandSourceHandler { private final DepositApplicationProcessWritePlatformService depositAccountWritePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/FixedDepositAccountDepositCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/FixedDepositAccountDepositCommandHandler.java index d52e6f09e..699dcbdae 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/FixedDepositAccountDepositCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/FixedDepositAccountDepositCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.savings.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "FIXEDDEPOSITACCOUNT", action = "DEPOSIT") public class FixedDepositAccountDepositCommandHandler implements NewCommandSourceHandler { private final DepositAccountWritePlatformService depositAccountWritePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/FixedDepositTransactionAdjustmentCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/FixedDepositTransactionAdjustmentCommandHandler.java index 7cfb3e77a..7703cc415 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/FixedDepositTransactionAdjustmentCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/FixedDepositTransactionAdjustmentCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.savings.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "FIXEDDEPOSITACCOUNT", action = "ADJUSTTRANSACTION") public class FixedDepositTransactionAdjustmentCommandHandler implements NewCommandSourceHandler { private final DepositAccountWritePlatformService depositAccountWritePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/InactivateSavingsAccountChargeCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/InactivateSavingsAccountChargeCommandHandler.java index c98bae611..06da94b0c 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/InactivateSavingsAccountChargeCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/InactivateSavingsAccountChargeCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.savings.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "SAVINGSACCOUNTCHARGE", action = "INACTIVATE") public class InactivateSavingsAccountChargeCommandHandler implements NewCommandSourceHandler { private final SavingsAccountWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/PaySavingsAccountChargeCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/PaySavingsAccountChargeCommandHandler.java index d8ca1900e..66de22d8b 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/PaySavingsAccountChargeCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/PaySavingsAccountChargeCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.savings.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "SAVINGSACCOUNTCHARGE", action = "PAY") public class PaySavingsAccountChargeCommandHandler implements NewCommandSourceHandler { private final SavingsAccountWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/PostInterestFixedDepositAccountCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/PostInterestFixedDepositAccountCommandHandler.java index 7df5b4304..dd58f4148 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/PostInterestFixedDepositAccountCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/PostInterestFixedDepositAccountCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.savings.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -15,6 +16,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "FIXEDDEPOSITACCOUNT", action = "POSTINTEREST") public class PostInterestFixedDepositAccountCommandHandler implements NewCommandSourceHandler { private final DepositAccountWritePlatformService depositAccountWritePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/PostInterestRecurringDepositAccountCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/PostInterestRecurringDepositAccountCommandHandler.java index cf76ea9eb..57ac51b95 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/PostInterestRecurringDepositAccountCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/PostInterestRecurringDepositAccountCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.savings.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -15,6 +16,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "RECURRINGDEPOSITACCOUNT", action = "POSTINTEREST") public class PostInterestRecurringDepositAccountCommandHandler implements NewCommandSourceHandler { private final DepositAccountWritePlatformService depositAccountWritePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/PostInterestSavingsAccountCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/PostInterestSavingsAccountCommandHandler.java index a901133c0..9b33624a7 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/PostInterestSavingsAccountCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/PostInterestSavingsAccountCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.savings.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "SAVINGSACCOUNT", action = "POSTINTEREST") public class PostInterestSavingsAccountCommandHandler implements NewCommandSourceHandler { private final SavingsAccountWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/PrematureCloseFixedDepositAccountCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/PrematureCloseFixedDepositAccountCommandHandler.java index a3ba3e1af..e6d3e08c2 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/PrematureCloseFixedDepositAccountCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/PrematureCloseFixedDepositAccountCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.savings.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "FIXEDDEPOSITACCOUNT", action = "PREMATURECLOSE") public class PrematureCloseFixedDepositAccountCommandHandler implements NewCommandSourceHandler { private final DepositAccountWritePlatformService depositAccountWritePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/PrematureCloseRecurringDepositAccountCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/PrematureCloseRecurringDepositAccountCommandHandler.java index e3e1c6556..4045d9874 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/PrematureCloseRecurringDepositAccountCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/PrematureCloseRecurringDepositAccountCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.savings.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "RECURRINGDEPOSITACCOUNT", action = "PREMATURECLOSE") public class PrematureCloseRecurringDepositAccountCommandHandler implements NewCommandSourceHandler { private final DepositAccountWritePlatformService depositAccountWritePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/RecurringDepositAccountApplicationApprovalCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/RecurringDepositAccountApplicationApprovalCommandHandler.java index 75f6ffbb8..21b0e40d9 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/RecurringDepositAccountApplicationApprovalCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/RecurringDepositAccountApplicationApprovalCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.savings.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -15,6 +16,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "RECURRINGDEPOSITACCOUNT", action = "APPROVE") public class RecurringDepositAccountApplicationApprovalCommandHandler implements NewCommandSourceHandler { private final DepositApplicationProcessWritePlatformService depositAccountWritePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/RecurringDepositAccountApplicationApprovalUndoCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/RecurringDepositAccountApplicationApprovalUndoCommandHandler.java index 09a03146c..2f0658cc4 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/RecurringDepositAccountApplicationApprovalUndoCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/RecurringDepositAccountApplicationApprovalUndoCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.savings.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -15,6 +16,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "RECURRINGDEPOSITACCOUNT", action = "APPROVALUNDO") public class RecurringDepositAccountApplicationApprovalUndoCommandHandler implements NewCommandSourceHandler { private final DepositApplicationProcessWritePlatformService depositAccountWritePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/RecurringDepositAccountApplicationDeletionCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/RecurringDepositAccountApplicationDeletionCommandHandler.java index a486c2ce7..840d13cd4 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/RecurringDepositAccountApplicationDeletionCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/RecurringDepositAccountApplicationDeletionCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.savings.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -15,6 +16,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "RECURRINGDEPOSITACCOUNT", action = "DELETE") public class RecurringDepositAccountApplicationDeletionCommandHandler implements NewCommandSourceHandler { private final DepositApplicationProcessWritePlatformService depositAccountWritePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/RecurringDepositAccountApplicationModificationCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/RecurringDepositAccountApplicationModificationCommandHandler.java index 101402ff8..d93d98a15 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/RecurringDepositAccountApplicationModificationCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/RecurringDepositAccountApplicationModificationCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.savings.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "RECURRINGDEPOSITACCOUNT", action = "UPDATE") public class RecurringDepositAccountApplicationModificationCommandHandler implements NewCommandSourceHandler { private final DepositApplicationProcessWritePlatformService depositAccountWritePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/RecurringDepositAccountApplicationRejectedCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/RecurringDepositAccountApplicationRejectedCommandHandler.java index 885074425..02b41add0 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/RecurringDepositAccountApplicationRejectedCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/RecurringDepositAccountApplicationRejectedCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.savings.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -15,6 +16,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "RECURRINGDEPOSITACCOUNT", action = "REJECT") public class RecurringDepositAccountApplicationRejectedCommandHandler implements NewCommandSourceHandler { private final DepositApplicationProcessWritePlatformService depositAccountWritePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/RecurringDepositAccountApplicationSubmittalCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/RecurringDepositAccountApplicationSubmittalCommandHandler.java index 71c8eb33f..b958bbb80 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/RecurringDepositAccountApplicationSubmittalCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/RecurringDepositAccountApplicationSubmittalCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.savings.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "RECURRINGDEPOSITACCOUNT", action = "CREATE") public class RecurringDepositAccountApplicationSubmittalCommandHandler implements NewCommandSourceHandler { private final DepositApplicationProcessWritePlatformService depositAccountWritePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/RecurringDepositAccountApplicationWithdrawnByApplicantCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/RecurringDepositAccountApplicationWithdrawnByApplicantCommandHandler.java index a33d4a797..071e63d78 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/RecurringDepositAccountApplicationWithdrawnByApplicantCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/RecurringDepositAccountApplicationWithdrawnByApplicantCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.savings.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -15,6 +16,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "RECURRINGDEPOSITACCOUNT", action = "WITHDRAW") public class RecurringDepositAccountApplicationWithdrawnByApplicantCommandHandler implements NewCommandSourceHandler { private final DepositApplicationProcessWritePlatformService depositAccountWritePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/RecurringDepositAccountDepositCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/RecurringDepositAccountDepositCommandHandler.java index b24118934..4e1e663d4 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/RecurringDepositAccountDepositCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/RecurringDepositAccountDepositCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.savings.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "RECURRINGDEPOSITACCOUNT", action = "DEPOSIT") public class RecurringDepositAccountDepositCommandHandler implements NewCommandSourceHandler { private final DepositAccountWritePlatformService depositAccountWritePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/RecurringDepositAccountUpdateDepositAmountCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/RecurringDepositAccountUpdateDepositAmountCommandHandler.java index 203f0c033..bba54b662 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/RecurringDepositAccountUpdateDepositAmountCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/RecurringDepositAccountUpdateDepositAmountCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.savings.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "RECURRINGDEPOSITACCOUNT", action = "UPDATEDEPOSITAMOUNT") public class RecurringDepositAccountUpdateDepositAmountCommandHandler implements NewCommandSourceHandler { private final DepositAccountWritePlatformService depositAccountWritePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/RecurringDepositTransactionAdjustmentCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/RecurringDepositTransactionAdjustmentCommandHandler.java index 68c0a3804..e1660a7b1 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/RecurringDepositTransactionAdjustmentCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/RecurringDepositTransactionAdjustmentCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.savings.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "RECURRINGDEPOSITACCOUNT", action = "ADJUSTTRANSACTION") public class RecurringDepositTransactionAdjustmentCommandHandler implements NewCommandSourceHandler { private final DepositAccountWritePlatformService depositAccountWritePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/RemoveSavingsOfficerCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/RemoveSavingsOfficerCommandHandler.java index 4186ab07c..6396d52d8 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/RemoveSavingsOfficerCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/RemoveSavingsOfficerCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.savings.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "SAVINGSACCOUNT", action = "REMOVESAVINGSOFFICER") public class RemoveSavingsOfficerCommandHandler implements NewCommandSourceHandler { private final SavingsAccountWritePlatformService savingsWritePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/SavingsAccountApplicationApprovalCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/SavingsAccountApplicationApprovalCommandHandler.java index ce28cf4e3..a22122ecd 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/SavingsAccountApplicationApprovalCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/SavingsAccountApplicationApprovalCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.savings.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "SAVINGSACCOUNT", action = "APPROVE") public class SavingsAccountApplicationApprovalCommandHandler implements NewCommandSourceHandler { private final SavingsApplicationProcessWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/SavingsAccountApplicationApprovalUndoCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/SavingsAccountApplicationApprovalUndoCommandHandler.java index 694dbc77c..0691e2415 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/SavingsAccountApplicationApprovalUndoCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/SavingsAccountApplicationApprovalUndoCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.savings.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "SAVINGSACCOUNT", action = "APPROVALUNDO") public class SavingsAccountApplicationApprovalUndoCommandHandler implements NewCommandSourceHandler { private final SavingsApplicationProcessWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/SavingsAccountApplicationDeletionCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/SavingsAccountApplicationDeletionCommandHandler.java index b83b87cc8..4d2b2b4a0 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/SavingsAccountApplicationDeletionCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/SavingsAccountApplicationDeletionCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.savings.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "SAVINGSACCOUNT", action = "DELETE") public class SavingsAccountApplicationDeletionCommandHandler implements NewCommandSourceHandler { private final SavingsApplicationProcessWritePlatformService savingAccountWritePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/SavingsAccountApplicationModificationCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/SavingsAccountApplicationModificationCommandHandler.java index 9bf4671fb..a9d8ee5a6 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/SavingsAccountApplicationModificationCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/SavingsAccountApplicationModificationCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.savings.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "SAVINGSACCOUNT", action = "UPDATE") public class SavingsAccountApplicationModificationCommandHandler implements NewCommandSourceHandler { private final SavingsApplicationProcessWritePlatformService savingAccountWritePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/SavingsAccountApplicationRejectedCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/SavingsAccountApplicationRejectedCommandHandler.java index 4cef7bfb3..a5dcf9068 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/SavingsAccountApplicationRejectedCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/SavingsAccountApplicationRejectedCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.savings.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "SAVINGSACCOUNT", action = "REJECT") public class SavingsAccountApplicationRejectedCommandHandler implements NewCommandSourceHandler { private final SavingsApplicationProcessWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/SavingsAccountApplicationSubmittalCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/SavingsAccountApplicationSubmittalCommandHandler.java index a0df7564c..b7eca211f 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/SavingsAccountApplicationSubmittalCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/SavingsAccountApplicationSubmittalCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.savings.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "SAVINGSACCOUNT", action = "CREATE") public class SavingsAccountApplicationSubmittalCommandHandler implements NewCommandSourceHandler { private final SavingsApplicationProcessWritePlatformService savingAccountWritePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/SavingsAccountApplicationWithdrawnByApplicantCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/SavingsAccountApplicationWithdrawnByApplicantCommandHandler.java index c1411e6ec..7b3df2cfe 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/SavingsAccountApplicationWithdrawnByApplicantCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/SavingsAccountApplicationWithdrawnByApplicantCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.savings.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "SAVINGSACCOUNT", action = "WITHDRAW") public class SavingsAccountApplicationWithdrawnByApplicantCommandHandler implements NewCommandSourceHandler { private final SavingsApplicationProcessWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/SavingsTransactionAdjustmentCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/SavingsTransactionAdjustmentCommandHandler.java index e16ccce82..69b67ccf9 100755 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/SavingsTransactionAdjustmentCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/SavingsTransactionAdjustmentCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.savings.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "SAVINGSACCOUNT", action = "ADJUSTTRANSACTION") public class SavingsTransactionAdjustmentCommandHandler implements NewCommandSourceHandler { private final SavingsAccountWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/UndoTransactionFixedDepositAccountCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/UndoTransactionFixedDepositAccountCommandHandler.java index 72e4e4b61..99b89ef4e 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/UndoTransactionFixedDepositAccountCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/UndoTransactionFixedDepositAccountCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.savings.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "FIXEDDEPOSITACCOUNT", action = "UNDOTRANSACTION") public class UndoTransactionFixedDepositAccountCommandHandler implements NewCommandSourceHandler { private final DepositAccountWritePlatformService depositAccountWritePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/UndoTransactionRecurringDepositAccountCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/UndoTransactionRecurringDepositAccountCommandHandler.java index 10d1e50f6..4294a88cc 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/UndoTransactionRecurringDepositAccountCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/UndoTransactionRecurringDepositAccountCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.savings.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "RECURRINGDEPOSITACCOUNT", action = "UNDOTRANSACTION") public class UndoTransactionRecurringDepositAccountCommandHandler implements NewCommandSourceHandler { private final DepositAccountWritePlatformService depositAccountWritePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/UndoTransactionSavingsAccountCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/UndoTransactionSavingsAccountCommandHandler.java index b025bdd14..77e015847 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/UndoTransactionSavingsAccountCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/UndoTransactionSavingsAccountCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.savings.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "SAVINGSACCOUNT", action = "UNDOTRANSACTION") public class UndoTransactionSavingsAccountCommandHandler implements NewCommandSourceHandler { private final SavingsAccountWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/UpdateFixedDepositProductCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/UpdateFixedDepositProductCommandHandler.java index df1eb1ccb..2554cfb5d 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/UpdateFixedDepositProductCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/UpdateFixedDepositProductCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.savings.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -13,6 +14,7 @@ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @Service +@CommandType(entity = "FIXEDDEPOSITPRODUCT", action = "UPDATE") public class UpdateFixedDepositProductCommandHandler implements NewCommandSourceHandler { private final FixedDepositProductWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/UpdateRecurringDepositProductCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/UpdateRecurringDepositProductCommandHandler.java index 4c311459a..5876846eb 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/UpdateRecurringDepositProductCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/UpdateRecurringDepositProductCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.savings.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -13,6 +14,7 @@ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @Service +@CommandType(entity = "RECURRINGDEPOSITPRODUCT", action = "UPDATE") public class UpdateRecurringDepositProductCommandHandler implements NewCommandSourceHandler { private final RecurringDepositProductWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/UpdateSavingsAccountChargeCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/UpdateSavingsAccountChargeCommandHandler.java index 334c78111..c6c513145 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/UpdateSavingsAccountChargeCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/UpdateSavingsAccountChargeCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.savings.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "SAVINGSACCOUNTCHARGE", action = "UPDATE") public class UpdateSavingsAccountChargeCommandHandler implements NewCommandSourceHandler { private final SavingsAccountWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/UpdateSavingsOfficerCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/UpdateSavingsOfficerCommandHandler.java index 8155caca7..921275594 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/UpdateSavingsOfficerCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/UpdateSavingsOfficerCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.savings.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "SAVINGSACCOUNT", action = "UPDATESAVINGSOFFICER") public class UpdateSavingsOfficerCommandHandler implements NewCommandSourceHandler { private final SavingsAccountWritePlatformService savingsWritePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/UpdateSavingsProductCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/UpdateSavingsProductCommandHandler.java index b970d9c18..90f0a9234 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/UpdateSavingsProductCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/UpdateSavingsProductCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.savings.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -13,6 +14,7 @@ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @Service +@CommandType(entity = "SAVINGSPRODUCT", action = "UPDATE") public class UpdateSavingsProductCommandHandler implements NewCommandSourceHandler { private final SavingsProductWritePlatformService savingProductWritePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/WaiveSavingsAccountChargeCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/WaiveSavingsAccountChargeCommandHandler.java index 8630ea097..34be4dacd 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/WaiveSavingsAccountChargeCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/WaiveSavingsAccountChargeCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.savings.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "SAVINGSACCOUNTCHARGE", action = "WAIVE") public class WaiveSavingsAccountChargeCommandHandler implements NewCommandSourceHandler { private final SavingsAccountWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/WithdrawSavingsAccountCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/WithdrawSavingsAccountCommandHandler.java index 2d625c7fd..f835866a1 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/WithdrawSavingsAccountCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/WithdrawSavingsAccountCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.savings.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "SAVINGSACCOUNT", action = "WITHDRAWAL") public class WithdrawSavingsAccountCommandHandler implements NewCommandSourceHandler { private final SavingsAccountWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/WithdrawalFixedDepositAccountCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/WithdrawalFixedDepositAccountCommandHandler.java index e133f64f5..ad1b118f1 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/WithdrawalFixedDepositAccountCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/WithdrawalFixedDepositAccountCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.savings.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -15,6 +16,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "FIXEDDEPOSITACCOUNT", action = "WITHDRAWAL") public class WithdrawalFixedDepositAccountCommandHandler implements NewCommandSourceHandler { private final DepositAccountWritePlatformService depositAccountWritePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/WithdrawalRecurringDepositAccountCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/WithdrawalRecurringDepositAccountCommandHandler.java index 129edfc79..392d2f270 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/WithdrawalRecurringDepositAccountCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/handler/WithdrawalRecurringDepositAccountCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.savings.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -15,6 +16,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "RECURRINGDEPOSITACCOUNT", action = "WITHDRAWAL") public class WithdrawalRecurringDepositAccountCommandHandler implements NewCommandSourceHandler { private final DepositAccountWritePlatformService depositAccountWritePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/transfer/handler/AcceptClientTransferCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/transfer/handler/AcceptClientTransferCommandHandler.java index 756abf1fd..0c81ce9ab 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/transfer/handler/AcceptClientTransferCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/transfer/handler/AcceptClientTransferCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.transfer.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "CLIENT", action = "ACCEPTTRANSFER") public class AcceptClientTransferCommandHandler implements NewCommandSourceHandler { private final TransferWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/transfer/handler/ProposeAndAcceptClientTransferCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/transfer/handler/ProposeAndAcceptClientTransferCommandHandler.java index 0f0a8fa53..bb8eefc2e 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/transfer/handler/ProposeAndAcceptClientTransferCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/transfer/handler/ProposeAndAcceptClientTransferCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.transfer.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "CLIENT", action = "PROPOSEANDACCEPTTRANSFER") public class ProposeAndAcceptClientTransferCommandHandler implements NewCommandSourceHandler { private final TransferWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/transfer/handler/ProposeClientTransferCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/transfer/handler/ProposeClientTransferCommandHandler.java index c44c7c0f1..43d61c69f 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/transfer/handler/ProposeClientTransferCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/transfer/handler/ProposeClientTransferCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.transfer.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "CLIENT", action = "PROPOSETRANSFER") public class ProposeClientTransferCommandHandler implements NewCommandSourceHandler { private final TransferWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/transfer/handler/RejectClientTransferCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/transfer/handler/RejectClientTransferCommandHandler.java index faf608d45..4d7740771 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/transfer/handler/RejectClientTransferCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/transfer/handler/RejectClientTransferCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.transfer.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "CLIENT", action = "REJECTTRANSFER") public class RejectClientTransferCommandHandler implements NewCommandSourceHandler { private final TransferWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/transfer/handler/TransferClientsBetweenGroupsCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/transfer/handler/TransferClientsBetweenGroupsCommandHandler.java index f8e79ace7..c8b9de640 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/transfer/handler/TransferClientsBetweenGroupsCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/transfer/handler/TransferClientsBetweenGroupsCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.transfer.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "GROUP", action = "TRANSFERCLIENTS") public class TransferClientsBetweenGroupsCommandHandler implements NewCommandSourceHandler { private final TransferWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/transfer/handler/WithdrawClientTransferCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/transfer/handler/WithdrawClientTransferCommandHandler.java index 58e62ea7d..ba81d8a27 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/transfer/handler/WithdrawClientTransferCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/transfer/handler/WithdrawClientTransferCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.portfolio.transfer.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "CLIENT", action = "WITHDRAWTRANSFER") public class WithdrawClientTransferCommandHandler implements NewCommandSourceHandler { private final TransferWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/template/handler/CreateTemplateCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/template/handler/CreateTemplateCommandHandler.java index 7cb834414..b4bce59ae 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/template/handler/CreateTemplateCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/template/handler/CreateTemplateCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.template.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "TEMPLATE", action = "CREATE") public class CreateTemplateCommandHandler implements NewCommandSourceHandler { private final TemplateDomainService templateService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/template/handler/DeleteTemplateCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/template/handler/DeleteTemplateCommandHandler.java index bb066b06e..2cfa4d8ff 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/template/handler/DeleteTemplateCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/template/handler/DeleteTemplateCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.template.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "TEMPLATE", action = "DELETE") public class DeleteTemplateCommandHandler implements NewCommandSourceHandler { private final TemplateDomainService templateService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/template/handler/UpdateTemplateCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/template/handler/UpdateTemplateCommandHandler.java index de2107224..1590c8c47 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/template/handler/UpdateTemplateCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/template/handler/UpdateTemplateCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.template.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "TEMPLATE", action = "UPDATE") public class UpdateTemplateCommandHandler implements NewCommandSourceHandler { private final TemplateDomainService templateService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/useradministration/handler/CreateRoleCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/useradministration/handler/CreateRoleCommandHandler.java index 510f722ff..6338e374a 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/useradministration/handler/CreateRoleCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/useradministration/handler/CreateRoleCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.useradministration.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "ROLE", action = "CREATE") public class CreateRoleCommandHandler implements NewCommandSourceHandler { private final RoleWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/useradministration/handler/CreateUserCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/useradministration/handler/CreateUserCommandHandler.java index 167856702..6ebe21d2f 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/useradministration/handler/CreateUserCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/useradministration/handler/CreateUserCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.useradministration.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "USER", action = "CREATE") public class CreateUserCommandHandler implements NewCommandSourceHandler { private final AppUserWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/useradministration/handler/DeleteRoleCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/useradministration/handler/DeleteRoleCommandHandler.java index 83ee8f9a9..2f566ad24 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/useradministration/handler/DeleteRoleCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/useradministration/handler/DeleteRoleCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.useradministration.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "ROLE", action = "DELETE") public class DeleteRoleCommandHandler implements NewCommandSourceHandler { private final RoleWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/useradministration/handler/DeleteUserCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/useradministration/handler/DeleteUserCommandHandler.java index d0a270a80..4ec397401 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/useradministration/handler/DeleteUserCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/useradministration/handler/DeleteUserCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.useradministration.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "USER", action = "DELETE") public class DeleteUserCommandHandler implements NewCommandSourceHandler { private final AppUserWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/useradministration/handler/DisableRoleCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/useradministration/handler/DisableRoleCommandHandler.java index 42e259ac6..721437c26 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/useradministration/handler/DisableRoleCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/useradministration/handler/DisableRoleCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.useradministration.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -13,6 +14,7 @@ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @Service +@CommandType(entity = "ROLE", action = "DISABLE") public class DisableRoleCommandHandler implements NewCommandSourceHandler { private final RoleWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/useradministration/handler/EnableRoleCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/useradministration/handler/EnableRoleCommandHandler.java index a6b5255b4..99020e0a7 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/useradministration/handler/EnableRoleCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/useradministration/handler/EnableRoleCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.useradministration.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "ROLE", action = "ENABLE") public class EnableRoleCommandHandler implements NewCommandSourceHandler { private final RoleWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/useradministration/handler/UpdateMakerCheckerPermissionsCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/useradministration/handler/UpdateMakerCheckerPermissionsCommandHandler.java index e12bbcc03..c12035d11 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/useradministration/handler/UpdateMakerCheckerPermissionsCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/useradministration/handler/UpdateMakerCheckerPermissionsCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.useradministration.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "PERMISSION", action = "UPDATE") public class UpdateMakerCheckerPermissionsCommandHandler implements NewCommandSourceHandler { private final PermissionWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/useradministration/handler/UpdatePasswordPreferencesCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/useradministration/handler/UpdatePasswordPreferencesCommandHandler.java index ed476cd97..f29dc2a11 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/useradministration/handler/UpdatePasswordPreferencesCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/useradministration/handler/UpdatePasswordPreferencesCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.useradministration.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "PASSWORD_PREFERENCES", action = "UPDATE") public class UpdatePasswordPreferencesCommandHandler implements NewCommandSourceHandler { private final PasswordPreferencesWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/useradministration/handler/UpdateRoleCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/useradministration/handler/UpdateRoleCommandHandler.java index 11d3d1892..4919edad8 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/useradministration/handler/UpdateRoleCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/useradministration/handler/UpdateRoleCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.useradministration.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "ROLE", action = "UPDATE") public class UpdateRoleCommandHandler implements NewCommandSourceHandler { private final RoleWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/useradministration/handler/UpdateRolePermissionsCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/useradministration/handler/UpdateRolePermissionsCommandHandler.java index 5ddce98fc..7f1c05163 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/useradministration/handler/UpdateRolePermissionsCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/useradministration/handler/UpdateRolePermissionsCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.useradministration.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "ROLE", action = "PERMISSIONS") public class UpdateRolePermissionsCommandHandler implements NewCommandSourceHandler { private final RoleWritePlatformService writePlatformService; diff --git a/mifosng-provider/src/main/java/org/mifosplatform/useradministration/handler/UpdateUserCommandHandler.java b/mifosng-provider/src/main/java/org/mifosplatform/useradministration/handler/UpdateUserCommandHandler.java index 0df9c8358..16c8d666c 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/useradministration/handler/UpdateUserCommandHandler.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/useradministration/handler/UpdateUserCommandHandler.java @@ -5,6 +5,7 @@ */ package org.mifosplatform.useradministration.handler; +import org.mifosplatform.commands.annotation.CommandType; import org.mifosplatform.commands.handler.NewCommandSourceHandler; import org.mifosplatform.infrastructure.core.api.JsonCommand; import org.mifosplatform.infrastructure.core.data.CommandProcessingResult; @@ -14,6 +15,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@CommandType(entity = "USER", action = "UPDATE") public class UpdateUserCommandHandler implements NewCommandSourceHandler { private final AppUserWritePlatformService writePlatformService;