com.atlassian.confluence.validation
Interface MessageHolder

All Known Implementing Classes:
DefaultMessageHolder

public interface MessageHolder

An i18n- and character-escaping-agnostic collection of action and field error Messages.

Provides a similar interface to ValidationAware but with Messages instead of Strings.

Since:
4.2.3

Method Summary
 void addActionError(java.lang.String messageKey)
           
 void addActionError(java.lang.String messageKey, java.lang.Object... args)
           
 void addActionInfo(java.lang.String messageKey, java.lang.Object... args)
           
 void addActionSuccess(java.lang.String messageKey, java.lang.Object... args)
           
 void addActionWarning(java.lang.String messageKey, java.lang.Object... args)
           
 void addFieldError(java.lang.String field, java.lang.String messageKey)
           
 java.util.List<Message> getActionErrors()
           
 java.util.List<Message> getActionInfos()
           
 java.util.List<Message> getActionSuccesses()
           
 java.util.List<Message> getActionWarnings()
           
 java.util.Map<java.lang.String,java.util.List<Message>> getFieldErrors()
           
 boolean hasErrors()
           
 

Method Detail

hasErrors

boolean hasErrors()

addFieldError

void addFieldError(java.lang.String field,
                   java.lang.String messageKey)

addActionError

void addActionError(java.lang.String messageKey)

addActionError

void addActionError(java.lang.String messageKey,
                    java.lang.Object... args)

addActionWarning

void addActionWarning(java.lang.String messageKey,
                      java.lang.Object... args)

addActionInfo

void addActionInfo(java.lang.String messageKey,
                   java.lang.Object... args)

addActionSuccess

void addActionSuccess(java.lang.String messageKey,
                      java.lang.Object... args)

getActionErrors

java.util.List<Message> getActionErrors()

getActionWarnings

java.util.List<Message> getActionWarnings()

getActionInfos

java.util.List<Message> getActionInfos()

getActionSuccesses

java.util.List<Message> getActionSuccesses()

getFieldErrors

java.util.Map<java.lang.String,java.util.List<Message>> getFieldErrors()


Copyright © 2003-2014 Atlassian. All Rights Reserved.