Package api.mpba.rastvdmy.service
Interface BankIdentityService
- All Known Implementing Classes:
BankIdentityServiceImpl
public interface BankIdentityService
Service for managing bank identities.
-
Method Summary
Modifier and TypeMethodDescriptionaddBank
(jakarta.servlet.http.HttpServletRequest request) Adds a new bank identity for the user.void
deleteBank
(jakarta.servlet.http.HttpServletRequest request, String bankName) Deletes a bank identity associated with the user by its name.getBankByName
(jakarta.servlet.http.HttpServletRequest request, String name) Retrieves a bank identity by its name.getBanks
(jakarta.servlet.http.HttpServletRequest request) Retrieves a list of bank identities associated with the user.
-
Method Details
-
getBanks
Retrieves a list of bank identities associated with the user.- Parameters:
request
- the HTTP request containing user information- Returns:
- a list of
BankIdentity
objects available to the user
-
getBankByName
Retrieves a bank identity by its name.- Parameters:
request
- the HTTP request containing user informationname
- the name of the bank to retrieve- Returns:
- the
BankIdentity
associated with the specified name
-
addBank
Adds a new bank identity for the user.- Parameters:
request
- the HTTP request containing user information- Returns:
- the added
BankIdentity
object - Throws:
Exception
- if an error occurs during the addition of the bank identity
-
deleteBank
Deletes a bank identity associated with the user by its name.- Parameters:
request
- the HTTP request containing user informationbankName
- the name of the bank identity to be deleted
-