Class UserServiceImpl

All Implemented Interfaces:
AnyService<UserTO>, JAXRSService, UserService

public class UserServiceImpl extends AbstractAnyService<UserTO,UserCR,UserUR> implements UserService
  • Field Details

    • userDAO

      protected final UserDAO userDAO
    • logic

      protected final UserLogic logic
    • syncopeLogic

      protected final SyncopeLogic syncopeLogic
  • Constructor Details

  • Method Details

    • getAnyDAO

      protected AnyDAO<?> getAnyDAO()
      Specified by:
      getAnyDAO in class AbstractAnyService<UserTO,UserCR,UserUR>
    • getAnyLogic

      protected AbstractAnyLogic<UserTO,UserCR,UserUR> getAnyLogic()
      Specified by:
      getAnyLogic in class AbstractAnyService<UserTO,UserCR,UserUR>
    • newUpdateReq

      protected UserUR newUpdateReq(String key)
      Specified by:
      newUpdateReq in class AbstractAnyService<UserTO,UserCR,UserUR>
    • create

      public Response create(UserCR createReq)
      Description copied from interface: UserService
      Creates a new user.
      Specified by:
      create in interface UserService
      Parameters:
      createReq - user create request
      Returns:
      Response object featuring Location header of created user as well as the user itself enriched with propagation status information
    • update

      public Response update(UserUR updateReq)
      Description copied from interface: UserService
      Updates user matching the provided key.
      Specified by:
      update in interface UserService
      Parameters:
      updateReq - modification to be applied to user matching the provided key
      Returns:
      Response object featuring the updated user enriched with propagation status information
    • status

      public Response status(StatusR statusR)
      Description copied from interface: UserService
      Performs a status update on given user.
      Specified by:
      status in interface UserService
      Parameters:
      statusR - status update details
      Returns:
      Response object featuring the updated user enriched with propagation status information
    • verifySecurityAnswer

      public void verifySecurityAnswer(String username, String securityAnswer)
      Description copied from interface: UserService
      Provides answer for the security question configured for user matching the given username, if any. If provided answer matches the one stored for that user, check completes successfully, otherwise an error is returned.
      Specified by:
      verifySecurityAnswer in interface UserService
      Parameters:
      username - username for which the security answer is provided
      securityAnswer - actual answer text