public abstract class AbstractOhfController extends Object
Constructor and Description |
---|
AbstractOhfController() |
Modifier and Type | Method and Description |
---|---|
protected String |
getMessage(String code,
Object... args)
Gets localization message from
selected language . |
protected String |
getMessageEN(String code,
Object... args)
Gets localization message in
Locale.ENGLISH . |
protected org.springframework.context.MessageSource |
getMessageSource()
Gets
MessageSource . |
protected static <T> List<T> |
pageContentList(List<T> list,
org.springframework.data.domain.Pageable pageable)
Gets sublist of input list for specified page.
|
public static final String BASE_PATH
protected final org.springframework.context.MessageSource getMessageSource()
MessageSource
.protected String getMessage(String code, Object... args)
selected language
.code
- The code messageargs
- Message argumentsprotected String getMessageEN(String code, Object... args)
Locale.ENGLISH
.code
- The code messageargs
- Message argumentsLocale.ENGLISH
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.