Class SpiBaseController
java.lang.Object
de.hybris.platform.subscribedproducttmfwebservices.v1.controllers.SpiBaseController
- Direct Known Subclasses:
SpiListenerController,SpiProductsController
Deprecated.
2208
Abstract Base Controller defining common methods and fields to be used by other API controllers.
- Since:
- 2105
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringDeprecated.protected de.hybris.platform.webservicescommons.mapping.DataMapperDeprecated.protected de.hybris.platform.servicelayer.i18n.I18NServiceDeprecated.protected org.springframework.context.MessageSourceDeprecated.protected com.fasterxml.jackson.databind.ObjectMapperDeprecated.protected StringgetQueryStringWithoutOffsetAndLimit(javax.servlet.http.HttpServletRequest request) Deprecated.protected org.springframework.http.ResponseEntitygetUnsuccessfulResponse(String errorMessage, Exception e, org.springframework.http.HttpStatus httpStatus) Deprecated.protected org.springframework.http.ResponseEntitygetUnsuccessfulResponse(String message, org.springframework.http.HttpStatus httpStatus) Deprecated.Deprecated.protected booleanDeprecated.Checks if the user has given role.voidinit()Deprecated.protected StringDeprecated.protected StringDeprecated.
-
Constructor Details
-
SpiBaseController
public SpiBaseController()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. -
getUnsuccessfulResponse
protected org.springframework.http.ResponseEntity getUnsuccessfulResponse(String message, org.springframework.http.HttpStatus httpStatus) Deprecated. -
getQueryStringWithoutOffsetAndLimit
Deprecated. -
filter
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.
-
validate
protected String validate(Object object, String objectName, org.springframework.validation.Validator validator) Deprecated. -
getMessageSource
protected org.springframework.context.MessageSource getMessageSource()Deprecated. -
getI18nService
protected de.hybris.platform.servicelayer.i18n.I18NService getI18nService()Deprecated. -
sanitize
Deprecated. -
getDataMapper
protected de.hybris.platform.webservicescommons.mapping.DataMapper getDataMapper()Deprecated. -
getObjectMapper
protected com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()Deprecated.
-