Skip to content

Commit

Permalink
Initial Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
IOhacker committed Feb 23, 2024
1 parent 2945387 commit d884184
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
import org.springframework.security.authentication.AuthenticationServiceException;
import org.springframework.security.core.authority.SimpleGrantedAuthority;
import org.springframework.security.core.userdetails.User;
import org.apache.fineract.useradministration.service.SelfServiceAppUserReadPlatformService;
import org.apache.fineract.useradministration.service.AppUserReadPlatformService;

@RequiredArgsConstructor
public class SelfServiceRegistrationWritePlatformServiceImpl implements SelfServiceRegistrationWritePlatformService {
Expand All @@ -85,7 +85,7 @@ public class SelfServiceRegistrationWritePlatformServiceImpl implements SelfServ
private final SmsMessageRepository smsMessageRepository;
private final SmsMessageScheduledJobService smsMessageScheduledJobService;
private final SmsCampaignDropdownReadPlatformService smsCampaignDropdownReadPlatformService;
private final SelfServiceAppUserReadPlatformService appUserReadPlatformService;
private final AppUserReadPlatformService appUserReadPlatformService;
private final RoleRepository roleRepository;
private static final SecureRandom secureRandom = new SecureRandom();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.jdbc.core.JdbcTemplate;
import org.apache.fineract.useradministration.service.SelfServiceAppUserReadPlatformService;
import org.apache.fineract.useradministration.service.AppUserReadPlatformService;

@Configuration
public class SelfRegistrationConfiguration {
Expand All @@ -51,16 +51,21 @@ public SelfServiceRegistrationReadPlatformService selfServiceRegistrationReadPla
@ConditionalOnMissingBean(SelfServiceRegistrationWritePlatformService.class)
public SelfServiceRegistrationWritePlatformService selfServiceRegistrationWritePlatformService(

SelfServiceRegistrationRepository selfServiceRegistrationRepository, FromJsonHelper fromApiJsonHelper,
SelfServiceRegistrationReadPlatformService selfServiceRegistrationReadPlatformService, ClientRepositoryWrapper clientRepository,
PasswordValidationPolicyRepository passwordValidationPolicy, UserDomainService userDomainService,
GmailBackedPlatformEmailService gmailBackedPlatformEmailService, SmsMessageRepository smsMessageRepository,
SelfServiceRegistrationRepository selfServiceRegistrationRepository,
FromJsonHelper fromApiJsonHelper,
SelfServiceRegistrationReadPlatformService selfServiceRegistrationReadPlatformService,
ClientRepositoryWrapper clientRepository,
PasswordValidationPolicyRepository passwordValidationPolicy,
UserDomainService userDomainService,
GmailBackedPlatformEmailService gmailBackedPlatformEmailService,
SmsMessageRepository smsMessageRepository,
SmsMessageScheduledJobService smsMessageScheduledJobService,
SmsCampaignDropdownReadPlatformService smsCampaignDropdownReadPlatformService,
SelfServiceAppUserReadPlatformService appUserReadPlatformService, RoleRepository roleRepository) {
AppUserReadPlatformService selfServiceAppUserReadPlatformService,
RoleRepository roleRepository) {
return new SelfServiceRegistrationWritePlatformServiceImpl(selfServiceRegistrationRepository, fromApiJsonHelper,
selfServiceRegistrationReadPlatformService, clientRepository, passwordValidationPolicy, userDomainService,
gmailBackedPlatformEmailService, smsMessageRepository, smsMessageScheduledJobService,
smsCampaignDropdownReadPlatformService, appUserReadPlatformService, roleRepository);
smsCampaignDropdownReadPlatformService, selfServiceAppUserReadPlatformService, roleRepository);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
import java.util.Collection;
import org.apache.fineract.useradministration.data.AppUserData;

public interface SelfServiceAppUserReadPlatformService {
public interface AppUserReadPlatformService {

Collection<AppUserData> retrieveAllUsers();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
import org.springframework.jdbc.core.RowMapper;

@RequiredArgsConstructor
public class SelfServiceAppUserReadPlatformServiceImpl implements SelfServiceAppUserReadPlatformService {
public class AppUserReadPlatformServiceImpl implements AppUserReadPlatformService {

private final PlatformSecurityContext context;
private final JdbcTemplate jdbcTemplate;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
import java.util.Collection;
import org.apache.fineract.useradministration.data.RoleData;

public interface SelfServiceRoleReadPlatformService {
public interface RoleReadPlatformService {

Collection<RoleData> retrieveAll();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.jdbc.core.RowMapper;

public class SelfServiceRoleReadPlatformServiceImpl implements SelfServiceRoleReadPlatformService {
public class RoleReadPlatformServiceImpl implements RoleReadPlatformService {

private final JdbcTemplate jdbcTemplate;
private final RoleMapper roleRowMapper;

public SelfServiceRoleReadPlatformServiceImpl(final JdbcTemplate jdbcTemplate) {
public RoleReadPlatformServiceImpl(final JdbcTemplate jdbcTemplate) {
this.jdbcTemplate = jdbcTemplate;
this.roleRowMapper = new RoleMapper();
}
Expand Down

0 comments on commit d884184

Please sign in to comment.