Search in sources :

Example 1 with FessMessages

use of org.codelibs.fess.mylasta.action.FessMessages in project fess by codelibs.

the class FessApiAction method getMessage.

protected String getMessage(final VaMessenger<FessMessages> validationMessagesLambda) {
    final FessMessages messages = new FessMessages();
    validationMessagesLambda.message(messages);
    return messageManager.toMessageList(request.getLocale() == null ? Locale.ENGLISH : request.getLocale(), messages).stream().collect(Collectors.joining(" "));
}
Also used : FessMessages(org.codelibs.fess.mylasta.action.FessMessages)

Example 2 with FessMessages

use of org.codelibs.fess.mylasta.action.FessMessages in project fess by codelibs.

the class FessBaseAction method saveInfo.

// ===================================================================================
// Small Helper
// ============
protected void saveInfo(final VaMessenger<FessMessages> validationMessagesLambda) {
    final FessMessages messages = createMessages();
    validationMessagesLambda.message(messages);
    sessionManager.info().saveMessages(messages);
}
Also used : FessMessages(org.codelibs.fess.mylasta.action.FessMessages)

Example 3 with FessMessages

use of org.codelibs.fess.mylasta.action.FessMessages in project fess by codelibs.

the class FessBaseAction method saveError.

protected void saveError(final VaMessenger<FessMessages> validationMessagesLambda) {
    final FessMessages messages = createMessages();
    validationMessagesLambda.message(messages);
    sessionManager.errors().saveMessages(messages);
}
Also used : FessMessages(org.codelibs.fess.mylasta.action.FessMessages)

Aggregations

FessMessages (org.codelibs.fess.mylasta.action.FessMessages)3