Skip to content

Commit

Permalink
Removal of persistence handlers
Browse files Browse the repository at this point in the history
  • Loading branch information
kalpanakanagasabai committed Mar 21, 2024
1 parent f697902 commit 1cfe6fb
Showing 1 changed file with 0 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,26 +59,5 @@ public static ConsentManageRequestHandler getConsentManageRequestValidator(Strin
return null;
}
return consentManageRequestHandler;

}

/**
* Method to get the Consent Persistence Handler.
*
* @param type Type of the request
* @return ConsentPersistenceHandler
*/
public static ConsentPersistenceHandler getConsentPersistenceHandler(String type) {
ConsentPersistenceHandler consentPersistenceHandler = null;

if (ConsentExtensionConstants.ACCOUNTS.equalsIgnoreCase(type)) {
consentPersistenceHandler = new AccountConsentPersistenceHandler();
} else if (ConsentExtensionConstants.PAYMENTS.equalsIgnoreCase(type)) {
consentPersistenceHandler = new PaymentConsentPersistenceHandler();
} else if (ConsentExtensionConstants.FUNDSCONFIRMATIONS.equalsIgnoreCase(type)) {
consentPersistenceHandler = new CofConsentPersistenceHandler();
}
return consentPersistenceHandler;

}
}

0 comments on commit 1cfe6fb

Please sign in to comment.