FINERACT-821 Added and Enforced ModifierOrder Checkstyle
This commit is contained in:
committed by
Michael Vorburger ⛑️
parent
9a487a060b
commit
2323450e71
+1
-1
@@ -47,7 +47,7 @@ import org.springframework.transaction.annotation.Transactional;
|
||||
@Service
|
||||
public class GLClosureWritePlatformServiceJpaRepositoryImpl implements GLClosureWritePlatformService {
|
||||
|
||||
private final static Logger LOG = LoggerFactory.getLogger(GLClosureWritePlatformServiceJpaRepositoryImpl.class);
|
||||
private static final Logger LOG = LoggerFactory.getLogger(GLClosureWritePlatformServiceJpaRepositoryImpl.class);
|
||||
|
||||
private final GLClosureRepository glClosureRepository;
|
||||
private final OfficeRepositoryWrapper officeRepositoryWrapper;
|
||||
|
||||
+1
-1
@@ -26,7 +26,7 @@ import org.apache.fineract.infrastructure.core.exception.AbstractPlatformDomainR
|
||||
*/
|
||||
public class DuplicateFinancialActivityAccountFoundException extends AbstractPlatformDomainRuleException {
|
||||
|
||||
private final static String errorCode = "error.msg.financialActivityAccount.exists";
|
||||
private static final String errorCode = "error.msg.financialActivityAccount.exists";
|
||||
|
||||
public DuplicateFinancialActivityAccountFoundException(final Integer financialActivityType) {
|
||||
super(errorCode, "Mapping for activity already exists " + financialActivityType, financialActivityType);
|
||||
|
||||
+1
-1
@@ -28,7 +28,7 @@ import org.apache.fineract.infrastructure.core.exception.AbstractPlatformDomainR
|
||||
*/
|
||||
public class FinancialActivityAccountInvalidException extends AbstractPlatformDomainRuleException {
|
||||
|
||||
private final static String errorCode = "error.msg.financialActivityAccount.invalid";
|
||||
private static final String errorCode = "error.msg.financialActivityAccount.invalid";
|
||||
|
||||
public FinancialActivityAccountInvalidException(final FinancialActivity financialActivity, final GLAccount glAccount) {
|
||||
super(errorCode,
|
||||
|
||||
+1
-1
@@ -47,7 +47,7 @@ public class FinancialActivityAccountWritePlatformServiceImpl implements Financi
|
||||
private final FinancialActivityAccountRepositoryWrapper financialActivityAccountRepository;
|
||||
private final FinancialActivityAccountDataValidator fromApiJsonDeserializer;
|
||||
private final GLAccountRepositoryWrapper glAccountRepositoryWrapper;
|
||||
private final static Logger LOG = LoggerFactory.getLogger(FinancialActivityAccountWritePlatformServiceImpl.class);
|
||||
private static final Logger LOG = LoggerFactory.getLogger(FinancialActivityAccountWritePlatformServiceImpl.class);
|
||||
|
||||
@Autowired
|
||||
public FinancialActivityAccountWritePlatformServiceImpl(
|
||||
|
||||
+1
-1
@@ -45,7 +45,7 @@ import org.springframework.stereotype.Service;
|
||||
public class GLAccountReadPlatformServiceImpl implements GLAccountReadPlatformService {
|
||||
|
||||
private final JdbcTemplate jdbcTemplate;
|
||||
private final static String nameDecoratedBaseOnHierarchy = "concat(substring('........................................', 1, ((LENGTH(hierarchy) - LENGTH(REPLACE(hierarchy, '.', '')) - 1) * 4)), name)";
|
||||
private static final String nameDecoratedBaseOnHierarchy = "concat(substring('........................................', 1, ((LENGTH(hierarchy) - LENGTH(REPLACE(hierarchy, '.', '')) - 1) * 4)), name)";
|
||||
|
||||
@Autowired
|
||||
public GLAccountReadPlatformServiceImpl(final RoutingDataSource dataSource) {
|
||||
|
||||
+1
-1
@@ -57,7 +57,7 @@ import org.springframework.transaction.annotation.Transactional;
|
||||
@Service
|
||||
public class GLAccountWritePlatformServiceJpaRepositoryImpl implements GLAccountWritePlatformService {
|
||||
|
||||
private final static Logger LOG = LoggerFactory.getLogger(GLAccountWritePlatformServiceJpaRepositoryImpl.class);
|
||||
private static final Logger LOG = LoggerFactory.getLogger(GLAccountWritePlatformServiceJpaRepositoryImpl.class);
|
||||
|
||||
private final GLAccountRepository glAccountRepository;
|
||||
private final JournalEntryRepository glJournalEntryRepository;
|
||||
|
||||
+1
-1
@@ -53,7 +53,7 @@ import org.springframework.stereotype.Service;
|
||||
@Service
|
||||
public class JournalEntryRunningBalanceUpdateServiceImpl implements JournalEntryRunningBalanceUpdateService {
|
||||
|
||||
private final static Logger LOG = LoggerFactory.getLogger(JournalEntryRunningBalanceUpdateServiceImpl.class);
|
||||
private static final Logger LOG = LoggerFactory.getLogger(JournalEntryRunningBalanceUpdateServiceImpl.class);
|
||||
|
||||
private final JdbcTemplate jdbcTemplate;
|
||||
|
||||
|
||||
+1
-1
@@ -88,7 +88,7 @@ import org.springframework.util.CollectionUtils;
|
||||
@Service
|
||||
public class JournalEntryWritePlatformServiceJpaRepositoryImpl implements JournalEntryWritePlatformService {
|
||||
|
||||
private final static Logger LOG = LoggerFactory.getLogger(JournalEntryWritePlatformServiceJpaRepositoryImpl.class);
|
||||
private static final Logger LOG = LoggerFactory.getLogger(JournalEntryWritePlatformServiceJpaRepositoryImpl.class);
|
||||
|
||||
private final GLClosureRepository glClosureRepository;
|
||||
private final GLAccountRepository glAccountRepository;
|
||||
|
||||
+6
-6
@@ -20,16 +20,16 @@ package org.apache.fineract.accounting.provisioning.constant;
|
||||
|
||||
public interface ProvisioningEntriesApiConstants {
|
||||
|
||||
public final static String JSON_DATE_PARAM = "date";
|
||||
public static final String JSON_DATE_PARAM = "date";
|
||||
|
||||
public final static String JSON_DATEFORMAT_PARAM = "dateFormat";
|
||||
public static final String JSON_DATEFORMAT_PARAM = "dateFormat";
|
||||
|
||||
public final static String JSON_LOCALE_PARAM = "locale";
|
||||
public static final String JSON_LOCALE_PARAM = "locale";
|
||||
|
||||
public final static String JSON_CREATEJOURNALENTRIES_PARAM = "createjournalentries";
|
||||
public static final String JSON_CREATEJOURNALENTRIES_PARAM = "createjournalentries";
|
||||
|
||||
public final static String PROVISIONINGENTRY_PARAM = "provisioningentry";
|
||||
public static final String PROVISIONINGENTRY_PARAM = "provisioningentry";
|
||||
|
||||
public final static String ENTRIES_PARAM = "entries";
|
||||
public static final String ENTRIES_PARAM = "entries";
|
||||
|
||||
}
|
||||
|
||||
+1
-1
@@ -43,7 +43,7 @@ import org.springframework.stereotype.Service;
|
||||
@Service
|
||||
public class ProvisioningEntriesReadPlatformServiceImpl implements ProvisioningEntriesReadPlatformService {
|
||||
|
||||
private final static Logger LOG = LoggerFactory.getLogger(ProvisioningEntriesReadPlatformServiceImpl.class);
|
||||
private static final Logger LOG = LoggerFactory.getLogger(ProvisioningEntriesReadPlatformServiceImpl.class);
|
||||
private final JdbcTemplate jdbcTemplate;
|
||||
|
||||
private final PaginationHelper<LoanProductProvisioningEntryData> loanProductProvisioningEntryDataPaginationHelper = new PaginationHelper<>();
|
||||
|
||||
+1
-1
@@ -68,7 +68,7 @@ import org.springframework.stereotype.Service;
|
||||
@Service
|
||||
public class ProvisioningEntriesWritePlatformServiceJpaRepositoryImpl implements ProvisioningEntriesWritePlatformService {
|
||||
|
||||
private final static Logger LOG = LoggerFactory.getLogger(ProvisioningEntriesWritePlatformServiceJpaRepositoryImpl.class);
|
||||
private static final Logger LOG = LoggerFactory.getLogger(ProvisioningEntriesWritePlatformServiceJpaRepositoryImpl.class);
|
||||
private final ProvisioningEntriesReadPlatformService provisioningEntriesReadPlatformService;
|
||||
private final ProvisioningCriteriaReadPlatformService provisioningCriteriaReadPlatformService;
|
||||
private final LoanProductRepository loanProductRepository;
|
||||
|
||||
+1
-1
@@ -57,7 +57,7 @@ import org.springframework.transaction.annotation.Transactional;
|
||||
@Service
|
||||
public class AccountingRuleWritePlatformServiceJpaRepositoryImpl implements AccountingRuleWritePlatformService {
|
||||
|
||||
private final static Logger LOG = LoggerFactory.getLogger(AccountingRuleWritePlatformServiceJpaRepositoryImpl.class);
|
||||
private static final Logger LOG = LoggerFactory.getLogger(AccountingRuleWritePlatformServiceJpaRepositoryImpl.class);
|
||||
|
||||
private final AccountingRuleRepositoryWrapper accountingRuleRepositoryWrapper;
|
||||
private final AccountingRuleRepository accountingRuleRepository;
|
||||
|
||||
+1
-1
@@ -41,7 +41,7 @@ import org.springframework.transaction.annotation.Transactional;
|
||||
@Service(value = "adHocScheduledJobRunnerService")
|
||||
public class AdHocScheduledJobRunnerServiceImpl implements AdHocScheduledJobRunnerService {
|
||||
|
||||
private final static Logger LOG = LoggerFactory.getLogger(AdHocScheduledJobRunnerServiceImpl.class);
|
||||
private static final Logger LOG = LoggerFactory.getLogger(AdHocScheduledJobRunnerServiceImpl.class);
|
||||
private final AdHocReadPlatformService adHocReadPlatformService;
|
||||
private final JdbcTemplate jdbcTemplate;
|
||||
|
||||
|
||||
+1
-1
@@ -37,7 +37,7 @@ import org.springframework.transaction.annotation.Transactional;
|
||||
@Service
|
||||
public class AdHocWritePlatformServiceJpaRepositoryImpl implements AdHocWritePlatformService {
|
||||
|
||||
private final static Logger LOG = LoggerFactory.getLogger(AdHocWritePlatformServiceJpaRepositoryImpl.class);
|
||||
private static final Logger LOG = LoggerFactory.getLogger(AdHocWritePlatformServiceJpaRepositoryImpl.class);
|
||||
private final PlatformSecurityContext context;
|
||||
private final AdHocRepository adHocRepository;
|
||||
private final AdHocDataValidator adHocCommandFromApiJsonDeserializer;
|
||||
|
||||
+2
-2
@@ -74,8 +74,8 @@ import org.springframework.stereotype.Service;
|
||||
@Service
|
||||
public class AuditReadPlatformServiceImpl implements AuditReadPlatformService {
|
||||
|
||||
private final static Logger LOG = LoggerFactory.getLogger(AuditReadPlatformServiceImpl.class);
|
||||
private final static Set<String> supportedOrderByValues = new HashSet<>(
|
||||
private static final Logger LOG = LoggerFactory.getLogger(AuditReadPlatformServiceImpl.class);
|
||||
private static final Set<String> supportedOrderByValues = new HashSet<>(
|
||||
Arrays.asList("id", "actionName", "entityName", "resourceId", "subresourceId", "madeOnDate", "checkedOnDate", "officeName",
|
||||
"groupName", "clientName", "loanAccountNo", "savingsAccountNo", "clientId", "loanId"));
|
||||
|
||||
|
||||
+1
-1
@@ -50,7 +50,7 @@ public class PortfolioCommandSourceWritePlatformServiceImpl implements Portfolio
|
||||
private final FromJsonHelper fromApiJsonHelper;
|
||||
private final CommandProcessingService processAndLogCommandService;
|
||||
private final SchedulerJobRunnerReadService schedulerJobRunnerReadService;
|
||||
private final static Logger LOG = LoggerFactory.getLogger(PortfolioCommandSourceWritePlatformServiceImpl.class);
|
||||
private static final Logger LOG = LoggerFactory.getLogger(PortfolioCommandSourceWritePlatformServiceImpl.class);
|
||||
|
||||
@Autowired
|
||||
public PortfolioCommandSourceWritePlatformServiceImpl(final PlatformSecurityContext context,
|
||||
|
||||
+5
-5
@@ -30,19 +30,19 @@ import org.apache.fineract.infrastructure.core.data.EnumOptionData;
|
||||
|
||||
public class AccountNumberFormatEnumerations {
|
||||
|
||||
public final static Set<AccountNumberPrefixType> accountNumberPrefixesForClientAccounts = Collections
|
||||
public static final Set<AccountNumberPrefixType> accountNumberPrefixesForClientAccounts = Collections
|
||||
.unmodifiableSet(new HashSet<>(Arrays.asList(AccountNumberPrefixType.OFFICE_NAME, AccountNumberPrefixType.CLIENT_TYPE)));
|
||||
|
||||
public final static Set<AccountNumberPrefixType> accountNumberPrefixesForLoanAccounts = Collections.unmodifiableSet(
|
||||
public static final Set<AccountNumberPrefixType> accountNumberPrefixesForLoanAccounts = Collections.unmodifiableSet(
|
||||
new HashSet<>(Arrays.asList(AccountNumberPrefixType.OFFICE_NAME, AccountNumberPrefixType.LOAN_PRODUCT_SHORT_NAME)));
|
||||
|
||||
public final static Set<AccountNumberPrefixType> accountNumberPrefixesForSavingsAccounts = Collections.unmodifiableSet(
|
||||
public static final Set<AccountNumberPrefixType> accountNumberPrefixesForSavingsAccounts = Collections.unmodifiableSet(
|
||||
new HashSet<>(Arrays.asList(AccountNumberPrefixType.OFFICE_NAME, AccountNumberPrefixType.SAVINGS_PRODUCT_SHORT_NAME)));
|
||||
|
||||
public final static Set<AccountNumberPrefixType> accountNumberPrefixesForCenters = Collections
|
||||
public static final Set<AccountNumberPrefixType> accountNumberPrefixesForCenters = Collections
|
||||
.unmodifiableSet(new HashSet<>(Collections.singletonList(AccountNumberPrefixType.OFFICE_NAME)));
|
||||
|
||||
public final static Set<AccountNumberPrefixType> accountNumberPrefixesForGroups = Collections
|
||||
public static final Set<AccountNumberPrefixType> accountNumberPrefixesForGroups = Collections
|
||||
.unmodifiableSet(new HashSet<>(Collections.singletonList(AccountNumberPrefixType.OFFICE_NAME)));
|
||||
|
||||
public enum AccountNumberPrefixType {
|
||||
|
||||
+1
-1
@@ -41,7 +41,7 @@ import org.springframework.transaction.annotation.Transactional;
|
||||
@Service
|
||||
public class AccountNumberFormatWritePlatformServiceJpaRepositoryImpl implements AccountNumberFormatWritePlatformService {
|
||||
|
||||
private final static Logger LOG = LoggerFactory.getLogger(AccountNumberFormatWritePlatformServiceJpaRepositoryImpl.class);
|
||||
private static final Logger LOG = LoggerFactory.getLogger(AccountNumberFormatWritePlatformServiceJpaRepositoryImpl.class);
|
||||
private final AccountNumberFormatRepositoryWrapper accountNumberFormatRepository;
|
||||
private final AccountNumberFormatDataValidator accountNumberFormatDataValidator;
|
||||
|
||||
|
||||
+15
-15
@@ -21,10 +21,10 @@ package org.apache.fineract.infrastructure.bulkimport.constants;
|
||||
public class TemplatePopulateImportConstants {
|
||||
|
||||
// columns sizes
|
||||
public final static int SMALL_COL_SIZE = 4000;
|
||||
public final static int MEDIUM_COL_SIZE = 6000;
|
||||
public final static int LARGE_COL_SIZE = 8000;
|
||||
public final static int EXTRALARGE_COL_SIZE = 10000;
|
||||
public static final int SMALL_COL_SIZE = 4000;
|
||||
public static final int MEDIUM_COL_SIZE = 6000;
|
||||
public static final int LARGE_COL_SIZE = 8000;
|
||||
public static final int EXTRALARGE_COL_SIZE = 10000;
|
||||
|
||||
// Sheet names
|
||||
public static final String OFFICE_SHEET_NAME = "Offices";
|
||||
@@ -53,19 +53,19 @@ public class TemplatePopulateImportConstants {
|
||||
public static final String ROLES_SHEET_NAME = "Roles";
|
||||
public static final String USER_SHEET_NAME = "Users";
|
||||
|
||||
public final static int ROWHEADER_INDEX = 0;
|
||||
public final static short ROW_HEADER_HEIGHT = 500;
|
||||
public final static int FIRST_COLUMN_INDEX = 0;
|
||||
public static final int ROWHEADER_INDEX = 0;
|
||||
public static final short ROW_HEADER_HEIGHT = 500;
|
||||
public static final int FIRST_COLUMN_INDEX = 0;
|
||||
|
||||
// Status column
|
||||
public final static String STATUS_CELL_IMPORTED = "Imported";
|
||||
public final static String STATUS_CREATION_FAILED = "Creation failed";
|
||||
public final static String STATUS_APPROVAL_FAILED = "Approval failed";
|
||||
public final static String STATUS_ACTIVATION_FAILED = "Activation failed";
|
||||
public final static String STATUS_MEETING_FAILED = "Meeting failed";
|
||||
public final static String STATUS_DISBURSAL_FAILED = "Disbursal failed";
|
||||
public final static String STATUS_DISBURSAL_REPAYMENT_FAILED = "Repayment failed";
|
||||
public final static String STATUS_COLUMN_HEADER = "Status";
|
||||
public static final String STATUS_CELL_IMPORTED = "Imported";
|
||||
public static final String STATUS_CREATION_FAILED = "Creation failed";
|
||||
public static final String STATUS_APPROVAL_FAILED = "Approval failed";
|
||||
public static final String STATUS_ACTIVATION_FAILED = "Activation failed";
|
||||
public static final String STATUS_MEETING_FAILED = "Meeting failed";
|
||||
public static final String STATUS_DISBURSAL_FAILED = "Disbursal failed";
|
||||
public static final String STATUS_DISBURSAL_REPAYMENT_FAILED = "Repayment failed";
|
||||
public static final String STATUS_COLUMN_HEADER = "Status";
|
||||
|
||||
// Frequency Calender
|
||||
public static final String FREQUENCY_DAILY = "Daily";
|
||||
|
||||
+1
-1
@@ -54,7 +54,7 @@ import org.springframework.stereotype.Service;
|
||||
@Service
|
||||
public class CenterImportHandler implements ImportHandler {
|
||||
|
||||
private final static Logger LOG = LoggerFactory.getLogger(CenterImportHandler.class);
|
||||
private static final Logger LOG = LoggerFactory.getLogger(CenterImportHandler.class);
|
||||
private List<CenterData> centers;
|
||||
private List<CalendarData> meetings;
|
||||
private List<String> statuses;
|
||||
|
||||
+1
-1
@@ -50,7 +50,7 @@ import org.springframework.stereotype.Service;
|
||||
@Service
|
||||
public class ChartOfAccountsImportHandler implements ImportHandler {
|
||||
|
||||
private final static Logger LOG = LoggerFactory.getLogger(ChartOfAccountsImportHandler.class);
|
||||
private static final Logger LOG = LoggerFactory.getLogger(ChartOfAccountsImportHandler.class);
|
||||
private List<GLAccountData> glAccounts;
|
||||
private Workbook workbook;
|
||||
|
||||
|
||||
+1
-1
@@ -51,7 +51,7 @@ import org.springframework.stereotype.Service;
|
||||
@Service
|
||||
public class ClientEntityImportHandler implements ImportHandler {
|
||||
|
||||
private final static Logger LOG = LoggerFactory.getLogger(ClientEntityImportHandler.class);
|
||||
private static final Logger LOG = LoggerFactory.getLogger(ClientEntityImportHandler.class);
|
||||
private Workbook workbook;
|
||||
private List<ClientData> clients;
|
||||
|
||||
|
||||
+1
-1
@@ -49,7 +49,7 @@ import org.springframework.stereotype.Service;
|
||||
@Service
|
||||
public class ClientPersonImportHandler implements ImportHandler {
|
||||
|
||||
private final static Logger LOG = LoggerFactory.getLogger(ClientPersonImportHandler.class);
|
||||
private static final Logger LOG = LoggerFactory.getLogger(ClientPersonImportHandler.class);
|
||||
private Workbook workbook;
|
||||
private List<ClientData> clients;
|
||||
|
||||
|
||||
+1
-1
@@ -56,7 +56,7 @@ import org.springframework.stereotype.Service;
|
||||
@Service
|
||||
public class FixedDepositImportHandler implements ImportHandler {
|
||||
|
||||
private final static Logger LOG = LoggerFactory.getLogger(FixedDepositImportHandler.class);
|
||||
private static final Logger LOG = LoggerFactory.getLogger(FixedDepositImportHandler.class);
|
||||
private Workbook workbook;
|
||||
|
||||
private List<FixedDepositAccountData> savings;
|
||||
|
||||
+1
-1
@@ -50,7 +50,7 @@ import org.springframework.stereotype.Service;
|
||||
@Service
|
||||
public class FixedDepositTransactionImportHandler implements ImportHandler {
|
||||
|
||||
private final static Logger LOG = LoggerFactory.getLogger(FixedDepositTransactionImportHandler.class);
|
||||
private static final Logger LOG = LoggerFactory.getLogger(FixedDepositTransactionImportHandler.class);
|
||||
private Workbook workbook;
|
||||
private List<SavingsAccountTransactionData> savingsTransactions;
|
||||
private String savingsAccountId = "";
|
||||
|
||||
+1
-1
@@ -54,7 +54,7 @@ import org.springframework.stereotype.Service;
|
||||
@Service
|
||||
public class GroupImportHandler implements ImportHandler {
|
||||
|
||||
private final static Logger LOG = LoggerFactory.getLogger(GroupImportHandler.class);
|
||||
private static final Logger LOG = LoggerFactory.getLogger(GroupImportHandler.class);
|
||||
private List<GroupGeneralData> groups;
|
||||
private List<CalendarData> meetings;
|
||||
private Workbook workbook;
|
||||
|
||||
+1
-1
@@ -49,7 +49,7 @@ import org.springframework.stereotype.Service;
|
||||
@Service
|
||||
public class GuarantorImportHandler implements ImportHandler {
|
||||
|
||||
private final static Logger LOG = LoggerFactory.getLogger(GuarantorImportHandler.class);
|
||||
private static final Logger LOG = LoggerFactory.getLogger(GuarantorImportHandler.class);
|
||||
private Workbook workbook;
|
||||
private List<GuarantorData> guarantors;
|
||||
private Long loanAccountId;
|
||||
|
||||
+1
-1
@@ -50,7 +50,7 @@ import org.springframework.stereotype.Service;
|
||||
@Service
|
||||
public class JournalEntriesImportHandler implements ImportHandler {
|
||||
|
||||
private final static Logger LOG = LoggerFactory.getLogger(JournalEntriesImportHandler.class);
|
||||
private static final Logger LOG = LoggerFactory.getLogger(JournalEntriesImportHandler.class);
|
||||
private Workbook workbook;
|
||||
private List<JournalEntryData> gltransaction;
|
||||
private LocalDate transactionDate;
|
||||
|
||||
+1
-1
@@ -57,7 +57,7 @@ import org.springframework.stereotype.Service;
|
||||
@Service
|
||||
public class LoanImportHandler implements ImportHandler {
|
||||
|
||||
private final static Logger LOG = LoggerFactory.getLogger(LoanImportHandler.class);
|
||||
private static final Logger LOG = LoggerFactory.getLogger(LoanImportHandler.class);
|
||||
private Workbook workbook;
|
||||
private List<LoanAccountData> loans;
|
||||
private List<LoanApprovalData> approvalDates;
|
||||
|
||||
+1
-1
@@ -49,7 +49,7 @@ import org.springframework.stereotype.Service;
|
||||
@Service
|
||||
public class LoanRepaymentImportHandler implements ImportHandler {
|
||||
|
||||
private final static Logger LOG = LoggerFactory.getLogger(LoanRepaymentImportHandler.class);
|
||||
private static final Logger LOG = LoggerFactory.getLogger(LoanRepaymentImportHandler.class);
|
||||
private Workbook workbook;
|
||||
private List<LoanTransactionData> loanRepayments;
|
||||
private Long loanAccountId;
|
||||
|
||||
+1
-1
@@ -46,7 +46,7 @@ import org.springframework.stereotype.Service;
|
||||
@Service
|
||||
public class OfficeImportHandler implements ImportHandler {
|
||||
|
||||
private final static Logger LOG = LoggerFactory.getLogger(OfficeImportHandler.class);
|
||||
private static final Logger LOG = LoggerFactory.getLogger(OfficeImportHandler.class);
|
||||
private List<OfficeData> offices;
|
||||
private Workbook workbook;
|
||||
private final PortfolioCommandSourceWritePlatformService commandsSourceWritePlatformService;
|
||||
|
||||
+1
-1
@@ -53,7 +53,7 @@ import org.springframework.stereotype.Service;
|
||||
@Service
|
||||
public class RecurringDepositImportHandler implements ImportHandler {
|
||||
|
||||
private final static Logger LOG = LoggerFactory.getLogger(RecurringDepositImportHandler.class);
|
||||
private static final Logger LOG = LoggerFactory.getLogger(RecurringDepositImportHandler.class);
|
||||
private Workbook workbook;
|
||||
private List<RecurringDepositAccountData> savings;
|
||||
private List<SavingsApproval> approvalDates;
|
||||
|
||||
+1
-1
@@ -51,7 +51,7 @@ import org.springframework.stereotype.Service;
|
||||
@Service
|
||||
public class RecurringDepositTransactionImportHandler implements ImportHandler {
|
||||
|
||||
private final static Logger LOG = LoggerFactory.getLogger(RecurringDepositTransactionImportHandler.class);
|
||||
private static final Logger LOG = LoggerFactory.getLogger(RecurringDepositTransactionImportHandler.class);
|
||||
private Workbook workbook;
|
||||
private List<SavingsAccountTransactionData> savingsTransactions;
|
||||
private String savingsAccountId = "";
|
||||
|
||||
+1
-1
@@ -54,7 +54,7 @@ import org.springframework.stereotype.Service;
|
||||
@Service
|
||||
public class SavingsImportHandler implements ImportHandler {
|
||||
|
||||
private final static Logger LOG = LoggerFactory.getLogger(SavingsImportHandler.class);
|
||||
private static final Logger LOG = LoggerFactory.getLogger(SavingsImportHandler.class);
|
||||
private Workbook workbook;
|
||||
private List<SavingsAccountData> savings;
|
||||
private List<SavingsApproval> approvalDates;
|
||||
|
||||
+1
-1
@@ -50,7 +50,7 @@ import org.springframework.stereotype.Service;
|
||||
@Service
|
||||
public class SavingsTransactionImportHandler implements ImportHandler {
|
||||
|
||||
private final static Logger LOG = LoggerFactory.getLogger(SavingsTransactionImportHandler.class);
|
||||
private static final Logger LOG = LoggerFactory.getLogger(SavingsTransactionImportHandler.class);
|
||||
private Workbook workbook;
|
||||
private List<SavingsAccountTransactionData> savingsTransactions;
|
||||
private String savingsAccountId = "";
|
||||
|
||||
+1
-1
@@ -48,7 +48,7 @@ import org.springframework.stereotype.Service;
|
||||
@Service
|
||||
public class SharedAccountImportHandler implements ImportHandler {
|
||||
|
||||
private final static Logger LOG = LoggerFactory.getLogger(SharedAccountImportHandler.class);
|
||||
private static final Logger LOG = LoggerFactory.getLogger(SharedAccountImportHandler.class);
|
||||
private Workbook workbook;
|
||||
private List<ShareAccountData> shareAccountDataList;
|
||||
private List<String> statuses;
|
||||
|
||||
+1
-1
@@ -46,7 +46,7 @@ import org.springframework.stereotype.Service;
|
||||
@Service
|
||||
public class StaffImportHandler implements ImportHandler {
|
||||
|
||||
private final static Logger LOG = LoggerFactory.getLogger(StaffImportHandler.class);
|
||||
private static final Logger LOG = LoggerFactory.getLogger(StaffImportHandler.class);
|
||||
private List<StaffData> staffList;
|
||||
private Workbook workbook;
|
||||
|
||||
|
||||
+1
-1
@@ -45,7 +45,7 @@ import org.springframework.stereotype.Service;
|
||||
@Service
|
||||
public class UserImportHandler implements ImportHandler {
|
||||
|
||||
private final static Logger LOG = LoggerFactory.getLogger(UserImportHandler.class);
|
||||
private static final Logger LOG = LoggerFactory.getLogger(UserImportHandler.class);
|
||||
private Workbook workbook;
|
||||
private List<AppUserData> users;
|
||||
private List<String> statuses;
|
||||
|
||||
+1
-1
@@ -36,7 +36,7 @@ import org.slf4j.LoggerFactory;
|
||||
|
||||
public abstract class AbstractWorkbookPopulator implements WorkbookPopulator {
|
||||
|
||||
private final static Logger LOG = LoggerFactory.getLogger(AbstractWorkbookPopulator.class);
|
||||
private static final Logger LOG = LoggerFactory.getLogger(AbstractWorkbookPopulator.class);
|
||||
|
||||
protected void writeInt(int colIndex, Row row, int value) {
|
||||
row.createCell(colIndex).setCellValue(value);
|
||||
|
||||
+1
-1
@@ -45,7 +45,7 @@ import org.slf4j.LoggerFactory;
|
||||
|
||||
public class ChartOfAccountsWorkbook extends AbstractWorkbookPopulator {
|
||||
|
||||
private final static Logger LOG = LoggerFactory.getLogger(ChartOfAccountsWorkbook.class);
|
||||
private static final Logger LOG = LoggerFactory.getLogger(ChartOfAccountsWorkbook.class);
|
||||
private List<GLAccountData> glAccounts;
|
||||
private Map<String, List<String>> accountTypeToAccountNameAndTag;
|
||||
private Map<Integer, Integer[]> accountTypeToBeginEndIndexesofAccountNames;
|
||||
|
||||
+1
-1
@@ -44,7 +44,7 @@ import org.slf4j.LoggerFactory;
|
||||
|
||||
public class FixedDepositWorkbookPopulator extends AbstractWorkbookPopulator {
|
||||
|
||||
private final static Logger LOG = LoggerFactory.getLogger(FixedDepositWorkbookPopulator.class);
|
||||
private static final Logger LOG = LoggerFactory.getLogger(FixedDepositWorkbookPopulator.class);
|
||||
private OfficeSheetPopulator officeSheetPopulator;
|
||||
private ClientSheetPopulator clientSheetPopulator;
|
||||
private PersonnelSheetPopulator personnelSheetPopulator;
|
||||
|
||||
+1
-1
@@ -52,7 +52,7 @@ import org.slf4j.LoggerFactory;
|
||||
|
||||
public class LoanRepaymentWorkbookPopulator extends AbstractWorkbookPopulator {
|
||||
|
||||
private final static Logger LOG = LoggerFactory.getLogger(LoanRepaymentWorkbookPopulator.class);
|
||||
private static final Logger LOG = LoggerFactory.getLogger(LoanRepaymentWorkbookPopulator.class);
|
||||
private OfficeSheetPopulator officeSheetPopulator;
|
||||
private ClientSheetPopulator clientSheetPopulator;
|
||||
private ExtrasSheetPopulator extrasSheetPopulator;
|
||||
|
||||
+1
-1
@@ -49,7 +49,7 @@ import org.springframework.stereotype.Service;
|
||||
@Service
|
||||
public class BulkImportEventListener implements ApplicationListener<BulkImportEvent> {
|
||||
|
||||
private final static Logger LOG = LoggerFactory.getLogger(BulkImportEventListener.class);
|
||||
private static final Logger LOG = LoggerFactory.getLogger(BulkImportEventListener.class);
|
||||
private final TenantDetailsService tenantDetailsService;
|
||||
private final ApplicationContext applicationContext;
|
||||
private final ImportDocumentRepository importRepository;
|
||||
|
||||
+1
-1
@@ -115,7 +115,7 @@ import org.springframework.stereotype.Service;
|
||||
@Service
|
||||
public class BulkImportWorkbookPopulatorServiceImpl implements BulkImportWorkbookPopulatorService {
|
||||
|
||||
private final static Logger LOG = LoggerFactory.getLogger(BulkImportWorkbookPopulatorServiceImpl.class);
|
||||
private static final Logger LOG = LoggerFactory.getLogger(BulkImportWorkbookPopulatorServiceImpl.class);
|
||||
private final PlatformSecurityContext context;
|
||||
private final OfficeReadPlatformService officeReadPlatformService;
|
||||
private final StaffReadPlatformService staffReadPlatformService;
|
||||
|
||||
+1
-1
@@ -63,7 +63,7 @@ import org.springframework.stereotype.Service;
|
||||
@Service
|
||||
public class BulkImportWorkbookServiceImpl implements BulkImportWorkbookService {
|
||||
|
||||
private final static Logger LOG = LoggerFactory.getLogger(BulkImportWorkbookServiceImpl.class);
|
||||
private static final Logger LOG = LoggerFactory.getLogger(BulkImportWorkbookServiceImpl.class);
|
||||
private final ApplicationContext applicationContext;
|
||||
private final PlatformSecurityContext securityContext;
|
||||
private final DocumentWritePlatformService documentWritePlatformService;
|
||||
|
||||
+1
-1
@@ -99,7 +99,7 @@ import org.springframework.transaction.annotation.Transactional;
|
||||
@Service
|
||||
public class EmailCampaignWritePlatformCommandHandlerImpl implements EmailCampaignWritePlatformService {
|
||||
|
||||
private final static Logger LOG = LoggerFactory.getLogger(EmailCampaignWritePlatformCommandHandlerImpl.class);
|
||||
private static final Logger LOG = LoggerFactory.getLogger(EmailCampaignWritePlatformCommandHandlerImpl.class);
|
||||
|
||||
private final PlatformSecurityContext context;
|
||||
|
||||
|
||||
+1
-1
@@ -37,7 +37,7 @@ import org.springframework.stereotype.Service;
|
||||
@Service
|
||||
public final class EmailMessageJobEmailServiceImpl implements EmailMessageJobEmailService {
|
||||
|
||||
private final static Logger LOG = LoggerFactory.getLogger(EmailMessageJobEmailServiceImpl.class);
|
||||
private static final Logger LOG = LoggerFactory.getLogger(EmailMessageJobEmailServiceImpl.class);
|
||||
private EmailConfigurationRepository emailConfigurationRepository;
|
||||
|
||||
@Autowired
|
||||
|
||||
+1
-1
@@ -37,7 +37,7 @@ import org.springframework.transaction.annotation.Transactional;
|
||||
@Service
|
||||
public class EmailWritePlatformServiceJpaRepositoryImpl implements EmailWritePlatformService {
|
||||
|
||||
private final static Logger LOG = LoggerFactory.getLogger(EmailWritePlatformServiceJpaRepositoryImpl.class);
|
||||
private static final Logger LOG = LoggerFactory.getLogger(EmailWritePlatformServiceJpaRepositoryImpl.class);
|
||||
|
||||
private final EmailMessageAssembler assembler;
|
||||
private final EmailMessageRepository repository;
|
||||
|
||||
+1
-1
@@ -66,7 +66,7 @@ public class SmsCampaignDomainServiceImpl implements SmsCampaignDomainService {
|
||||
|
||||
private static final Logger LOG = LoggerFactory.getLogger(SmsCampaignDomainServiceImpl.class);
|
||||
|
||||
// private final static int POOL_SIZE = 5 ;
|
||||
// private static final int POOL_SIZE = 5 ;
|
||||
|
||||
private final SmsCampaignRepository smsCampaignRepository;
|
||||
private final SmsMessageRepository smsMessageRepository;
|
||||
|
||||
+1
-1
@@ -48,7 +48,7 @@ import org.springframework.web.client.RestTemplate;
|
||||
@Service
|
||||
public class SmsCampaignDropdownReadPlatformServiceImpl implements SmsCampaignDropdownReadPlatformService {
|
||||
|
||||
private final static Logger LOG = LoggerFactory.getLogger(SmsCampaignDropdownReadPlatformServiceImpl.class);
|
||||
private static final Logger LOG = LoggerFactory.getLogger(SmsCampaignDropdownReadPlatformServiceImpl.class);
|
||||
private final RestTemplate restTemplate;
|
||||
|
||||
private final SmsConfigUtils smsConfigUtils;
|
||||
|
||||
+1
-1
@@ -94,7 +94,7 @@ import org.springframework.transaction.annotation.Transactional;
|
||||
@Service
|
||||
public class SmsCampaignWritePlatformServiceJpaImpl implements SmsCampaignWritePlatformService {
|
||||
|
||||
private final static Logger LOG = LoggerFactory.getLogger(SmsCampaignWritePlatformServiceJpaImpl.class);
|
||||
private static final Logger LOG = LoggerFactory.getLogger(SmsCampaignWritePlatformServiceJpaImpl.class);
|
||||
|
||||
private final PlatformSecurityContext context;
|
||||
|
||||
|
||||
+1
-1
@@ -42,7 +42,7 @@ import org.springframework.transaction.annotation.Transactional;
|
||||
@Service
|
||||
public class CodeValueWritePlatformServiceJpaRepositoryImpl implements CodeValueWritePlatformService {
|
||||
|
||||
private final static Logger LOG = LoggerFactory.getLogger(CodeValueWritePlatformServiceJpaRepositoryImpl.class);
|
||||
private static final Logger LOG = LoggerFactory.getLogger(CodeValueWritePlatformServiceJpaRepositoryImpl.class);
|
||||
|
||||
private final PlatformSecurityContext context;
|
||||
private final CodeValueRepositoryWrapper codeValueRepositoryWrapper;
|
||||
|
||||
+1
-1
@@ -42,7 +42,7 @@ import org.springframework.transaction.annotation.Transactional;
|
||||
@Service
|
||||
public class CodeWritePlatformServiceJpaRepositoryImpl implements CodeWritePlatformService {
|
||||
|
||||
private final static Logger LOG = LoggerFactory.getLogger(CodeWritePlatformServiceJpaRepositoryImpl.class);
|
||||
private static final Logger LOG = LoggerFactory.getLogger(CodeWritePlatformServiceJpaRepositoryImpl.class);
|
||||
|
||||
private final PlatformSecurityContext context;
|
||||
private final CodeRepository codeRepository;
|
||||
|
||||
+1
-1
@@ -41,7 +41,7 @@ import org.springframework.transaction.annotation.Transactional;
|
||||
public class ExternalServiceWritePlatformServiceJpaRepositoryImpl implements ExternalServiceWritePlatformService {
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
private final static Logger LOG = LoggerFactory.getLogger(ExternalServiceWritePlatformServiceJpaRepositoryImpl.class);
|
||||
private static final Logger LOG = LoggerFactory.getLogger(ExternalServiceWritePlatformServiceJpaRepositoryImpl.class);
|
||||
|
||||
private final PlatformSecurityContext context;
|
||||
private final ExternalServicesPropertiesRepositoryWrapper repositoryWrapper;
|
||||
|
||||
+1
-1
@@ -38,7 +38,7 @@ import org.springframework.transaction.annotation.Transactional;
|
||||
@Service
|
||||
public class GlobalConfigurationWritePlatformServiceJpaRepositoryImpl implements GlobalConfigurationWritePlatformService {
|
||||
|
||||
private final static Logger LOG = LoggerFactory.getLogger(GlobalConfigurationWritePlatformServiceJpaRepositoryImpl.class);
|
||||
private static final Logger LOG = LoggerFactory.getLogger(GlobalConfigurationWritePlatformServiceJpaRepositoryImpl.class);
|
||||
|
||||
private final PlatformSecurityContext context;
|
||||
private final GlobalConfigurationRepositoryWrapper repository;
|
||||
|
||||
+1
-1
@@ -34,7 +34,7 @@ import java.util.Date;
|
||||
*/
|
||||
public class DateAdapter implements JsonSerializer<Date> {
|
||||
|
||||
private final static DateTimeFormatter formatter = DateTimeFormatter.ISO_INSTANT;
|
||||
private static final DateTimeFormatter formatter = DateTimeFormatter.ISO_INSTANT;
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("unused")
|
||||
|
||||
+1
-1
@@ -28,7 +28,7 @@ import org.springframework.context.ConfigurableApplicationContext;
|
||||
|
||||
public abstract class ApplicationExitUtil {
|
||||
|
||||
private final static Logger LOG = LoggerFactory.getLogger(ApplicationExitUtil.class);
|
||||
private static final Logger LOG = LoggerFactory.getLogger(ApplicationExitUtil.class);
|
||||
|
||||
private ApplicationExitUtil() {}
|
||||
|
||||
|
||||
+3
-3
@@ -27,9 +27,9 @@ import org.springframework.stereotype.Service;
|
||||
@Service
|
||||
public class JDBCDriverConfig {
|
||||
|
||||
private final static String DRIVER_CLASS_PROPERTYNAME = "DRIVERCLASS_NAME";
|
||||
private final static String PROTOCOL_PROPERTYNAME = "PROTOCOL";
|
||||
private final static String SUBPROTOCOL_PROPERTYNAME = "SUB_PROTOCOL";
|
||||
private static final String DRIVER_CLASS_PROPERTYNAME = "DRIVERCLASS_NAME";
|
||||
private static final String PROTOCOL_PROPERTYNAME = "PROTOCOL";
|
||||
private static final String SUBPROTOCOL_PROPERTYNAME = "SUB_PROTOCOL";
|
||||
|
||||
private String driverClassName;
|
||||
private String protocol;
|
||||
|
||||
+1
-1
@@ -49,7 +49,7 @@ import org.slf4j.LoggerFactory;
|
||||
*/
|
||||
public class MultiException extends Exception {
|
||||
|
||||
private final static Logger LOG = LoggerFactory.getLogger(MultiException.class);
|
||||
private static final Logger LOG = LoggerFactory.getLogger(MultiException.class);
|
||||
private final List<Throwable> throwables;
|
||||
|
||||
public MultiException(List<Throwable> problems) {
|
||||
|
||||
+2
-2
@@ -40,8 +40,8 @@ import org.springframework.stereotype.Component;
|
||||
@Component
|
||||
public class DatatableCommandFromApiJsonDeserializer {
|
||||
|
||||
private final static String DATATABLE_NAME_REGEX_PATTERN = "^[a-zA-Z][a-zA-Z0-9\\-_\\s]{0,48}[a-zA-Z0-9]$";
|
||||
private final static String DATATABLE_COLUMN_NAME_REGEX_PATTERN = "^[a-zA-Z][a-zA-Z0-9\\-_\\s]{0,}[a-zA-Z0-9]$";
|
||||
private static final String DATATABLE_NAME_REGEX_PATTERN = "^[a-zA-Z][a-zA-Z0-9\\-_\\s]{0,48}[a-zA-Z0-9]$";
|
||||
private static final String DATATABLE_COLUMN_NAME_REGEX_PATTERN = "^[a-zA-Z][a-zA-Z0-9\\-_\\s]{0,}[a-zA-Z0-9]$";
|
||||
/**
|
||||
* The parameters supported for this command.
|
||||
*/
|
||||
|
||||
+1
-1
@@ -31,7 +31,7 @@ import org.springframework.stereotype.Service;
|
||||
@Service
|
||||
public class AbandonedConnectionCleanupShutdownListener implements ApplicationListener<ContextClosedEvent> {
|
||||
|
||||
private final static Logger LOG = LoggerFactory.getLogger(AbandonedConnectionCleanupShutdownListener.class);
|
||||
private static final Logger LOG = LoggerFactory.getLogger(AbandonedConnectionCleanupShutdownListener.class);
|
||||
|
||||
/**
|
||||
* @see JobRegisterServiceImpl#onApplicationEvent(ContextClosedEvent) doc
|
||||
|
||||
+1
-1
@@ -174,7 +174,7 @@ public final class SearchParameters {
|
||||
loanId, savingsId, orphansOnly, isSelfUser);
|
||||
}
|
||||
|
||||
public final static SearchParameters forProvisioningEntries(final Long provisioningEntryId, final Long officeId, final Long productId,
|
||||
public static final SearchParameters forProvisioningEntries(final Long provisioningEntryId, final Long officeId, final Long productId,
|
||||
final Long categoryId, final Integer offset, final Integer limit) {
|
||||
return new SearchParameters(provisioningEntryId, officeId, productId, categoryId, offset, limit);
|
||||
}
|
||||
|
||||
+1
-1
@@ -44,7 +44,7 @@ import org.springframework.stereotype.Service;
|
||||
@Service
|
||||
public class TenantDatabaseUpgradeService {
|
||||
|
||||
private final static Logger LOG = LoggerFactory.getLogger(TenantDatabaseUpgradeService.class);
|
||||
private static final Logger LOG = LoggerFactory.getLogger(TenantDatabaseUpgradeService.class);
|
||||
|
||||
private final TenantDetailsService tenantDetailsService;
|
||||
protected final DataSource tenantDataSource;
|
||||
|
||||
+1
-1
@@ -74,7 +74,7 @@ public class DatatablesApiResource {
|
||||
private final ReadWriteNonCoreDataService readWriteNonCoreDataService;
|
||||
private final ToApiJsonSerializer<GenericResultsetData> toApiJsonSerializer;
|
||||
private final PortfolioCommandSourceWritePlatformService commandsSourceWritePlatformService;
|
||||
private final static org.slf4j.Logger LOG = LoggerFactory.getLogger(DatatablesApiResource.class);
|
||||
private static final org.slf4j.Logger LOG = LoggerFactory.getLogger(DatatablesApiResource.class);
|
||||
|
||||
@Autowired
|
||||
public DatatablesApiResource(final PlatformSecurityContext context, final GenericDataService genericDataService,
|
||||
|
||||
+1
-1
@@ -69,7 +69,7 @@ public class EntityDatatableChecksApiResource {
|
||||
private final EntityDatatableChecksReadService readEntityDatatableChecksService;
|
||||
private final ToApiJsonSerializer<GenericResultsetData> toApiJsonSerializer;
|
||||
private final PortfolioCommandSourceWritePlatformService commandsSourceWritePlatformService;
|
||||
private final static org.slf4j.Logger LOG = LoggerFactory.getLogger(EntityDatatableChecksApiResource.class);
|
||||
private static final org.slf4j.Logger LOG = LoggerFactory.getLogger(EntityDatatableChecksApiResource.class);
|
||||
|
||||
@Autowired
|
||||
public EntityDatatableChecksApiResource(final PlatformSecurityContext context, final GenericDataService genericDataService,
|
||||
|
||||
+1
-1
@@ -56,7 +56,7 @@ import org.springframework.transaction.annotation.Transactional;
|
||||
@Service
|
||||
public class EntityDatatableChecksWritePlatformServiceImpl implements EntityDatatableChecksWritePlatformService {
|
||||
|
||||
private final static Logger LOG = LoggerFactory.getLogger(EntityDatatableChecksWritePlatformServiceImpl.class);
|
||||
private static final Logger LOG = LoggerFactory.getLogger(EntityDatatableChecksWritePlatformServiceImpl.class);
|
||||
|
||||
private final PlatformSecurityContext context;
|
||||
private final EntityDatatableChecksDataValidator fromApiJsonDeserializer;
|
||||
|
||||
+1
-1
@@ -44,7 +44,7 @@ public class GenericDataServiceImpl implements GenericDataService {
|
||||
|
||||
private final JdbcTemplate jdbcTemplate;
|
||||
private final DataSource dataSource;
|
||||
private final static Logger LOG = LoggerFactory.getLogger(GenericDataServiceImpl.class);
|
||||
private static final Logger LOG = LoggerFactory.getLogger(GenericDataServiceImpl.class);
|
||||
|
||||
@Autowired
|
||||
public GenericDataServiceImpl(final RoutingDataSource dataSource) {
|
||||
|
||||
+2
-2
@@ -67,8 +67,8 @@ import org.springframework.stereotype.Service;
|
||||
@Service
|
||||
public class ReadReportingServiceImpl implements ReadReportingService {
|
||||
|
||||
private final static Logger LOG = LoggerFactory.getLogger(ReadReportingServiceImpl.class);
|
||||
private final static String REPORT_NAME_REGEX_PATTERN = "^[a-zA-Z][a-zA-Z0-9\\-_\\s]{0,48}[a-zA-Z0-9]$";
|
||||
private static final Logger LOG = LoggerFactory.getLogger(ReadReportingServiceImpl.class);
|
||||
private static final String REPORT_NAME_REGEX_PATTERN = "^[a-zA-Z][a-zA-Z0-9\\-_\\s]{0,48}[a-zA-Z0-9]$";
|
||||
|
||||
private final JdbcTemplate jdbcTemplate;
|
||||
private final DataSource dataSource;
|
||||
|
||||
+5
-5
@@ -86,16 +86,16 @@ import org.springframework.transaction.annotation.Transactional;
|
||||
@Service
|
||||
public class ReadWriteNonCoreDataServiceImpl implements ReadWriteNonCoreDataService {
|
||||
|
||||
private final static String DATATABLE_NAME_REGEX_PATTERN = "^[a-zA-Z][a-zA-Z0-9\\-_\\s]{0,48}[a-zA-Z0-9]$";
|
||||
private static final String DATATABLE_NAME_REGEX_PATTERN = "^[a-zA-Z][a-zA-Z0-9\\-_\\s]{0,48}[a-zA-Z0-9]$";
|
||||
|
||||
private final static String CODE_VALUES_TABLE = "m_code_value";
|
||||
private static final String CODE_VALUES_TABLE = "m_code_value";
|
||||
|
||||
private final static Logger LOG = LoggerFactory.getLogger(ReadWriteNonCoreDataServiceImpl.class);
|
||||
private final static ImmutableMap<String, String> apiTypeToMySQL = ImmutableMap.<String, String>builder().put("string", "VARCHAR")
|
||||
private static final Logger LOG = LoggerFactory.getLogger(ReadWriteNonCoreDataServiceImpl.class);
|
||||
private static final ImmutableMap<String, String> apiTypeToMySQL = ImmutableMap.<String, String>builder().put("string", "VARCHAR")
|
||||
.put("number", "INT").put("boolean", "BIT").put("decimal", "DECIMAL").put("date", "DATE").put("datetime", "DATETIME")
|
||||
.put("text", "TEXT").put("dropdown", "INT").build();
|
||||
|
||||
private final static List<String> stringDataTypes = Arrays.asList("char", "varchar", "blob", "text", "tinyblob", "tinytext",
|
||||
private static final List<String> stringDataTypes = Arrays.asList("char", "varchar", "blob", "text", "tinyblob", "tinytext",
|
||||
"mediumblob", "mediumtext", "longblob", "longtext");
|
||||
|
||||
private final JdbcTemplate jdbcTemplate;
|
||||
|
||||
+1
-1
@@ -53,7 +53,7 @@ import org.springframework.transaction.annotation.Transactional;
|
||||
@Service
|
||||
public class ReportWritePlatformServiceImpl implements ReportWritePlatformService {
|
||||
|
||||
private final static Logger LOG = LoggerFactory.getLogger(ReportWritePlatformServiceImpl.class);
|
||||
private static final Logger LOG = LoggerFactory.getLogger(ReportWritePlatformServiceImpl.class);
|
||||
|
||||
private final PlatformSecurityContext context;
|
||||
private final ReportCommandFromApiJsonDeserializer fromApiJsonDeserializer;
|
||||
|
||||
+1
-1
@@ -37,7 +37,7 @@ import org.slf4j.LoggerFactory;
|
||||
|
||||
public class FileSystemContentRepository implements ContentRepository {
|
||||
|
||||
private final static Logger LOG = LoggerFactory.getLogger(FileSystemContentRepository.class);
|
||||
private static final Logger LOG = LoggerFactory.getLogger(FileSystemContentRepository.class);
|
||||
|
||||
public static final String FINERACT_BASE_DIR = System.getProperty("user.home") + File.separator + ".fineract";
|
||||
|
||||
|
||||
+1
-1
@@ -47,7 +47,7 @@ import org.slf4j.LoggerFactory;
|
||||
|
||||
public class S3ContentRepository implements ContentRepository {
|
||||
|
||||
private final static Logger LOG = LoggerFactory.getLogger(S3ContentRepository.class);
|
||||
private static final Logger LOG = LoggerFactory.getLogger(S3ContentRepository.class);
|
||||
|
||||
private final String s3BucketName;
|
||||
private final AmazonS3 s3Client;
|
||||
|
||||
+1
-1
@@ -39,7 +39,7 @@ import org.slf4j.LoggerFactory;
|
||||
|
||||
public class ImageData {
|
||||
|
||||
private final static Logger LOG = LoggerFactory.getLogger(ImageData.class);
|
||||
private static final Logger LOG = LoggerFactory.getLogger(ImageData.class);
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
private final Long imageId;
|
||||
|
||||
+1
-1
@@ -42,7 +42,7 @@ import org.springframework.transaction.annotation.Transactional;
|
||||
@Service
|
||||
public class DocumentWritePlatformServiceJpaRepositoryImpl implements DocumentWritePlatformService {
|
||||
|
||||
private final static Logger LOG = LoggerFactory.getLogger(DocumentWritePlatformServiceJpaRepositoryImpl.class);
|
||||
private static final Logger LOG = LoggerFactory.getLogger(DocumentWritePlatformServiceJpaRepositoryImpl.class);
|
||||
|
||||
private final PlatformSecurityContext context;
|
||||
private final DocumentRepository documentRepository;
|
||||
|
||||
+1
-1
@@ -46,7 +46,7 @@ public class FineractEntityAccessReadServiceImpl implements FineractEntityAccess
|
||||
|
||||
private final PlatformSecurityContext context;
|
||||
private final JdbcTemplate jdbcTemplate;
|
||||
private final static Logger LOG = LoggerFactory.getLogger(FineractEntityAccessReadServiceImpl.class);
|
||||
private static final Logger LOG = LoggerFactory.getLogger(FineractEntityAccessReadServiceImpl.class);
|
||||
private final FineractEntityRelationRepositoryWrapper fineractEntityRelationRepository;
|
||||
|
||||
@Autowired
|
||||
|
||||
+1
-1
@@ -47,7 +47,7 @@ import org.springframework.transaction.annotation.Transactional;
|
||||
@Service
|
||||
public class FineractEntityAccessWriteServiceImpl implements FineractEntityAccessWriteService {
|
||||
|
||||
private final static Logger LOG = LoggerFactory.getLogger(FineractEntityAccessWriteServiceImpl.class);
|
||||
private static final Logger LOG = LoggerFactory.getLogger(FineractEntityAccessWriteServiceImpl.class);
|
||||
private final FineractEntityAccessRepository entityAccessRepository;
|
||||
private final FineractEntityRelationRepositoryWrapper fineractEntityRelationRepositoryWrapper;
|
||||
private final FineractEntityToEntityMappingRepository fineractEntityToEntityMappingRepository;
|
||||
|
||||
+1
-1
@@ -40,7 +40,7 @@ import retrofit.client.Response;
|
||||
@SuppressWarnings("unused")
|
||||
public class ProcessorHelper {
|
||||
|
||||
private final static Logger LOG = LoggerFactory.getLogger(ProcessorHelper.class);
|
||||
private static final Logger LOG = LoggerFactory.getLogger(ProcessorHelper.class);
|
||||
|
||||
@SuppressWarnings("null")
|
||||
public static OkHttpClient configureClient(final OkHttpClient client) {
|
||||
|
||||
+1
-1
@@ -44,7 +44,7 @@ import retrofit.Callback;
|
||||
@Service
|
||||
public class TwilioHookProcessor implements HookProcessor {
|
||||
|
||||
private final static Logger LOG = LoggerFactory.getLogger(TwilioHookProcessor.class);
|
||||
private static final Logger LOG = LoggerFactory.getLogger(TwilioHookProcessor.class);
|
||||
private final HookConfigurationRepository hookConfigurationRepository;
|
||||
private final TemplateMergeService templateMergeService;
|
||||
private final ClientRepositoryWrapper clientRepositoryWrapper;
|
||||
|
||||
+5
-5
@@ -32,11 +32,11 @@ import retrofit.http.POST;
|
||||
|
||||
public interface WebHookService {
|
||||
|
||||
final static String ENTITY_HEADER = "X-Fineract-Entity";
|
||||
final static String ACTION_HEADER = "X-Fineract-Action";
|
||||
final static String TENANT_HEADER = "Fineract-Platform-TenantId";
|
||||
final static String ENDPOINT_HEADER = "X-Fineract-Endpoint";
|
||||
final static String API_KEY_HEADER = "X-Fineract-API-Key";
|
||||
static final String ENTITY_HEADER = "X-Fineract-Entity";
|
||||
static final String ACTION_HEADER = "X-Fineract-Action";
|
||||
static final String TENANT_HEADER = "Fineract-Platform-TenantId";
|
||||
static final String ENDPOINT_HEADER = "X-Fineract-Endpoint";
|
||||
static final String API_KEY_HEADER = "X-Fineract-API-Key";
|
||||
|
||||
// Ping
|
||||
@GET("/")
|
||||
|
||||
+1
-1
@@ -66,7 +66,7 @@ import org.springframework.stereotype.Service;
|
||||
@Service
|
||||
public class JobRegisterServiceImpl implements JobRegisterService, ApplicationListener<ContextClosedEvent> {
|
||||
|
||||
private final static Logger LOG = LoggerFactory.getLogger(JobRegisterServiceImpl.class);
|
||||
private static final Logger LOG = LoggerFactory.getLogger(JobRegisterServiceImpl.class);
|
||||
|
||||
// MIFOSX-1184: This class cannot use constructor injection, because one of
|
||||
// its dependencies (SchedulerStopListener) has a circular dependency to
|
||||
|
||||
+1
-1
@@ -35,7 +35,7 @@ import org.springframework.stereotype.Component;
|
||||
@Component
|
||||
public class SchedulerTriggerListener implements TriggerListener {
|
||||
|
||||
private final static Logger LOG = LoggerFactory.getLogger(SchedulerTriggerListener.class);
|
||||
private static final Logger LOG = LoggerFactory.getLogger(SchedulerTriggerListener.class);
|
||||
|
||||
private final SchedularWritePlatformService schedularService;
|
||||
private final TenantDetailsService tenantDetailsService;
|
||||
|
||||
+1
-1
@@ -42,7 +42,7 @@ public class IPv4Helper {
|
||||
* @throws IllegalArgumentException
|
||||
* if <code>ipAddress</code> is invalid
|
||||
*/
|
||||
private final static Logger LOG = LoggerFactory.getLogger(IPv4Helper.class);
|
||||
private static final Logger LOG = LoggerFactory.getLogger(IPv4Helper.class);
|
||||
|
||||
public static long ipAddressToLong(String ipAddress) {
|
||||
if (ipAddress == null || ipAddress.isEmpty()) {
|
||||
|
||||
+1
-1
@@ -36,7 +36,7 @@ import org.springframework.stereotype.Service;
|
||||
@Service
|
||||
public class ReportMailingJobEmailServiceImpl implements ReportMailingJobEmailService {
|
||||
|
||||
private final static Logger LOG = LoggerFactory.getLogger(ReportMailingJobEmailServiceImpl.class);
|
||||
private static final Logger LOG = LoggerFactory.getLogger(ReportMailingJobEmailServiceImpl.class);
|
||||
private final ReportMailingJobConfigurationReadPlatformService reportMailingJobConfigurationReadPlatformService;
|
||||
private Collection<ReportMailingJobConfigurationData> reportMailingJobConfigurationDataCollection;
|
||||
|
||||
|
||||
+2
-2
@@ -74,7 +74,7 @@ import org.springframework.transaction.annotation.Transactional;
|
||||
@Service
|
||||
public class ReportMailingJobWritePlatformServiceImpl implements ReportMailingJobWritePlatformService {
|
||||
|
||||
private final static Logger LOG = LoggerFactory.getLogger(ReportMailingJobWritePlatformServiceImpl.class);
|
||||
private static final Logger LOG = LoggerFactory.getLogger(ReportMailingJobWritePlatformServiceImpl.class);
|
||||
private final ReportRepositoryWrapper reportRepositoryWrapper;
|
||||
private final ReportMailingJobValidator reportMailingJobValidator;
|
||||
private final ReportMailingJobRepositoryWrapper reportMailingJobRepositoryWrapper;
|
||||
@@ -84,7 +84,7 @@ public class ReportMailingJobWritePlatformServiceImpl implements ReportMailingJo
|
||||
private final ReadReportingService readReportingService;
|
||||
private final ReportingProcessServiceProvider reportingProcessServiceProvider;
|
||||
private final ReportMailingJobRunHistoryRepository reportMailingJobRunHistoryRepository;
|
||||
private final static String DATETIME_FORMAT = "yyyy-MM-dd HH:mm:ss";
|
||||
private static final String DATETIME_FORMAT = "yyyy-MM-dd HH:mm:ss";
|
||||
|
||||
@Autowired
|
||||
public ReportMailingJobWritePlatformServiceImpl(final ReportRepositoryWrapper reportRepositoryWrapper,
|
||||
|
||||
+1
-1
@@ -67,7 +67,7 @@ import org.springframework.stereotype.Service;
|
||||
public class TenantAwareBasicAuthenticationFilter extends BasicAuthenticationFilter {
|
||||
|
||||
private static boolean firstRequestProcessed = false;
|
||||
private final static Logger LOG = LoggerFactory.getLogger(TenantAwareBasicAuthenticationFilter.class);
|
||||
private static final Logger LOG = LoggerFactory.getLogger(TenantAwareBasicAuthenticationFilter.class);
|
||||
|
||||
private final BasicAuthTenantDetailsService basicAuthTenantDetailsService;
|
||||
private final ToApiJsonSerializer<PlatformRequestLog> toApiJsonSerializer;
|
||||
|
||||
+1
-1
@@ -62,7 +62,7 @@ import org.springframework.web.filter.GenericFilterBean;
|
||||
public class TenantAwareTenantIdentifierFilter extends GenericFilterBean {
|
||||
|
||||
private static boolean firstRequestProcessed = false;
|
||||
private final static Logger LOG = LoggerFactory.getLogger(TenantAwareTenantIdentifierFilter.class);
|
||||
private static final Logger LOG = LoggerFactory.getLogger(TenantAwareTenantIdentifierFilter.class);
|
||||
|
||||
private final BasicAuthTenantDetailsService basicAuthTenantDetailsService;
|
||||
private final ToApiJsonSerializer<PlatformRequestLog> toApiJsonSerializer;
|
||||
|
||||
+1
-1
@@ -44,7 +44,7 @@ import org.springframework.stereotype.Service;
|
||||
@Service
|
||||
public class SpringSecurityPlatformSecurityContext implements PlatformSecurityContext {
|
||||
|
||||
// private final static Logger LOG =
|
||||
// private static final Logger LOG =
|
||||
// LoggerFactory.getLogger(SpringSecurityPlatformSecurityContext.class);
|
||||
|
||||
private final ConfigurationDomainService configurationDomainService;
|
||||
|
||||
+1
-1
@@ -40,7 +40,7 @@ import org.springframework.stereotype.Component;
|
||||
@Component
|
||||
public class ColumnValidator {
|
||||
|
||||
private final static Logger LOG = LoggerFactory.getLogger(ColumnValidator.class);
|
||||
private static final Logger LOG = LoggerFactory.getLogger(ColumnValidator.class);
|
||||
private final JdbcTemplate jdbcTemplate;
|
||||
|
||||
@Autowired
|
||||
|
||||
+1
-1
@@ -37,7 +37,7 @@ import java.util.regex.Pattern;
|
||||
*/
|
||||
public class SQLBuilder {
|
||||
|
||||
private final static Pattern ATOZ = Pattern.compile("([a-zA-Z_][a-zA-Z0-9_-]*\\.)?[a-zA-Z_-][a-zA-Z0-9_-]*");
|
||||
private static final Pattern ATOZ = Pattern.compile("([a-zA-Z_][a-zA-Z0-9_-]*\\.)?[a-zA-Z_-][a-zA-Z0-9_-]*");
|
||||
|
||||
// This holds the query string, with the '?' placeholders, but no argument
|
||||
// values
|
||||
|
||||
+6
-6
@@ -24,15 +24,15 @@ import java.util.regex.Pattern;
|
||||
|
||||
public class SQLInjectionValidator {
|
||||
|
||||
private final static String[] DDL_COMMANDS = { "create", "drop", "alter", "truncate", "comment", "sleep" };
|
||||
private static final String[] DDL_COMMANDS = { "create", "drop", "alter", "truncate", "comment", "sleep" };
|
||||
|
||||
private final static String[] DML_COMMANDS = { "select", "insert", "update", "delete", "merge", "upsert", "call" };
|
||||
private static final String[] DML_COMMANDS = { "select", "insert", "update", "delete", "merge", "upsert", "call" };
|
||||
|
||||
private final static String[] COMMENTS = { "--", "({", "/*", "#" };
|
||||
private static final String[] COMMENTS = { "--", "({", "/*", "#" };
|
||||
|
||||
private final static String SQL_PATTERN = "[a-zA-Z_=,\\-'!><.?\"`% ()0-9*\n\r]*";
|
||||
private static final String SQL_PATTERN = "[a-zA-Z_=,\\-'!><.?\"`% ()0-9*\n\r]*";
|
||||
|
||||
public final static void validateSQLInput(final String sqlSearch) {
|
||||
public static final void validateSQLInput(final String sqlSearch) {
|
||||
String lowerCaseSQL = sqlSearch.toLowerCase();
|
||||
for (String ddl : DDL_COMMANDS) {
|
||||
if (lowerCaseSQL.contains(ddl)) {
|
||||
@@ -117,7 +117,7 @@ public class SQLInjectionValidator {
|
||||
}
|
||||
}
|
||||
|
||||
public final static void validateAdhocQuery(final String sqlSearch) {
|
||||
public static final void validateAdhocQuery(final String sqlSearch) {
|
||||
String lowerCaseSQL = sqlSearch.toLowerCase().trim();
|
||||
for (String ddl : DDL_COMMANDS) {
|
||||
if (lowerCaseSQL.startsWith(ddl)) {
|
||||
|
||||
+1
-1
@@ -37,7 +37,7 @@ import org.springframework.transaction.annotation.Transactional;
|
||||
@Service
|
||||
public class SmsWritePlatformServiceJpaRepositoryImpl implements SmsWritePlatformService {
|
||||
|
||||
private final static Logger LOG = LoggerFactory.getLogger(SmsWritePlatformServiceJpaRepositoryImpl.class);
|
||||
private static final Logger LOG = LoggerFactory.getLogger(SmsWritePlatformServiceJpaRepositoryImpl.class);
|
||||
|
||||
private final SmsMessageAssembler assembler;
|
||||
private final SmsMessageRepository repository;
|
||||
|
||||
+1
-1
@@ -20,5 +20,5 @@ package org.apache.fineract.infrastructure.survey.api;
|
||||
|
||||
public class PovertyLineApiConstants {
|
||||
|
||||
final static String POVERTY_LINE_RESOURCE_NAME = "PovertyLine";
|
||||
static final String POVERTY_LINE_RESOURCE_NAME = "PovertyLine";
|
||||
}
|
||||
|
||||
+1
-1
@@ -23,5 +23,5 @@ package org.apache.fineract.infrastructure.survey.api;
|
||||
*/
|
||||
public class SurveyApiConstants {
|
||||
|
||||
final static String SURVEY_RESOURCE_NAME = "Survey";
|
||||
static final String SURVEY_RESOURCE_NAME = "Survey";
|
||||
}
|
||||
|
||||
+7
-7
@@ -26,19 +26,19 @@ import org.joda.time.LocalDate;
|
||||
public class ClientScoresOverview {
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
final private String surveyName;
|
||||
private final String surveyName;
|
||||
@SuppressWarnings("unused")
|
||||
final private long id;
|
||||
private final long id;
|
||||
@SuppressWarnings("unused")
|
||||
final private String likelihoodCode;
|
||||
private final String likelihoodCode;
|
||||
@SuppressWarnings("unused")
|
||||
final private String likelihoodName;
|
||||
private final String likelihoodName;
|
||||
@SuppressWarnings("unused")
|
||||
final private long score;
|
||||
private final long score;
|
||||
@SuppressWarnings("unused")
|
||||
final private Double povertyLine;
|
||||
private final Double povertyLine;
|
||||
@SuppressWarnings("unused")
|
||||
final private LocalDate date;
|
||||
private final LocalDate date;
|
||||
|
||||
public ClientScoresOverview(final String likelihoodCode, final String likelihoodName, final long score, final Double povertyLine,
|
||||
final LocalDate date, final long resourceId, final String surveyName) {
|
||||
|
||||
+2
-2
@@ -23,6 +23,6 @@ package org.apache.fineract.infrastructure.survey.data;
|
||||
*/
|
||||
public class LikelihoodStatus {
|
||||
|
||||
public final static long ENABLED = 200;
|
||||
public final static long DISABLED = 100;
|
||||
public static final long ENABLED = 200;
|
||||
public static final long DISABLED = 100;
|
||||
}
|
||||
|
||||
+1
-1
@@ -39,7 +39,7 @@ import org.springframework.stereotype.Service;
|
||||
@Service
|
||||
public class WriteLikelihoodServiceImpl implements WriteLikelihoodService {
|
||||
|
||||
private final static Logger LOG = LoggerFactory.getLogger(WriteLikelihoodServiceImpl.class);
|
||||
private static final Logger LOG = LoggerFactory.getLogger(WriteLikelihoodServiceImpl.class);
|
||||
private final PlatformSecurityContext context;
|
||||
private final LikelihoodDataValidator likelihoodDataValidator;
|
||||
private final LikelihoodRepository repository;
|
||||
|
||||
+1
-1
@@ -92,7 +92,7 @@ import org.springframework.transaction.annotation.Transactional;
|
||||
@Service
|
||||
public class InteropServiceImpl implements InteropService {
|
||||
|
||||
private final static Logger LOG = LoggerFactory.getLogger(InteropServiceImpl.class);
|
||||
private static final Logger LOG = LoggerFactory.getLogger(InteropServiceImpl.class);
|
||||
|
||||
private final PlatformSecurityContext securityContext;
|
||||
private final InteropDataValidator dataValidator;
|
||||
|
||||
+1
-1
@@ -44,7 +44,7 @@ import org.springframework.stereotype.Component;
|
||||
@Component
|
||||
public class XBRLResultServiceImpl implements XBRLResultService {
|
||||
|
||||
private final static Logger LOG = LoggerFactory.getLogger(XBRLResultServiceImpl.class);
|
||||
private static final Logger LOG = LoggerFactory.getLogger(XBRLResultServiceImpl.class);
|
||||
private static final ScriptEngine SCRIPT_ENGINE = new ScriptEngineManager().getEngineByName("JavaScript");
|
||||
|
||||
private final MixTaxonomyMappingReadPlatformService readTaxonomyMappingService;
|
||||
|
||||
+1
-1
@@ -54,7 +54,7 @@ import org.springframework.transaction.annotation.Transactional;
|
||||
@Service
|
||||
public class HolidayWritePlatformServiceJpaRepositoryImpl implements HolidayWritePlatformService {
|
||||
|
||||
private final static Logger LOG = LoggerFactory.getLogger(HolidayWritePlatformServiceJpaRepositoryImpl.class);
|
||||
private static final Logger LOG = LoggerFactory.getLogger(HolidayWritePlatformServiceJpaRepositoryImpl.class);
|
||||
|
||||
private final HolidayDataValidator fromApiJsonDeserializer;
|
||||
private final HolidayRepositoryWrapper holidayRepository;
|
||||
|
||||
+1
-1
@@ -49,7 +49,7 @@ public class OfficeReadPlatformServiceImpl implements OfficeReadPlatformService
|
||||
private final PlatformSecurityContext context;
|
||||
private final CurrencyReadPlatformService currencyReadPlatformService;
|
||||
private final ColumnValidator columnValidator;
|
||||
private final static String nameDecoratedBaseOnHierarchy = "concat(substring('........................................', 1, ((LENGTH(o.hierarchy) - LENGTH(REPLACE(o.hierarchy, '.', '')) - 1) * 4)), o.name)";
|
||||
private static final String nameDecoratedBaseOnHierarchy = "concat(substring('........................................', 1, ((LENGTH(o.hierarchy) - LENGTH(REPLACE(o.hierarchy, '.', '')) - 1) * 4)), o.name)";
|
||||
|
||||
@Autowired
|
||||
public OfficeReadPlatformServiceImpl(final PlatformSecurityContext context,
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user