org.openmms.intface
Interface StorageInterface

All Known Implementing Classes:
MM2_EjbStorageClient

public interface StorageInterface


Method Summary
 boolean deleteMM(java.lang.String ID)
          Interface function for deleting an MM from storage
 boolean fetchMM(java.lang.String ID, MM_Data mm)
          Interface function for fetching an MM from storage
 boolean sendRetrievalStatus(java.lang.String ID, boolean status)
          Interface function for sending the MM retrieval status to storage
 boolean storeMM(java.lang.String ID, MM_Data mm, java.lang.String expiry, java.lang.String deliveryTime, java.lang.String deliveryReportValue, java.lang.String readReportValue)
          Interface function for sending an MM to storage
 

Method Detail

storeMM

public boolean storeMM(java.lang.String ID,
                       MM_Data mm,
                       java.lang.String expiry,
                       java.lang.String deliveryTime,
                       java.lang.String deliveryReportValue,
                       java.lang.String readReportValue)
                throws OpenMMSException
Interface function for sending an MM to storage

Parameters:
ID -
mm -
expiry -
deliveryTime -
deliveryReportValue -
readReportValue -
Returns:
true if message is stored, false otherwise
Throws:
OpenMMSException

fetchMM

public boolean fetchMM(java.lang.String ID,
                       MM_Data mm)
                throws OpenMMSException
Interface function for fetching an MM from storage

Parameters:
ID -
mm -
Returns:
true if MM is fetched ok, false otherwise
Throws:
OpenMMSException

sendRetrievalStatus

public boolean sendRetrievalStatus(java.lang.String ID,
                                   boolean status)
                            throws OpenMMSException
Interface function for sending the MM retrieval status to storage

Parameters:
ID -
status -
Returns:
true if status is sendt ok, false otherwise
Throws:
OpenMMSException

deleteMM

public boolean deleteMM(java.lang.String ID)
                 throws OpenMMSException
Interface function for deleting an MM from storage

Parameters:
ID -
Returns:
true if deleted successfully, false otherwise
Throws:
OpenMMSException