Class SecurityOrchestrator

java.lang.Object
com.bluebell.greenhouse.planter.orchestrators.security.SecurityOrchestrator
All Implemented Interfaces:
GenericOrchestrator

@Service @Transactional public class SecurityOrchestrator extends Object implements GenericOrchestrator
Owns the unit of work for the security endpoints.
Version:
3.0.5
Author:
Stephen Prizio
  • Constructor Details

    • SecurityOrchestrator

      public SecurityOrchestrator()
  • Method Details

    • isUsernameTaken

      @Transactional(readOnly=true) public boolean isUsernameTaken(String username)
      Determines whether the given username is already in use.
      Parameters:
      username - username
      Returns:
      true if taken
    • isEmailTaken

      @Transactional(readOnly=true) public boolean isEmailTaken(String email)
      Determines whether the given email is already in use.
      Parameters:
      email - email
      Returns:
      true if taken
    • login

      public UserDTO login(String usernameEmail, String password)
      Logs a User into bluebell.
      Parameters:
      usernameEmail - username or email
      password - password
      Returns:
      UserDTO
    • requestPasswordReset

      public void requestPasswordReset(String email)
      Requests a password reset for the given email.
      Parameters:
      email - email
    • resetPassword

      public void resetPassword(String token, String password)
      Resets a password against the given token.
      Parameters:
      token - reset token
      password - new password