Class GetAllCustomPropertyServiceImpl

java.lang.Object
com.skava.service.impl.GetAllCustomPropertyServiceImpl
All Implemented Interfaces:
com.skava.core.EcommService<UserPropertiesRequest,UsersResponse>, GetAllCustomPropertyService

@Service @Transactional public class GetAllCustomPropertyServiceImpl extends Object implements GetAllCustomPropertyService
This service class implements GetAllCustomPropertyService and handles the get all custom property service request, process it and save the details in DB. It also implements business logic required to retrieve all user custom properties.
Author:
Infosys Equinox
  • Constructor Details

    • GetAllCustomPropertyServiceImpl

      public GetAllCustomPropertyServiceImpl()
      Default Constructor
  • Method Details

    • getValidator

      public List<com.skava.core.validation.ValidatorComponent> getValidator()
      This method is used to get the respective validator class for this get all custom property service.
      Specified by:
      getValidator in interface com.skava.core.EcommService<UserPropertiesRequest,UsersResponse>
      Returns:
      The list of ValidatorComponent object.
    • methodFallback

      public UsersResponse methodFallback(UserPropertiesRequest request)
      Circuit breaker fall-back method monitors for failures and once failures reach certain threshold, the circuit breaker trips and returns error response accordingly - Method fallback.
      Parameters:
      request - Holds UserPropertiesRequest object.
      Returns:
      The UsersResponse object.
    • process

      @HystrixCommand(commandKey="user-key", fallbackMethod="methodFallback", ignoreExceptions=com.skava.core.validation.ValidateException.class) public UsersResponse process(@Valid @Valid UserPropertiesRequest request)
      This service is used to load all available custom properties for the user.
      Specified by:
      process in interface com.skava.core.EcommService<UserPropertiesRequest,UsersResponse>
      Parameters:
      request - Holds UserPropertiesRequest object which is used to load all the custom property from database.
      Returns:
      The UsersResponse which returns the success response code and message and if any validations fails, throws an validate exception.