Class CashFlowRestController
java.lang.Object
es.kukenan.smartfi.microservice.contracts.controller.CashFlowRestController
Cashflow service Rest API controller.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringAuthority (role) required in order to be able to invoke greeting API.static final StringBase path for cashflow Rest API.private CashFlowServicecashflow service.private ConnectedContractCacheOperationConnected Contract Cache Operation.private ContractServiceContract Service.private es.kukenan.smartfi.common.service.jwt.JwtServiceJWT service.private es.kukenan.smartfi.common.context.RequestContextManagerRequest context manager. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<es.kukenan.smartfi.microservice.contracts.api.cashflow.CashFlowResponseDto>findProductCashFlow(es.kukenan.smartfi.common.security.WalletAuthentication walletAuthentication) cash flow endpoint.
-
Field Details
-
API_BASE_PATH
Base path for cashflow Rest API.- See Also:
-
API_AUTHORITIES
Authority (role) required in order to be able to invoke greeting API.- See Also:
-
cashFlowService
cashflow service. -
requestContextManager
@Autowired private es.kukenan.smartfi.common.context.RequestContextManager requestContextManagerRequest context manager. -
connectedContractCacheOperation
Connected Contract Cache Operation. -
contractService
Contract Service. -
jwtService
@Autowired private es.kukenan.smartfi.common.service.jwt.JwtService jwtServiceJWT service.
-
-
Constructor Details
-
CashFlowRestController
public CashFlowRestController()
-
-
Method Details
-
findProductCashFlow
@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(produces="application/json", path="/api/v1/cashflow") public org.springframework.http.ResponseEntity<es.kukenan.smartfi.microservice.contracts.api.cashflow.CashFlowResponseDto> findProductCashFlow(es.kukenan.smartfi.common.security.WalletAuthentication walletAuthentication) cash flow endpoint.- Parameters:
walletAuthentication- user credentials.- Returns:
- cashflow result.
-