org.openmms.ejb.client
Class MM2_EjbStorageClient

java.lang.Object
  |
  +--org.openmms.ejb.client.MM2_EjbStorageClient
All Implemented Interfaces:
StorageInterface

public class MM2_EjbStorageClient
extends java.lang.Object
implements StorageInterface

Title: MM2_EjbStorageClient

Description:

Copyright: Copyright (c) 2003 OpenMMS.org


Constructor Summary
MM2_EjbStorageClient()
          Constructor, creates a new MM2_EjbStorageClient
 
Method Summary
 boolean deleteMM(java.lang.String ID)
          Receives MM-ID and contacts server for deleting MM
 boolean fetchMM(java.lang.String ID, MM_Data mm)
          Fetches the MM (identified by given ID) from the storage-bean
 boolean sendRetrievalStatus(java.lang.String ID, boolean status)
          Receives an MM-ID and status(for deleting).
 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)
          Sends the MM + meta-data to storage-bean, and receives response.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MM2_EjbStorageClient

public MM2_EjbStorageClient()
Constructor, creates a new MM2_EjbStorageClient

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
Sends the MM + meta-data to storage-bean, and receives response.

Specified by:
storeMM in interface StorageInterface
Parameters:
ID -
mm -
expiry -
deliveryTime -
deliveryReportValue -
readReportValue -
Returns:
true if the MM + meta-data is stored successfully
Throws:
OpenMMSException

fetchMM

public boolean fetchMM(java.lang.String ID,
                       MM_Data mm)
                throws OpenMMSException
Fetches the MM (identified by given ID) from the storage-bean

Specified by:
fetchMM in interface StorageInterface
Parameters:
ID -
mm -
Returns:
true if the MM is fetched OK, otherwise false
Throws:
OpenMMSException

sendRetrievalStatus

public boolean sendRetrievalStatus(java.lang.String ID,
                                   boolean status)
                            throws OpenMMSException
Receives an MM-ID and status(for deleting). The MM is deleted if true.

Specified by:
sendRetrievalStatus in interface StorageInterface
Parameters:
ID -
status -
Returns:
true if MM status is OK and deleted, otherwise false
Throws:
OpenMMSException

deleteMM

public boolean deleteMM(java.lang.String ID)
                 throws OpenMMSException
Receives MM-ID and contacts server for deleting MM

Specified by:
deleteMM in interface StorageInterface
Parameters:
ID -
Returns:
true if message is deleted, otherwise returns false
Throws:
OpenMMSException