org.kuali.rice.kcb.service
Interface MessageService

All Known Implementing Classes:
MessageServiceImpl

public interface MessageService

The MessageService class is responsible various functions regarding the Message records that exist within the system.

Author:
Kuali Rice Team (rice.collab@kuali.org)

Method Summary
 void deleteMessage(Message message)
          Deletes a message
 Collection<Message> getAllMessages()
          Returns all messages in the system
 Message getMessage(Long id)
          Finds a message by id
 Message getMessageByOriginId(String originId)
          Finds a message by origin id
 void saveMessage(Message message)
          Saves a message
 

Method Detail

saveMessage

void saveMessage(Message message)
Saves a message

Parameters:
message - a Message

deleteMessage

void deleteMessage(Message message)
Deletes a message

Parameters:
message - a Message

getMessage

Message getMessage(Long id)
Finds a message by id

Parameters:
id - the message id
Returns:
the message object if found

getMessageByOriginId

Message getMessageByOriginId(String originId)
Finds a message by origin id

Parameters:
id - the origin message id
Returns:
the message object if found

getAllMessages

Collection<Message> getAllMessages()
Returns all messages in the system

Returns:
all messages in the system


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