Class TrackerAccountServiceMain
java.lang.Object
com.endurancetrio.business.tracker.service.TrackerAccountServiceMain
- All Implemented Interfaces:
TrackerAccountService
-
Constructor Summary
ConstructorsConstructorDescriptionTrackerAccountServiceMain(TrackerAccountRepository repository, TrackerAccountMapper trackerAccountMapper, org.springframework.security.crypto.password.PasswordEncoder passwordEncoder) -
Method Summary
Modifier and TypeMethodDescriptiongetByOwner(String owner) Retrieves the tracker account details for the specified owner.booleanvalidateKey(String owner, String key) Validates the provided key for the given owner.
-
Constructor Details
-
TrackerAccountServiceMain
@Autowired public TrackerAccountServiceMain(TrackerAccountRepository repository, TrackerAccountMapper trackerAccountMapper, org.springframework.security.crypto.password.PasswordEncoder passwordEncoder)
-
-
Method Details
-
getByOwner
Description copied from interface:TrackerAccountServiceRetrieves the tracker account details for the specified owner.- Specified by:
getByOwnerin interfaceTrackerAccountService- Parameters:
owner- the owner of the tracker account- Returns:
- the
TrackerAccountDTOcontaining the account details
-
validateKey
Description copied from interface:TrackerAccountServiceValidates the provided key for the given owner.- Specified by:
validateKeyin interfaceTrackerAccountService- Parameters:
owner- the owner of the keykey- the key to validate- Returns:
- true if the provided key is valid and the account is enabled, false otherwise
-