|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.krad.messages.providers.DatabaseMessageProvider
public class DatabaseMessageProvider
Implementation of MessageProvider
that stores messages in a database
Constructor Summary | |
---|---|
DatabaseMessageProvider()
|
Method Summary | |
---|---|
Collection<Message> |
getAllMessagesForComponent(String namespace,
String component,
String locale)
Gets all message objects for the given namespace, component, and locale |
LookupService |
getLookupService()
|
Message |
getMessage(String namespace,
String component,
String key,
String locale)
Gets the Message object that has the given namespace, component, key, and locale |
protected Collection<Message> |
getMessageByCriteria(String namespace,
String component,
String key,
String locale)
Performs a query using the LookupService to retrieve messages that match the given
namespace, component, name, and locale. |
void |
setLookupService(LookupService lookupService)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DatabaseMessageProvider()
Method Detail |
---|
public Message getMessage(String namespace, String component, String key, String locale)
MessageProvider
Message
object that has the given namespace, component, key, and locale
getMessage
in interface MessageProvider
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
MessageProvider.getMessage(java.lang.String, java.lang.String,
java.lang.String, java.lang.String)
public Collection<Message> getAllMessagesForComponent(String namespace, String component, String locale)
MessageProvider
getAllMessagesForComponent
in interface MessageProvider
namespace
- namespace code the message belongs tocomponent
- component code the namespace is associated withlocale
- locale code for the message to return
MessageProvider.getAllMessagesForComponent(java.lang.String,
java.lang.String, java.lang.String)
protected Collection<Message> getMessageByCriteria(String namespace, String component, String key, String locale)
LookupService
to retrieve messages that match the given
namespace, component, name, and locale. Not parameters maybe empty in which case they will not be added
to the criteria
namespace
- namespace code to search forcomponent
- component code to search forkey
- key of the parameter to findlocale
- locale code to search for
public LookupService getLookupService()
public void setLookupService(LookupService lookupService)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |