Class TrackerAccountServiceMain

java.lang.Object
com.endurancetrio.business.tracker.service.TrackerAccountServiceMain
All Implemented Interfaces:
TrackerAccountService

@Service public class TrackerAccountServiceMain extends Object implements TrackerAccountService
  • Constructor Details

    • TrackerAccountServiceMain

      @Autowired public TrackerAccountServiceMain(TrackerAccountRepository repository, TrackerAccountMapper trackerAccountMapper, org.springframework.security.crypto.password.PasswordEncoder passwordEncoder)
  • Method Details

    • getByOwner

      @Transactional(readOnly=true) public TrackerAccountDTO getByOwner(String owner)
      Description copied from interface: TrackerAccountService
      Retrieves the tracker account details for the specified owner.
      Specified by:
      getByOwner in interface TrackerAccountService
      Parameters:
      owner - the owner of the tracker account
      Returns:
      the TrackerAccountDTO containing the account details
    • validateKey

      @Transactional(propagation=REQUIRES_NEW) public boolean validateKey(String owner, String key)
      Description copied from interface: TrackerAccountService
      Validates the provided key for the given owner.
      Specified by:
      validateKey in interface TrackerAccountService
      Parameters:
      owner - the owner of the key
      key - the key to validate
      Returns:
      true if the provided key is valid and the account is enabled, false otherwise