Package org.kuali.rice.krad.messages
Interface MessageProvider
- All Known Implementing Classes:
DatabaseMessageProvider,ResourceMessageProvider
public interface MessageProvider
API for message providers
A message provider fronts an external repository and provides messages from that repository
to the application. The provider must support the following message retrieval methods and be registered
with the MessageService implementation
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
-
Method Summary
Modifier and TypeMethodDescriptiongetAllMessagesForComponent(String namespace, String component, String locale) Gets all message objects for the given namespace, component, and localegetMessage(String namespace, String component, String key, String locale) Gets theMessageobject that has the given namespace, component, key, and locale
-
Method Details
-
getMessage
Gets theMessageobject that has the given namespace, component, key, and locale- Parameters:
namespace- namespace code the message belongs tocomponent- component code the namespace is associated withkey- key that identifies the message within the namespace and componentlocale- locale code for the message to return- Returns:
- Message matching message object, or null if a message was not found
-
getAllMessagesForComponent
Gets all message objects for the given namespace, component, and locale- Parameters:
namespace- namespace code the message belongs tocomponent- component code the namespace is associated withlocale- locale code for the message to return- Returns:
- Collection<Message> collection of messages that match, or empty collection if no messages are found
-