java.lang.Object
de.hybris.platform.usageconsumptiontmfwebservices.v1.controllers.UcBaseController
Direct Known Subclasses:
UcUsageConsumptionReportController

@Deprecated(since="2208") public class UcBaseController extends Object
Deprecated.
2208
Abstract Base Controller defining common methods and fields to be used by other API controllers.
Since:
2108
  • Field Details

  • Constructor Details

    • UcBaseController

      public UcBaseController()
      Deprecated.
  • Method Details

    • init

      @PostConstruct public void init()
      Deprecated.
    • handleModelNotFoundException

      @ResponseStatus(NOT_FOUND) @ResponseBody @ExceptionHandler(de.hybris.platform.servicelayer.exceptions.ModelNotFoundException.class) public Error handleModelNotFoundException(Exception ex)
      Deprecated.
    • getUnsuccessfulResponse

      protected org.springframework.http.ResponseEntity getUnsuccessfulResponse(String errorMessage, Exception e, org.springframework.http.HttpStatus httpStatus)
      Deprecated.
    • getQueryStringWithoutOffsetAndLimit

      protected String getQueryStringWithoutOffsetAndLimit(javax.servlet.http.HttpServletRequest request)
      Deprecated.
    • filter

      protected String filter(String value)
      Deprecated.
    • hasRole

      protected boolean hasRole(String role, org.springframework.security.core.Authentication authentication)
      Deprecated.
      Checks if the user has given role.
      Parameters:
      role - The role is provided as string
      Returns:
      False if logged in user doesn't have given role, otherwise true.
    • sanitize

      protected String sanitize(String input)
      Deprecated.
    • getDataMapper

      protected de.hybris.platform.webservicescommons.mapping.DataMapper getDataMapper()
      Deprecated.
    • getObjectMapper

      protected com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
      Deprecated.