com.ibm.commerce.negotiation.beans
Class MessageInfoDataBean

java.lang.Object
  |
  +--com.ibm.ivj.ejb.runtime.AbstractAccessBean
        |
        +--com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
              |
              +--com.ibm.commerce.negotiation.objects.MessageInfoAccessBean
                    |
                    +--com.ibm.commerce.negotiation.beans.MessageInfoDataBean
All Implemented Interfaces:
DataBean, InputDataBean, MessageInfoAccessBeanData, MessageInfoInputDataBean, MessageInfoSmartDataBean, Protectable, java.io.Serializable, SmartDataBean

public class MessageInfoDataBean
extends MessageInfoAccessBean
implements MessageInfoInputDataBean, MessageInfoSmartDataBean, SmartDataBean, Protectable

Retrieves information about a message. The primary key is message id and recipient id.

See Also:
Serialized Form

Field Summary
protected  java.lang.String aString
           
protected  CommandContext commandContext
           
protected  java.lang.String messageId
           
protected  java.lang.String msgRecipientId
           
protected  TypedProperty requestProperties
           
 
Fields inherited from class com.ibm.ivj.ejb.runtime.AbstractAccessBean
DEFAULT_NAMESERVICE_PROVIDER_URL, DEFAULT_NAMESERVICE_TYPE, ejbRef
 
Fields inherited from interface com.ibm.commerce.beans.SmartDataBean
COPYRIGHT
 
Fields inherited from interface com.ibm.commerce.beans.DataBean
emptyString
 
Fields inherited from interface com.ibm.commerce.security.Protectable
COPYRIGHT
 
Constructor Summary
MessageInfoDataBean()
          Constructs a MessageInfoDataBean object.
MessageInfoDataBean(javax.ejb.EJBObject o)
          Constructs a MessageInfoDataBean object.
MessageInfoDataBean(MessageInfoAccessBean anAccess)
          Constructs a MessageInfoDataBean object.
 
Method Summary
 boolean fulfills(java.lang.Long member, java.lang.String relationship)
          Determines if a given member fulfills a given relationship with the resource.
 CommandContext getCommandContext()
          Get command context.
 java.lang.String getMessageId()
          Fetches the message id.
 java.lang.String getMsgDelayDate()
          Get message delay date.
 java.lang.String getMsgDelayTime()
          Get message delay time.
 java.lang.String getMsgPostDate()
          Get message post date.
 java.lang.String getMsgPostTime()
          Get message post time.
 java.lang.Long getOwner()
          Return the member reference number of the owner.
 TypedProperty getRequestProperties()
          Fetches the request properties.
 void populate()
          Retrieves message information and populates MessageInfoDataBean object.
 void setCommandContext(CommandContext aCommandContext)
          Set command context.
 void setMessageId(java.lang.String newMessageId)
          Set message id.
 void setMsgRecipientId(java.lang.String newRecipientId)
          Set message recipient id.
 void setRequestProperties(TypedProperty newRequestProperties)
          Copies the request properties.
 
Methods inherited from class com.ibm.commerce.negotiation.objects.MessageInfoAccessBean
commitCopyHelper, findAllMessages, findByRecipient, findByRecipientAndMultipleStatus, findByRecipientAndStatus, findBySender, findBySendStatus, findBySendStatusAndStatus, findByStatus, findSendableMessages, getBase, getBaseInEJBType, getContent, getDelayDays, getDelayHours, getDelayMinutes, getDelayTime, getDelayTimeInEJBType, getId, getIdInEJBType, getMsgParam1, getMsgParam2, getMsgParam3, getMsgType, getMsgTypeInEJBType, getPostTime, getPostTimeInEJBType, getRecipientId, getRecipientIdInEJBType, getSenderId, getSenderIdInEJBType, getSendStatus, getStatus, getSubject, getTargetId, getTargetIdInEJBType, refreshCopyHelper, setBase, setBase, setContent, setDelayTime, setDelayTime, setId, setId, setInitKey_id, setInitKey_recipientId, setMsgParam1, setMsgParam2, setMsgParam3, setMsgType, setMsgType, setPostTime, setPostTime, setRecipientId, setRecipientId, setSenderId, setSenderId, setSendStatus, setStatus, setSubject, setTargetId, setTargetId
 
Methods inherited from class com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
__getCache, __getCache, __getKey, __setCache, __setCache, __setKey, commitCopyHelper, createAccessBeans, createAccessBeans, instantiateEJBByPrimaryKey, refreshCopyHelper, setEJBRef
 
