org.kuali.student.admin.messages.service.impl
Class MessageServiceImpl

java.lang.Object
  extended by org.kuali.student.admin.messages.service.impl.MessageServiceImpl
All Implemented Interfaces:
MessageService, InitializingBean

public class MessageServiceImpl
extends Object
implements MessageService, InitializingBean


Field Summary
private  org.kuali.rice.kns.service.BusinessObjectService businessObjectService
           
protected  boolean cachingEnabled
           
protected  Map<String,org.kuali.rice.core.util.MaxAgeSoftReference<MessageList>> msgsCache
           
protected  int msgsCacheMaxAgeSeconds
           
protected  int msgsCacheMaxSize
           
 
Constructor Summary
MessageServiceImpl()
           
 
Method Summary
 Message addMessage(Message messageInfo)
           
 void afterPropertiesSet()
           
protected  org.kuali.rice.kns.service.BusinessObjectService getBusinessObjectService()
           
 LocaleKeyList getLocales()
           
 Message getMessage(String localeKey, String messageGroupKey, String messageKey)
           
 MessageGroupKeyList getMessageGroups()
           
 MessageList getMessages(String localeKey, String messageGroupKey)
           
 MessageList getMessagesByGroups(String localeKey, MessageGroupKeyList messageGroupKeyList)
           
 void setCachingEnabled(boolean cachingEnabled)
           
protected  Message toMessage(MessageEntity entity)
           
protected  MessageEntity toMessageEntity(Message message)
           
 Message updateMessage(String localeKey, String messageGroupKey, String messageKey, Message messageInfo)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cachingEnabled

protected boolean cachingEnabled

msgsCacheMaxSize

protected int msgsCacheMaxSize

msgsCacheMaxAgeSeconds

protected int msgsCacheMaxAgeSeconds

msgsCache

protected Map<String,org.kuali.rice.core.util.MaxAgeSoftReference<MessageList>> msgsCache

businessObjectService

private org.kuali.rice.kns.service.BusinessObjectService businessObjectService
Constructor Detail

MessageServiceImpl

public MessageServiceImpl()
Method Detail

addMessage

public Message addMessage(Message messageInfo)
Specified by:
addMessage in interface MessageService

getLocales

public LocaleKeyList getLocales()
Specified by:
getLocales in interface MessageService

getMessage

public Message getMessage(String localeKey,
                          String messageGroupKey,
                          String messageKey)
Specified by:
getMessage in interface MessageService

getMessageGroups

public MessageGroupKeyList getMessageGroups()
Specified by:
getMessageGroups in interface MessageService

getMessages

public MessageList getMessages(String localeKey,
                               String messageGroupKey)
Specified by:
getMessages in interface MessageService

getMessagesByGroups

public MessageList getMessagesByGroups(String localeKey,
                                       MessageGroupKeyList messageGroupKeyList)
Specified by:
getMessagesByGroups in interface MessageService

updateMessage

public Message updateMessage(String localeKey,
                             String messageGroupKey,
                             String messageKey,
                             Message messageInfo)
Specified by:
updateMessage in interface MessageService

toMessageEntity

protected MessageEntity toMessageEntity(Message message)

toMessage

protected Message toMessage(MessageEntity entity)

getBusinessObjectService

protected org.kuali.rice.kns.service.BusinessObjectService getBusinessObjectService()

afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception
Specified by:
afterPropertiesSet in interface InitializingBean
Throws:
Exception

setCachingEnabled

public void setCachingEnabled(boolean cachingEnabled)


Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.