com.sun.im.provider
Interface NewsStorageProvider

All Superinterfaces:
ConferenceStorageProvider

public interface NewsStorageProvider
extends ConferenceStorageProvider

news storage interface. This class allows the server code to retrieve and save group chat affiliations. It is extended by classes providing actual storage.


Method Summary
 void deleteMessage(java.lang.String newsAddress, java.lang.String msgId)
          add a Message to the Storage
 void deleteMessages(java.lang.String newsAddress)
          delete all the messages from the persistent Storage
 java.lang.String getMessage(java.lang.String newsAddress, java.lang.String msgId)
          Retrieve the content of a specific message
 java.lang.String[] getMessageIds(java.lang.String newsAddress)
          Retrieve all the messages ids of the messages from the persistent Storage
 void saveMessage(java.lang.String newsAddress, java.lang.String msgId, java.lang.String xml)
          add a Message to the Storage
 
Methods inherited from interface com.sun.im.provider.ConferenceStorageProvider
create, destroy, exists, loadAffiliations, loadConfiguration, saveAffiliations, saveConfiguration, search, search
 

Method Detail

saveMessage

public void saveMessage(java.lang.String newsAddress,
                        java.lang.String msgId,
                        java.lang.String xml)
                 throws java.lang.Exception
add a Message to the Storage

Parameters:
xml - the message to be saved in xml format
msgId - the message Identifier
Throws:
java.lang.Exception

deleteMessage

public void deleteMessage(java.lang.String newsAddress,
                          java.lang.String msgId)
                   throws java.lang.Exception
add a Message to the Storage

Parameters:
msgId - the message Identifier
Throws:
java.lang.Exception

deleteMessages

public void deleteMessages(java.lang.String newsAddress)
                    throws java.lang.Exception
delete all the messages from the persistent Storage

Throws:
java.lang.Exception

getMessage

public java.lang.String getMessage(java.lang.String newsAddress,
                                   java.lang.String msgId)
                            throws java.lang.Exception
Retrieve the content of a specific message

Parameters:
newsAddress - The persistent newschannel's address.
msgId - the message Identifier
Throws:
java.lang.Exception

getMessageIds

public java.lang.String[] getMessageIds(java.lang.String newsAddress)
                                 throws java.lang.Exception
Retrieve all the messages ids of the messages from the persistent Storage

Parameters:
newsAddress - The persistent newschannel's newsAddress.
Throws:
java.lang.Exception