Class DefaultMessageHolder
- java.lang.Object
-
- com.atlassian.confluence.validation.DefaultMessageHolder
-
- All Implemented Interfaces:
MessageHolder
public class DefaultMessageHolder extends Object implements MessageHolder
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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()
-
-
-
Method Detail
-
hasErrors
public boolean hasErrors()
- Specified by:
hasErrors
in interfaceMessageHolder
-
addFieldError
public void addFieldError(String field, String messageKey)
- Specified by:
addFieldError
in interfaceMessageHolder
-
addActionError
public void addActionError(String messageKey)
- Specified by:
addActionError
in interfaceMessageHolder
-
addActionError
public void addActionError(String messageKey, Object... args)
- Specified by:
addActionError
in interfaceMessageHolder
-
addActionWarning
public void addActionWarning(String messageKey, Object... args)
- Specified by:
addActionWarning
in interfaceMessageHolder
-
addActionInfo
public void addActionInfo(String messageKey, Object... args)
- Specified by:
addActionInfo
in interfaceMessageHolder
-
addActionSuccess
public void addActionSuccess(String messageKey, Object... args)
- Specified by:
addActionSuccess
in interfaceMessageHolder
-
getActionErrors
public List<Message> getActionErrors()
- Specified by:
getActionErrors
in interfaceMessageHolder
-
getActionWarnings
public List<Message> getActionWarnings()
- Specified by:
getActionWarnings
in interfaceMessageHolder
-
getActionInfos
public List<Message> getActionInfos()
- Specified by:
getActionInfos
in interfaceMessageHolder
-
getActionSuccesses
public List<Message> getActionSuccesses()
- Specified by:
getActionSuccesses
in interfaceMessageHolder
-
getActionMessages
public List<Message> getActionMessages(MessageLevel level)
-
getFieldErrors
public Map<String,List<Message>> getFieldErrors()
- Specified by:
getFieldErrors
in interfaceMessageHolder
-
-