Class AccountController

java.lang.Object
org.openwms.core.http.AbstractWebController
org.openwms.common.account.AccountController

@Validated @MeasuredRestController public class AccountController extends org.openwms.core.http.AbstractWebController
A AccountController is a measured and Spring managed REST controller that serves Account resources.
Author:
Heiko Scherrer
  • Field Details

    • service

      private final AccountService service
    • mapper

      private final AccountMapper mapper
    • translator

      private final org.ameba.i18n.Translator translator
  • Constructor Details

  • Method Details

    • findAll

      @GetMapping(value="/v1/accounts", produces="application/vnd.openwms.common.account-v1+json") public org.springframework.http.ResponseEntity<List<AccountVO>> findAll()
    • findByPKey

      @GetMapping(value="/v1/accounts/{pKey}", produces="application/vnd.openwms.common.account-v1+json") public org.springframework.http.ResponseEntity<AccountVO> findByPKey(@PathVariable("pKey") String pKey)
    • findDefault

      @GetMapping(value="/v1/accounts", params="default", produces="application/vnd.openwms.common.account-v1+json") public org.springframework.http.ResponseEntity<AccountVO> findDefault()
    • findByIdentifier

      @GetMapping(value="/v1/accounts", params="identifier", produces="application/vnd.openwms.common.account-v1+json") public org.springframework.http.ResponseEntity<AccountVO> findByIdentifier(@RequestParam("identifier") String identifier)
    • findByName

      @GetMapping(value="/v1/accounts", params="name", produces="application/vnd.openwms.common.account-v1+json") public org.springframework.http.ResponseEntity<AccountVO> findByName(@RequestParam("name") String name)
    • convertAndLinks

      private AccountVO convertAndLinks(Account account)
    • convertAndLinks

      private List<AccountVO> convertAndLinks(List<Account> accounts)
    • addSelfLink

      private AccountVO addSelfLink(AccountVO result)
    • index

      @GetMapping("/v1/accounts/index") public org.springframework.http.ResponseEntity<org.openwms.core.http.Index> index()