Class BankController
java.lang.Object
es.kukenan.smartfi.microservice.contracts.controller.BankController
Account bank controller.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringAuthority (role) required in order to be able to invoke greeting API.static final StringPath for Account Rest API.private BankServiceContract service.protected es.kukenan.smartfi.common.service.jwt.JwtServiceJWT service for create a bearer to call products.private es.kukenan.smartfi.common.context.RequestContextManagerRequest context manager. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate StringcreateBearerToken(es.kukenan.smartfi.common.security.WalletAuthentication walletAuthentication) org.springframework.http.ResponseEntity<List<es.kukenan.smartfi.microservice.backoffice.dtos.core.common.BankDto>>getActiveBanks(es.kukenan.smartfi.common.security.WalletAuthentication authentication) Get active bank account.
-
Field Details
-
API_BANK_PATH
Path for Account Rest API.- See Also:
-
API_AUTHORITIES
Authority (role) required in order to be able to invoke greeting API.- See Also:
-
jwtService
@Autowired protected es.kukenan.smartfi.common.service.jwt.JwtService jwtServiceJWT service for create a bearer to call products. -
bankService
Contract service. -
requestContextManager
@Autowired private es.kukenan.smartfi.common.context.RequestContextManager requestContextManagerRequest context manager.
-
-
Constructor Details
-
BankController
public BankController()
-
-
Method Details
-
getActiveBanks
@PreAuthorize("(hasRole(\'ROLE_ACCESS_USER\') or hasRole(\'ROLE_ACCESS_AGENT\') or hasRole(\'ROLE_ACCESS_SUPERVISOR\')) and (hasRole(\'ROLE_LEVEL_USER_PWD\') or hasRole(\'ROLE_LEVEL_USER_SCA\'))") @GetMapping(path="/api/v1/banks", produces="application/json") public org.springframework.http.ResponseEntity<List<es.kukenan.smartfi.microservice.backoffice.dtos.core.common.BankDto>> getActiveBanks(es.kukenan.smartfi.common.security.WalletAuthentication authentication) Get active bank account.- Parameters:
authentication- user credentials- Returns:
- contracts.
-
createBearerToken
private String createBearerToken(es.kukenan.smartfi.common.security.WalletAuthentication walletAuthentication)
-