Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -18,26 +18,22 @@
*/
package org.apache.fineract.portfolio.loanaccount.guarantor.handler;

import lombok.RequiredArgsConstructor;
import org.apache.fineract.commands.annotation.CommandType;
import org.apache.fineract.commands.handler.NewCommandSourceHandler;
import org.apache.fineract.infrastructure.core.api.JsonCommand;
import org.apache.fineract.infrastructure.core.data.CommandProcessingResult;
import org.apache.fineract.portfolio.loanaccount.guarantor.service.GuarantorWritePlatformService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@CommandType(entity = "GUARANTOR", action = "CREATE")
@RequiredArgsConstructor
public class CreateGuarantorCommandHandler implements NewCommandSourceHandler {

private final GuarantorWritePlatformService writePlatformService;

@Autowired
public CreateGuarantorCommandHandler(final GuarantorWritePlatformService writePlatformService) {
this.writePlatformService = writePlatformService;
}

@Transactional
@Override
public CommandProcessingResult processCommand(final JsonCommand command) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,26 +18,22 @@
*/
package org.apache.fineract.portfolio.loanaccount.guarantor.handler;

import lombok.RequiredArgsConstructor;
import org.apache.fineract.commands.annotation.CommandType;
import org.apache.fineract.commands.handler.NewCommandSourceHandler;
import org.apache.fineract.infrastructure.core.api.JsonCommand;
import org.apache.fineract.infrastructure.core.data.CommandProcessingResult;
import org.apache.fineract.portfolio.loanaccount.guarantor.service.GuarantorWritePlatformService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@CommandType(entity = "GUARANTOR", action = "DELETE")
@RequiredArgsConstructor
public class DeleteGuarantorCommandHandler implements NewCommandSourceHandler {

private final GuarantorWritePlatformService guarantorWritePlatformService;

@Autowired
public DeleteGuarantorCommandHandler(final GuarantorWritePlatformService guarantorWritePlatformService) {
this.guarantorWritePlatformService = guarantorWritePlatformService;
}

@Transactional
@Override
public CommandProcessingResult processCommand(final JsonCommand command) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,26 +18,22 @@
*/
package org.apache.fineract.portfolio.loanaccount.guarantor.handler;

import lombok.RequiredArgsConstructor;
import org.apache.fineract.commands.annotation.CommandType;
import org.apache.fineract.commands.handler.NewCommandSourceHandler;
import org.apache.fineract.infrastructure.core.api.JsonCommand;
import org.apache.fineract.infrastructure.core.data.CommandProcessingResult;
import org.apache.fineract.portfolio.loanaccount.guarantor.service.GuarantorWritePlatformService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@CommandType(entity = "GUARANTOR", action = "UPDATE")
@RequiredArgsConstructor
public class UpdateGuarantorCommandHandler implements NewCommandSourceHandler {

private final GuarantorWritePlatformService writePlatformService;

@Autowired
public UpdateGuarantorCommandHandler(final GuarantorWritePlatformService writePlatformService) {
this.writePlatformService = writePlatformService;
}

@Transactional
@Override
public CommandProcessingResult processCommand(final JsonCommand command) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,26 +18,22 @@
*/
package org.apache.fineract.portfolio.loanproduct.handler;

import lombok.RequiredArgsConstructor;
import org.apache.fineract.commands.annotation.CommandType;
import org.apache.fineract.commands.handler.NewCommandSourceHandler;
import org.apache.fineract.infrastructure.core.api.JsonCommand;
import org.apache.fineract.infrastructure.core.data.CommandProcessingResult;
import org.apache.fineract.portfolio.loanproduct.service.LoanProductWritePlatformService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@CommandType(entity = "LOANPRODUCT", action = "UPDATE")
@RequiredArgsConstructor
public class UpdateLoanProductCommandHandler implements NewCommandSourceHandler {

private final LoanProductWritePlatformService writePlatformService;

@Autowired
public UpdateLoanProductCommandHandler(final LoanProductWritePlatformService writePlatformService) {
this.writePlatformService = writePlatformService;
}

@Transactional
@Override
public CommandProcessingResult processCommand(final JsonCommand command) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,26 +18,22 @@
*/
package org.apache.fineract.adhocquery.handler;

import lombok.RequiredArgsConstructor;
import org.apache.fineract.adhocquery.service.AdHocWritePlatformService;
import org.apache.fineract.commands.annotation.CommandType;
import org.apache.fineract.commands.handler.NewCommandSourceHandler;
import org.apache.fineract.infrastructure.core.api.JsonCommand;
import org.apache.fineract.infrastructure.core.data.CommandProcessingResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@CommandType(entity = "ADHOC", action = "CREATE")
@RequiredArgsConstructor
public class CreateAdHocCommandHandler implements NewCommandSourceHandler {

private final AdHocWritePlatformService writePlatformService;

@Autowired
public CreateAdHocCommandHandler(final AdHocWritePlatformService writePlatformService) {
this.writePlatformService = writePlatformService;
}

@Transactional
@Override
public CommandProcessingResult processCommand(final JsonCommand command) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,26 +18,22 @@
*/
package org.apache.fineract.adhocquery.handler;

import lombok.RequiredArgsConstructor;
import org.apache.fineract.adhocquery.service.AdHocWritePlatformService;
import org.apache.fineract.commands.annotation.CommandType;
import org.apache.fineract.commands.handler.NewCommandSourceHandler;
import org.apache.fineract.infrastructure.core.api.JsonCommand;
import org.apache.fineract.infrastructure.core.data.CommandProcessingResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@CommandType(entity = "ADHOC", action = "DELETE")
@RequiredArgsConstructor
public class DeleteAdHocCommandHandler implements NewCommandSourceHandler {

private final AdHocWritePlatformService writePlatformService;

@Autowired
public DeleteAdHocCommandHandler(final AdHocWritePlatformService writePlatformService) {
this.writePlatformService = writePlatformService;
}

@Transactional
@Override
public CommandProcessingResult processCommand(final JsonCommand command) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,26 +18,22 @@
*/
package org.apache.fineract.adhocquery.handler;

import lombok.RequiredArgsConstructor;
import org.apache.fineract.adhocquery.service.AdHocWritePlatformService;
import org.apache.fineract.commands.annotation.CommandType;
import org.apache.fineract.commands.handler.NewCommandSourceHandler;
import org.apache.fineract.infrastructure.core.api.JsonCommand;
import org.apache.fineract.infrastructure.core.data.CommandProcessingResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@CommandType(entity = "ADHOC", action = "UPDATE")
@RequiredArgsConstructor
public class UpdateAdHocCommandHandler implements NewCommandSourceHandler {

private final AdHocWritePlatformService writePlatformService;

@Autowired
public UpdateAdHocCommandHandler(final AdHocWritePlatformService writePlatformService) {
this.writePlatformService = writePlatformService;
}

@Transactional
@Override
public CommandProcessingResult processCommand(final JsonCommand command) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,26 +18,22 @@
*/
package org.apache.fineract.infrastructure.accountnumberformat.handler;

import lombok.RequiredArgsConstructor;
import org.apache.fineract.commands.annotation.CommandType;
import org.apache.fineract.commands.handler.NewCommandSourceHandler;
import org.apache.fineract.infrastructure.accountnumberformat.service.AccountNumberFormatWritePlatformService;
import org.apache.fineract.infrastructure.core.api.JsonCommand;
import org.apache.fineract.infrastructure.core.data.CommandProcessingResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@CommandType(entity = "ACCOUNTNUMBERFORMAT", action = "CREATE")
@RequiredArgsConstructor
public class CreateAccountNumberFormatCommandHandler implements NewCommandSourceHandler {

private final AccountNumberFormatWritePlatformService accountNumberFormatWritePlatformService;

@Autowired
public CreateAccountNumberFormatCommandHandler(final AccountNumberFormatWritePlatformService accountNumberFormatWritePlatformService) {
this.accountNumberFormatWritePlatformService = accountNumberFormatWritePlatformService;
}

@Override
@Transactional
public CommandProcessingResult processCommand(JsonCommand command) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,26 +18,22 @@
*/
package org.apache.fineract.infrastructure.accountnumberformat.handler;

import lombok.RequiredArgsConstructor;
import org.apache.fineract.commands.annotation.CommandType;
import org.apache.fineract.commands.handler.NewCommandSourceHandler;
import org.apache.fineract.infrastructure.accountnumberformat.service.AccountNumberFormatWritePlatformService;
import org.apache.fineract.infrastructure.core.api.JsonCommand;
import org.apache.fineract.infrastructure.core.data.CommandProcessingResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@CommandType(entity = "ACCOUNTNUMBERFORMAT", action = "DELETE")
@RequiredArgsConstructor
public class DeleteAccountNumberFormatCommandHandler implements NewCommandSourceHandler {

private final AccountNumberFormatWritePlatformService accountNumberFormatWritePlatformService;

@Autowired
public DeleteAccountNumberFormatCommandHandler(final AccountNumberFormatWritePlatformService accountNumberFormatWritePlatformService) {
this.accountNumberFormatWritePlatformService = accountNumberFormatWritePlatformService;
}

@Override
@Transactional
public CommandProcessingResult processCommand(JsonCommand command) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,26 +18,22 @@
*/
package org.apache.fineract.infrastructure.accountnumberformat.handler;

import lombok.RequiredArgsConstructor;
import org.apache.fineract.commands.annotation.CommandType;
import org.apache.fineract.commands.handler.NewCommandSourceHandler;
import org.apache.fineract.infrastructure.accountnumberformat.service.AccountNumberFormatWritePlatformService;
import org.apache.fineract.infrastructure.core.api.JsonCommand;
import org.apache.fineract.infrastructure.core.data.CommandProcessingResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@CommandType(entity = "ACCOUNTNUMBERFORMAT", action = "UPDATE")
@RequiredArgsConstructor
public class UpdateAccountNumberFormatCommandHandler implements NewCommandSourceHandler {

private final AccountNumberFormatWritePlatformService accountNumberFormatWritePlatformService;

@Autowired
public UpdateAccountNumberFormatCommandHandler(final AccountNumberFormatWritePlatformService accountNumberFormatWritePlatformService) {
this.accountNumberFormatWritePlatformService = accountNumberFormatWritePlatformService;
}

@Override
@Transactional
public CommandProcessingResult processCommand(JsonCommand command) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,26 +18,22 @@
*/
package org.apache.fineract.infrastructure.campaigns.email.handler;

import lombok.RequiredArgsConstructor;
import org.apache.fineract.commands.annotation.CommandType;
import org.apache.fineract.commands.handler.NewCommandSourceHandler;
import org.apache.fineract.infrastructure.campaigns.email.service.EmailCampaignWritePlatformService;
import org.apache.fineract.infrastructure.core.api.JsonCommand;
import org.apache.fineract.infrastructure.core.data.CommandProcessingResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@CommandType(entity = "EMAIL_CAMPAIGN", action = "ACTIVATE")
@RequiredArgsConstructor
public class ActivateEmailCampaignCommandHandler implements NewCommandSourceHandler {

private EmailCampaignWritePlatformService emailCampaignWritePlatformService;

@Autowired
public ActivateEmailCampaignCommandHandler(final EmailCampaignWritePlatformService emailCampaignWritePlatformService) {
this.emailCampaignWritePlatformService = emailCampaignWritePlatformService;
}

@Transactional
@Override
public CommandProcessingResult processCommand(JsonCommand command) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,25 +18,21 @@
*/
package org.apache.fineract.infrastructure.campaigns.email.handler;

import lombok.RequiredArgsConstructor;
import org.apache.fineract.commands.annotation.CommandType;
import org.apache.fineract.commands.handler.NewCommandSourceHandler;
import org.apache.fineract.infrastructure.campaigns.email.service.EmailCampaignWritePlatformService;
import org.apache.fineract.infrastructure.core.api.JsonCommand;
import org.apache.fineract.infrastructure.core.data.CommandProcessingResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
@CommandType(entity = "EMAIL_CAMPAIGN", action = "CLOSE")
@RequiredArgsConstructor
public class CloseEmailCampaignCommandHandler implements NewCommandSourceHandler {

private final EmailCampaignWritePlatformService emailCampaignWritePlatformService;

@Autowired
public CloseEmailCampaignCommandHandler(final EmailCampaignWritePlatformService emailCampaignWritePlatformService) {
this.emailCampaignWritePlatformService = emailCampaignWritePlatformService;
}

@Override
public CommandProcessingResult processCommand(JsonCommand command) {
return this.emailCampaignWritePlatformService.closeEmailCampaign(command.entityId(), command);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,26 +18,22 @@
*/
package org.apache.fineract.infrastructure.campaigns.email.handler;

import lombok.RequiredArgsConstructor;
import org.apache.fineract.commands.annotation.CommandType;
import org.apache.fineract.commands.handler.NewCommandSourceHandler;
import org.apache.fineract.infrastructure.campaigns.email.service.EmailCampaignWritePlatformService;
import org.apache.fineract.infrastructure.core.api.JsonCommand;
import org.apache.fineract.infrastructure.core.data.CommandProcessingResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@CommandType(entity = "EMAIL_CAMPAIGN", action = "CREATE")
@RequiredArgsConstructor
public class CreateEmailCampaignCommandHandler implements NewCommandSourceHandler {

private EmailCampaignWritePlatformService emailCampaignWritePlatformService;

@Autowired
public CreateEmailCampaignCommandHandler(final EmailCampaignWritePlatformService emailCampaignWritePlatformService) {
this.emailCampaignWritePlatformService = emailCampaignWritePlatformService;
}

@Transactional
@Override
public CommandProcessingResult processCommand(JsonCommand command) {
Expand Down
Loading