public class BaseController
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
DEFAULT_CURRENT_PAGE |
protected static java.lang.String |
DEFAULT_FIELD_SET |
protected static java.lang.String |
DEFAULT_PAGE_SIZE |
protected static java.lang.String |
HEADER_TOTAL_COUNT |
| Constructor and Description |
|---|
BaseController() |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
addPaginationField(java.lang.String fields)
Adds pagination field to the 'fields' parameter
|
protected DataMapper |
getDataMapper() |
ErrorListWsDTO |
handleDuplicateUidException(DuplicateUidException ex) |
protected ErrorListWsDTO |
handleErrorInternal(java.lang.String type,
java.lang.String message) |
ErrorListWsDTO |
handleModelNotFoundException(java.lang.Exception ex) |
protected static java.lang.String |
logParam(java.lang.String paramName,
long paramValue) |
protected static java.lang.String |
logParam(java.lang.String paramName,
java.lang.Long paramValue) |
protected static java.lang.String |
logParam(java.lang.String paramName,
java.lang.String paramValue) |
protected static java.lang.String |
logValue(java.lang.String paramValue) |
protected static java.lang.String |
sanitize(java.lang.String input) |
protected void |
setDataMapper(DataMapper dataMapper) |
protected void |
setTotalCountHeader(HttpServletResponse response,
PaginationData paginationDto) |
protected void |
setTotalCountHeader(HttpServletResponse response,
PaginationWsDTO paginationDto) |
protected void |
validate(java.lang.Object object,
java.lang.String objectName,
Validator validator) |
protected static final java.lang.String DEFAULT_PAGE_SIZE
protected static final java.lang.String DEFAULT_CURRENT_PAGE
protected static final java.lang.String DEFAULT_FIELD_SET
protected static final java.lang.String HEADER_TOTAL_COUNT
protected static java.lang.String logParam(java.lang.String paramName,
long paramValue)
protected static java.lang.String logParam(java.lang.String paramName,
java.lang.Long paramValue)
protected static java.lang.String logParam(java.lang.String paramName,
java.lang.String paramValue)
protected static java.lang.String logValue(java.lang.String paramValue)
public ErrorListWsDTO handleModelNotFoundException(java.lang.Exception ex)
protected ErrorListWsDTO handleErrorInternal(java.lang.String type, java.lang.String message)
protected void validate(java.lang.Object object,
java.lang.String objectName,
Validator validator)
protected java.lang.String addPaginationField(java.lang.String fields)
fields - protected void setTotalCountHeader(HttpServletResponse response,
PaginationWsDTO paginationDto)
protected void setTotalCountHeader(HttpServletResponse response,
PaginationData paginationDto)
protected static java.lang.String sanitize(java.lang.String input)
protected DataMapper getDataMapper()
protected void setDataMapper(DataMapper dataMapper)
public ErrorListWsDTO handleDuplicateUidException(DuplicateUidException ex)
Copyright © 2018 SAP SE. All Rights Reserved.