Methods inherited from class com.ibm.ivj.ejb.runtime.AbstractAccessBean
defaultJNDIName, defaultNameServiceType, defaultNameServiceURL, getEJBRef, getGlobalHome, getHome, getInit_GlobalNameServiceTypeName, getInit_GlobalNameServiceURLName, getInit_JNDIName, getInit_NameServiceTypeName, getInit_NameServiceURLName, getInitContext, getInitContext, instantiateEJB, resetEJBRef, resetHomeCache, setInit_GlobalNameServiceTypeName, setInit_GlobalNameServiceURLName, setInit_JNDIName, setInit_NameServiceTypeName, setInit_NameServiceURLName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

aString

protected java.lang.String aString

commandContext

protected CommandContext commandContext

messageId

protected java.lang.String messageId

msgRecipientId

protected java.lang.String msgRecipientId

requestProperties

protected TypedProperty requestProperties
Constructor Detail

MessageInfoDataBean

public MessageInfoDataBean()
Constructs a MessageInfoDataBean object.

MessageInfoDataBean

public MessageInfoDataBean(javax.ejb.EJBObject o)
                    throws java.rmi.RemoteException
Constructs a MessageInfoDataBean object.
Parameters:
o - javax.ejb.EJBObject
Throws:
java.rmi.RemoteException - If an error occurs while processing an EJB request.

MessageInfoDataBean

public MessageInfoDataBean(MessageInfoAccessBean anAccess)
                    throws java.lang.Exception
Constructs a MessageInfoDataBean object.
Method Detail

fulfills

public boolean fulfills(java.lang.Long member,
                        java.lang.String relationship)
                 throws java.lang.Exception,
                        java.rmi.RemoteException
Determines if a given member fulfills a given relationship with the resource.
Specified by:
fulfills in interface Protectable
Parameters:
member - Member id of the member
relationship - The relationship the member has with respect to the resource
Returns:
true if the member fulfills the relationship with the resource

getCommandContext

public CommandContext getCommandContext()
Get command context.
Specified by:
getCommandContext in interface SmartDataBean

getMessageId

public java.lang.String getMessageId()
Fetches the message id.
Specified by:
getMessageId in interface MessageInfoSmartDataBean
Returns:
java.lang.Long

getMsgDelayDate

public java.lang.String getMsgDelayDate()
Get message delay date.
Specified by:
getMsgDelayDate in interface MessageInfoSmartDataBean
Returns:
message delay date. Format yyyy-mm-dd.

getMsgDelayTime

public java.lang.String getMsgDelayTime()
Get message delay time.
Specified by:
getMsgDelayTime in interface MessageInfoSmartDataBean
Returns:
message delay time. Format hh:mm:ss.

getMsgPostDate

public java.lang.String getMsgPostDate()
Get message post date. This is message sent date.
Specified by:
getMsgPostDate in interface MessageInfoSmartDataBean
Returns:
message post date. Format yyyy-mm-dd.

getMsgPostTime

public java.lang.String getMsgPostTime()
Get message post time.
Specified by:
getMsgPostTime in interface MessageInfoSmartDataBean
Returns:
message post time. Format hh:mm:ss.

getOwner

public java.lang.Long getOwner()
                        throws java.lang.Exception,
                               java.rmi.RemoteException
Return the member reference number of the owner.
Specified by:
getOwner in interface Protectable
Returns:
long

getRequestProperties

public TypedProperty getRequestProperties()
Fetches the request properties.
Specified by:
getRequestProperties in interface InputDataBean
Returns:
com.ibm.commerce.datatype.TypedProperty

populate

public void populate()
              throws java.lang.Exception
Retrieves message information and populates MessageInfoDataBean object.
Specified by:
populate in interface SmartDataBean

setCommandContext

public void setCommandContext(CommandContext aCommandContext)
Set command context.
Specified by:
setCommandContext in interface SmartDataBean

setMessageId

public void setMessageId(java.lang.String newMessageId)
Set message id.
Specified by:
setMessageId in interface MessageInfoInputDataBean

setMsgRecipientId

public void setMsgRecipientId(java.lang.String newRecipientId)
Set message recipient id.
Specified by:
setMsgRecipientId in interface MessageInfoInputDataBean

setRequestProperties

public void setRequestProperties(TypedProperty newRequestProperties)
Copies the request properties.
Specified by:
setRequestProperties in interface InputDataBean
Parameters:
newRequestProperties - com.ibm.commerce.datatype.TypedProperty