public class DefaultMessageHolder extends Object implements MessageHolder
Modifier and Type | Method and Description |
---|---|
void |
addActionError(String messageKey) |
void |
addActionError(String messageKey,
Object... args) |
void |
addActionInfo(String messageKey,
Object... args) |
void |
addActionSuccess(String messageKey,
Object... args) |
void |
addActionWarning(String messageKey,
Object... args) |
void |
addFieldError(String field,
String messageKey) |
List<Message> |
getActionErrors() |
List<Message> |
getActionInfos() |
List<Message> |
getActionMessages(MessageLevel level) |
List<Message> |
getActionSuccesses() |
List<Message> |
getActionWarnings() |
Map<String,List<Message>> |
getFieldErrors() |
boolean |
hasErrors() |
public boolean hasErrors()
hasErrors
in interface MessageHolder
public void addFieldError(String field, String messageKey)
addFieldError
in interface MessageHolder
public void addActionError(String messageKey)
addActionError
in interface MessageHolder
public void addActionError(String messageKey, Object... args)
addActionError
in interface MessageHolder
public void addActionWarning(String messageKey, Object... args)
addActionWarning
in interface MessageHolder
public void addActionInfo(String messageKey, Object... args)
addActionInfo
in interface MessageHolder
public void addActionSuccess(String messageKey, Object... args)
addActionSuccess
in interface MessageHolder
public List<Message> getActionErrors()
getActionErrors
in interface MessageHolder
public List<Message> getActionWarnings()
getActionWarnings
in interface MessageHolder
public List<Message> getActionInfos()
getActionInfos
in interface MessageHolder
public List<Message> getActionSuccesses()
getActionSuccesses
in interface MessageHolder
public List<Message> getActionMessages(MessageLevel level)
public Map<String,List<Message>> getFieldErrors()
getFieldErrors
in interface MessageHolder
Copyright © 2003–2016 Atlassian. All rights reserved.