|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.wm.app.tn.util.TNFixedData
com.wm.app.tn.doc.BizDocEnvelope
public final class BizDocEnvelope
Represents business documents in the trading network system. A few notes on the fields of the documents:
BizDocContentPart
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.wm.app.tn.util.TNFixedData |
---|
TNFixedData.TreeCursor |
Method Summary | |
---|---|
BizDocContentPart |
addContentPart(java.lang.String partName,
java.lang.String mimeType,
byte[] bytes,
int partIndex)
Add a content part to this document |
BizDocContentPart |
addContentPart(java.lang.String partName,
java.lang.String mimeType,
int partIndex,
int partLength,
java.lang.String storageType,
java.lang.Object storageRef)
Add a content part to this document |
void |
addError(ActivityLogEntry a)
Add an error to this document. |
BizDocContentPart |
addLargeContentPart(java.lang.String partName,
java.lang.String mimeType,
int partIndex,
java.io.InputStream contentStream,
int contentLength)
Adds a large content part to this document. |
void |
addRelationship(java.lang.String from,
java.lang.String to,
java.lang.String rel)
Adds a relationship from this document to another |
static com.wm.data.IData |
create()
For internal use only |
static BizDocEnvelope |
createReply(BizDocEnvelope doc)
Create a reply of the same type as the supplied document. |
static BizDocEnvelope |
createReply(BizDocEnvelope doc,
BizDocType replyType)
Create a reply of the supplied type. |
java.util.Enumeration |
getAttributeNames()
Get the names of all the attributes this document has. |
com.wm.data.IData |
getAttributes()
Get all attribute values of the document. |
java.lang.String |
getComments()
|
byte[] |
getContent()
|
byte[] |
getContentBytes()
The envelope maintains different parts of a document. |
BizDocContentPart |
getContentPart(java.lang.String partName)
|
BizDocContentPart[] |
getContentParts()
|
java.lang.String |
getConversationId()
|
java.sql.Timestamp[] |
getDateListValue(java.lang.String id)
Accessor for DatetimeList-valued attributes. |
java.sql.Timestamp |
getDateValue(java.lang.String id)
Accessor for date-valued attributes. |
java.lang.Object |
getDeliveryContent()
Get delivery content of this envelope |
BizDocType |
getDocType()
|
java.lang.String |
getDocumentId()
|
BizDocErrorSet |
getErrorSet()
|
java.lang.String |
getGroupId()
|
java.lang.String |
getInternalId()
|
boolean |
getInternalPersistOption()
For Internal use only |
java.sql.Timestamp |
getLastModifiedTime()
|
int |
getMaxPartIndex()
|
java.lang.String |
getMonitoringAction()
|
java.util.Vector<java.util.HashMap<java.lang.String,java.lang.String>> |
getMonitoringDataItems()
|
java.lang.Double[] |
getNumberListValue(java.lang.String id)
Accessor for NumberList-valued attributes. |
double |
getNumberValue(java.lang.String id)
Accessor for number-valued attributes. |
java.lang.String |
getOriginalReceiverId()
|
java.lang.String |
getOriginalSenderId()
|
java.lang.String |
getPersistOption()
For Internal use only |
java.lang.String |
getReceiverId()
|
java.lang.String |
getReceiveSvc()
Support for resubmit: return the receive service name. |
BizDocRelationship[] |
getRelationships()
Get relationships on this document (can be null if there are none) |
int |
getRepeatNum()
|
java.lang.String |
getRoutingType()
|
java.lang.String |
getSenderId()
|
byte[] |
getSignature()
Deprecated. digital signatures are now manipulated with a verification service |
byte[] |
getSignedBody()
Deprecated. digital signatures are now manipulated with a verification service |
java.lang.String[] |
getStringListValue(java.lang.String id)
Accessor for StringList-valued attributes. |
java.lang.String |
getStringValue(java.lang.String id)
Accessor for string-valued attributes. |
java.lang.String |
getSystemStatus()
|
java.sql.Timestamp |
getTimestamp()
|
java.lang.String |
getUserStatus()
|
boolean |
isLargeDocument()
|
boolean |
isMonitored()
|
boolean |
isPersisted()
|
static void |
main(java.lang.String[] args)
|
static BizDocEnvelope |
newEnvelope(BizDocType type)
Create a new envelope of the supplied type |
int |
replaceContentPart(java.lang.String partName,
BizDocContentPart revisedPart)
Replace a content part on this document |
void |
replaceInternalId(java.lang.String newId)
For Internal use only |
void |
setComments(java.lang.String comment)
Set the comments |
void |
setContent(byte[] content)
|
void |
setContentBytes(byte[] cont)
Set the content bytes (should only be called once). |
void |
setContentParts(BizDocContentPart[] parts)
Set content parts of this document |
void |
setConversationId(java.lang.String id)
Set the conversation ID |
void |
setDateListValue(java.lang.String name,
java.sql.Timestamp[] value)
Set a DatetimeList-valued attribute |
void |
setDateValue(java.lang.String name,
java.sql.Timestamp value)
Set a date-valued attribute |
void |
setDocType(BizDocType type)
Set the document type (should only be called once) |
void |
setDocumentId(java.lang.String id)
Set the document ID |
void |
setErrorSet(BizDocErrorSet set)
|
void |
setGroupId(java.lang.String id)
Set the group ID |
void |
setInternalId(java.lang.String id)
Set the document ID (should only be called once) |
void |
setInternalPersistOption(boolean flag)
For Internal use only |
void |
setLargeDocument(boolean largeDocument)
For internal use only |
void |
setLastModifiedTime(java.sql.Timestamp time)
Set the last mod time |
void |
setMonitoring(boolean monitoring)
Set the Monitoring Enabled field |
void |
setMonitoringAction(java.lang.String action)
Set the MonitoringAction |
void |
setMonitoringDataItems(java.util.Vector<java.util.HashMap<java.lang.String,java.lang.String>> monitoredDataItems)
Set the MonitoringDataItems |
void |
setNumberListValue(java.lang.String name,
java.lang.Double[] value)
Set a NumberList-valued attribute |
void |
setNumberValue(java.lang.String name,
double value)
Set a number-valued attribute |
void |
setOriginalReceiverId(java.lang.String id)
Set the original receiver id |
void |
setOriginalSenderId(java.lang.String id)
Set the original sender id |
void |
setPersisted(boolean persx)
For internal use only |
void |
setPersistOption(java.lang.String po)
For Internal use only |
void |
setReceiverId(java.lang.String id)
Set the receiver ID (must be a valid partner ID) |
void |
setReceiveSvc(java.lang.String svc)
Support for resubmit: set the original receive service of this document. |
void |
setRelationships(BizDocRelationship[] rel)
Set relationships on this document (can be null) |
void |
setRepeatNum(int repeat)
Set the repeat number |
void |
setRoutingType(java.lang.String routingType)
Set the routing type |
void |
setSenderId(java.lang.String id)
Set the sender ID (must be a valid partner ID) |
void |
setSigInfo(byte[] sig,
byte[] signedBody)
Deprecated. digital signatures are now generated with a signing service |
void |
setStringListValue(java.lang.String name,
java.lang.String[] value)
Set a StringList-valued attribute |
void |
setStringValue(java.lang.String name,
java.lang.String value)
Set a string-valued attribute |
void |
setSystemStatus(java.lang.String stat)
Set the system status |
void |
setTimestamp(java.sql.Timestamp time)
Set the receipt timestamp (should only be called once) |
void |
setUserStatus(java.lang.String stat)
Set the user status |
Methods inherited from class com.wm.app.tn.util.TNFixedData |
---|
clone, dataSize, get, get, getCursor, getHashCursor, getIndexCursor, getKey, getSharedCursor, getTreeCursor, indexOf, merge, set, set, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public void setInternalId(java.lang.String id)
public void setDocType(BizDocType type)
public void setTimestamp(java.sql.Timestamp time)
public void setLastModifiedTime(java.sql.Timestamp time)
public void setSenderId(java.lang.String id)
public void setOriginalSenderId(java.lang.String id)
public void setReceiverId(java.lang.String id)
public void setOriginalReceiverId(java.lang.String id)
public void setDocumentId(java.lang.String id)
public void setGroupId(java.lang.String id)
public void setConversationId(java.lang.String id)
public void setSystemStatus(java.lang.String stat)
public void setUserStatus(java.lang.String stat)
public void setComments(java.lang.String comment)
public void setMonitoring(boolean monitoring)
public void setMonitoringDataItems(java.util.Vector<java.util.HashMap<java.lang.String,java.lang.String>> monitoredDataItems)
public void setMonitoringAction(java.lang.String action)
public void setRepeatNum(int repeat)
public void setRoutingType(java.lang.String routingType)
public void setSigInfo(byte[] sig, byte[] signedBody)
sig
- the signaturesignedBody
- the signed part of the document bodypublic void setContent(byte[] content)
public void setContentBytes(byte[] cont)
public void setPersisted(boolean persx)
public void setLargeDocument(boolean largeDocument)
public java.lang.String getInternalId()
public BizDocType getDocType()
public java.sql.Timestamp getTimestamp()
public java.sql.Timestamp getLastModifiedTime()
public java.lang.String getSenderId()
public java.lang.String getOriginalSenderId()
public java.lang.String getReceiverId()
public java.lang.String getOriginalReceiverId()
public java.lang.String getDocumentId()
public java.lang.String getGroupId()
public java.lang.String getConversationId()
public java.lang.String getSystemStatus()
public java.lang.String getUserStatus()
public java.lang.String getComments()
public java.util.Vector<java.util.HashMap<java.lang.String,java.lang.String>> getMonitoringDataItems()
public java.lang.String getMonitoringAction()
public int getRepeatNum()
public java.lang.String getRoutingType()
public byte[] getSignature()
public byte[] getSignedBody()
public byte[] getContentBytes()
public java.lang.Object getDeliveryContent() throws java.io.IOException
java.io.IOException
public byte[] getContent()
public boolean isPersisted()
public boolean isLargeDocument()
public boolean isMonitored()
public BizDocErrorSet getErrorSet()
public void addError(ActivityLogEntry a)
public void setNumberValue(java.lang.String name, double value)
public void setDateValue(java.lang.String name, java.sql.Timestamp value)
public void setStringValue(java.lang.String name, java.lang.String value)
public java.sql.Timestamp getDateValue(java.lang.String id)
id
- the ID of the attribute to fetch
public double getNumberValue(java.lang.String id)
id
- the ID of the attribute to fetch
public java.lang.String getStringValue(java.lang.String id)
id
- the ID of the attribute to fetch
public void setNumberListValue(java.lang.String name, java.lang.Double[] value)
public void setDateListValue(java.lang.String name, java.sql.Timestamp[] value)
public void setStringListValue(java.lang.String name, java.lang.String[] value)
public java.sql.Timestamp[] getDateListValue(java.lang.String id)
id
- the ID of the attribute to fetch
public java.lang.Double[] getNumberListValue(java.lang.String id)
id
- the ID of the attribute to fetch
public java.lang.String[] getStringListValue(java.lang.String id)
id
- the ID of the attribute to fetch
public java.util.Enumeration getAttributeNames()
public com.wm.data.IData getAttributes()
public BizDocRelationship[] getRelationships()
public void setRelationships(BizDocRelationship[] rel)
public void setErrorSet(BizDocErrorSet set)
public void addRelationship(java.lang.String from, java.lang.String to, java.lang.String rel)
public int getMaxPartIndex()
public BizDocContentPart[] getContentParts()
public void setContentParts(BizDocContentPart[] parts)
public BizDocContentPart getContentPart(java.lang.String partName)
public BizDocContentPart addContentPart(java.lang.String partName, java.lang.String mimeType, byte[] bytes, int partIndex)
partName
- name of the partmimeType
- mimeType of the partbytes
- content of part in byte[] formatpartIndex
- index of this part;
if not specified takes next highest index
public BizDocContentPart addContentPart(java.lang.String partName, java.lang.String mimeType, int partIndex, int partLength, java.lang.String storageType, java.lang.Object storageRef)
partName
- name of the partmimeType
- mimeType of the partpartIndex
- index of this part;
if not specified, takes next highest indexpartLength
- size of this content partstorageType
- the type of storage in which the part is currently stored
storageType should be one of STORAGE_TYPE constants from BizDocContentPartstorageRef
- the storage reference on the associated storageType
public BizDocContentPart addLargeContentPart(java.lang.String partName, java.lang.String mimeType, int partIndex, java.io.InputStream contentStream, int contentLength) throws java.lang.Exception
partName
- the name of the new content partmimeType
- the MIME type of the content part you are addingpartIndex
- the position of the content part in the document's
existing array of partscontentStream
- an InputStream representing the content of the
part you are addingcontentLength
- size of this part in bytes. Specify -1 if you
want the length to be calculated from the stream.
java.lang.Exception
- when there is an errorpublic int replaceContentPart(java.lang.String partName, BizDocContentPart revisedPart)
partName
- name of the part to be replacedrevisedPart
- the part that replaces the existing part
public void replaceInternalId(java.lang.String newId)
public static com.wm.data.IData create()
public static BizDocEnvelope newEnvelope(BizDocType type)
public static BizDocEnvelope createReply(BizDocEnvelope doc)
public static BizDocEnvelope createReply(BizDocEnvelope doc, BizDocType replyType)
public void setPersistOption(java.lang.String po)
public java.lang.String getPersistOption()
public void setInternalPersistOption(boolean flag)
public boolean getInternalPersistOption()
public void setReceiveSvc(java.lang.String svc)
svc
- - nsname for the original receiver servicepublic java.lang.String getReceiveSvc()
none
-
public static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |