Class AccountServiceImpl

java.lang.Object
org.openwms.common.account.impl.AccountServiceImpl
All Implemented Interfaces:
AccountService

@Validated @TxService class AccountServiceImpl extends Object implements AccountService
A AccountServiceImpl.
Author:
Heiko Scherrer
  • Field Details

    • repository

      private final AccountRepository repository
    • translator

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

    • AccountServiceImpl

      AccountServiceImpl(AccountRepository repository, org.ameba.i18n.Translator translator)
  • Method Details

    • findAll

      @Measured @Transactional(readOnly=true) @NotNull public @NotNull List<Account> findAll()
      Find and return a list of all existing Accounts.
      Specified by:
      findAll in interface AccountService
      Returns:
      A list, never null
    • findByPKey

      @Measured @Transactional(readOnly=true) @NotNull public @NotNull Account findByPKey(@NotBlank @NotBlank String pKey)
      Find and return a single Account instance identified by its persistent key.
      Specified by:
      findByPKey in interface AccountService
      Parameters:
      pKey - The persistent key
      Returns:
      The Account instance
    • findByIdentifier

      @Measured @Transactional(readOnly=true) public Optional<Account> findByIdentifier(@NotBlank @NotBlank String identifier)
      Find and return the Account.
      Specified by:
      findByIdentifier in interface AccountService
      Parameters:
      identifier - The Account's identifier
      Returns:
      The Account instance
    • findByName

      @Measured @Transactional(readOnly=true) public Optional<Account> findByName(@NotBlank @NotBlank String name)
      Find and return the Account.
      Specified by:
      findByName in interface AccountService
      Parameters:
      name - The Account's name
      Returns:
      The Account instance
    • findDefault

      @Measured @Transactional(readOnly=true) public Optional<Account> findDefault()
      Specified by:
      findDefault in interface AccountService
      Returns: