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, BankIdentityRequest identityRequest) 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
BankIdentity addBank(jakarta.servlet.http.HttpServletRequest request, BankIdentityRequest identityRequest) throws Exception Adds a new bank identity for the user.- Parameters:
request
- the HTTP request containing user informationidentityRequest
- the request object containing the details of the bank identity to add- Returns:
- the newly created
BankIdentity
- Throws:
Exception
- if an error occurs during the bank identity creation process
-
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
-