|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.cyclonecommerce.cybervan.api.DefaultDocument
Provides a means for an Interchange Server to instantiate an IntegrationDocument. Used for outbound documents Only the IntegrationDocument interface methods are intended for use by a client.
| Fields inherited from interface com.cyclonecommerce.cybervan.api.IntegrationDocument |
MAX_REFERENCES, NA, NA_LIT |
| Constructor Summary | |
DefaultDocument()
|
|
| Method Summary | |
void |
addSecurityLevel(int securityLevel)
Internal server use only |
java.lang.String |
getControlId()
Get the document's control id. |
java.lang.String |
getCorrelationId()
Get the document's correlation id. |
java.lang.String |
getDirectory()
Get the directory that the document is located in. |
java.lang.String |
getEbXmlAction()
Get the ebXmlAction of the document was transfered using ebXml |
java.lang.String |
getEbXmlService()
Get the ebXmlService if the document was transfered using ebXml. |
java.lang.String |
getFingerprint()
Get the documents fingerprint. |
InterchangeURL |
getInterchangeHttpsURL()
HTTPS URL to use to retrieve the raw document content. |
InterchangeURL |
getInterchangeURL()
HTTP URL to use to retrieve the raw document content. |
int |
getMaxReferences()
Deprecated. |
java.lang.String |
getName()
Get the filename used when backing up the file. |
java.lang.String |
getOriginalName()
Get the document's original filename. |
int |
getOriginalSize()
Get the original document size. |
java.lang.String |
getPackagingType()
Get the packaging type (AKA: BusinessProtocol) to used transfering sending a document. |
java.lang.String |
getPackagingVersion()
Get the packaging version (AKA: BusinessProtocol) used when transfering a document. |
java.lang.String |
getPath()
Return the path to the document content. |
java.lang.String |
getPersistedName()
Return the name as stored on disk (Inbound Transport). |
CompanyId |
getReceiverId()
Get the Receiver CompanyId object. |
java.lang.String |
getReference(int aReferenceNumber)
Deprecated. Use getUserData instead. |
java.lang.String |
getRefToMessageId()
Get the document's RefToMessageId. |
SecurityLevel |
getSecurityLevel()
Get the security level used to exchange the document. |
CompanyId |
getSenderId()
Get the Sender CompanyId object. |
int |
getSequenceId()
Get the document sequence id. |
java.lang.String |
getTransport()
Method getTransport - return the transport the document was sent or received on. |
int |
getTransportSize()
Get the packaged size of the document. |
DocumentType |
getType()
Get the document type. |
java.lang.String |
getUniqueId()
Get the document's unique id. |
java.util.Properties |
getUserData()
Get the additional user defined data. |
void |
setContent(java.lang.String path)
setContent - Sets the raw data of the document. |
void |
setControlId(java.lang.String aControlId)
Set the document's control id. |
void |
setCorrelationId(java.lang.String id)
Set the document's correlation id. |
void |
setDirectory(java.lang.String aDirectory)
Set the directory to the location of the raw document content. |
void |
setEbXmlAction(java.lang.String ebXmlAction)
Set the ebXmlAction if MCD free trading is enabled. |
void |
setEbXmlService(java.lang.String ebXmlService)
Set the ebXmlService if MCD free ebXml trading is enabled. |
void |
setEncrypted(boolean isEncrypted)
Set if the document is encrypted Internal server use only |
void |
setFileExt(java.lang.String fileExt)
Internal server use only |
void |
setFingerprint(java.lang.String aFingerprint)
Internal server use only |
void |
setInterchangeHttpsURL(InterchangeURL url)
setInterchangeHttpsURL - Sets URL to use when communicating with Interchange. |
void |
setInterchangeURL(InterchangeURL url)
Internal server use only |
void |
setName(java.lang.String aName)
Set the backup filename. |
void |
setOriginalName(java.lang.String anOriginalName)
Set the original filename of the document. |
void |
setOriginalSize(int anOriginalSize)
Internal server use only |
void |
setPackagingType(java.lang.String packagingType)
Set the packaging type (AKA: BusinessProtocol) to used when transfering a document. |
void |
setPackagingVersion(java.lang.String packagingVersion)
Set the packaging version (AKA: BusinessProtocol) to used when transfering a document. |
void |
setPath(java.lang.String aPath)
Set the path the document content. |
void |
setPersistedName(java.lang.String persistedName)
Sets the name of the document as stored on disk (Inbound Transport). |
void |
setReceiverId(CompanyId id)
Set the Receiver CompanyId object. |
void |
setReceiverId(java.lang.String id)
Set the Receiver CompanyId. |
void |
setReceiverName(java.lang.String name)
Set the Receiver's Partner Name. |
void |
setReference(int aReferenceNumber,
java.lang.String aReference)
Deprecated. Use setUserData instead. |
void |
setRefToMessageId(java.lang.String id)
Set the document's RefToMessageId. |
void |
setSecurityLevel(int securityLevel)
Internal server use only |
void |
setSenderId(CompanyId id)
Set the Sender CompanyId. |
void |
setSenderId(java.lang.String id)
Set the Sender CompanyId. |
void |
setSenderName(java.lang.String name)
Set the Sender's Company Name. |
void |
setSequenceId(int id)
Internal server use only |
void |
setSigned(boolean isSigned)
Set if the document is signed or not Internal server use only |
void |
setSubtype(java.lang.String subtype)
Set the document subtype. |
void |
setTransport(java.lang.String transport)
Internal server use only |
void |
setTransportSize(int aSize)
Internal server use only |
void |
setType(DocumentType type)
Set the document type - EDI, X12, EDIFACT, XML, etc. |
void |
setType(java.lang.String type)
Set the document type - EDI, X12, EDIFACT, XML, etc. |
void |
setUniqueId(java.lang.String aUniqueId)
Set the document's unique id. |
void |
setUserData(java.util.Properties userProperties)
Sets additional user defined data that may be used by the packager when constructing the packaged document. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DefaultDocument()
| Method Detail |
public CompanyId getSenderId()
getSenderId in interface IntegrationDocumentpublic void setSenderId(CompanyId id)
setSenderId in interface IntegrationDocumentid - CompanyId object initialized to the Sender's ID.public void setSenderId(java.lang.String id)
id - CompanyIdpublic void setSenderName(java.lang.String name)
name - Company Name.CompanyIdpublic CompanyId getReceiverId()
getReceiverId in interface IntegrationDocumentpublic void setReceiverId(CompanyId id)
setReceiverId in interface IntegrationDocumentid - CompanyId object initialized to the Receivers's ID.public void setReceiverId(java.lang.String id)
id - CompanyIdpublic void setReceiverName(java.lang.String name)
name - Name of the Receiving partner.public java.lang.String getControlId()
getControlId in interface IntegrationDocumentpublic void setControlId(java.lang.String aControlId)
aControlId - public java.lang.String getUniqueId()
getUniqueId in interface IntegrationDocumentpublic void setUniqueId(java.lang.String aUniqueId)
setUniqueId in interface IntegrationDocumentaUniqueId - Globally unique id for the document.public void setCorrelationId(java.lang.String id)
setCorrelationId in interface IntegrationDocumentid - The document Correlation Id. This id can be generated by
Interchange, or generated by applications integrating with Interchange. The
id is used to tie together multiple documents into a conversation. Multiple
documents can have the same Correlation Id.public java.lang.String getCorrelationId()
getCorrelationId in interface IntegrationDocumentpublic java.lang.String getRefToMessageId()
getRefToMessageId in interface IntegrationDocumentpublic void setRefToMessageId(java.lang.String id)
setRefToMessageId in interface IntegrationDocumentid - The document RefToMessageId.public DocumentType getType()
getType in interface IntegrationDocumentpublic void setSubtype(java.lang.String subtype)
subtype - public void setType(DocumentType type)
type - public void setType(java.lang.String type)
type - public void setFileExt(java.lang.String fileExt)
fileExt - public java.lang.String getPath()
getPath in interface IntegrationDocumentpublic void setPath(java.lang.String aPath)
setPath in interface IntegrationDocumentaPath - to the raw document content.public java.lang.String getDirectory()
public void setDirectory(java.lang.String aDirectory)
aDirectory - public java.lang.String getName()
getName in interface IntegrationDocumentpublic void setName(java.lang.String aName)
aName - Backup filename.public java.lang.String getOriginalName()
getOriginalName in interface IntegrationDocumentpublic void setOriginalName(java.lang.String anOriginalName)
anOriginalName - public int getTransportSize()
getTransportSize in interface IntegrationDocumentpublic void setTransportSize(int aSize)
aSize - public int getOriginalSize()
getOriginalSize in interface IntegrationDocumentpublic void setOriginalSize(int anOriginalSize)
anOriginalSize - public java.lang.String getReference(int aReferenceNumber)
getReference in interface IntegrationDocumentaReferenceNumber - Reference index to return. 0 based. Must be less than the getMaxReferences value/
public void setReference(int aReferenceNumber,
java.lang.String aReference)
setReference in interface IntegrationDocumentaReferenceNumber - The reference indexaReference - The user specifed referencepublic SecurityLevel getSecurityLevel()
getSecurityLevel in interface IntegrationDocumentpublic void setSecurityLevel(int securityLevel)
securityLevel - public void addSecurityLevel(int securityLevel)
securityLevel - public java.lang.String getFingerprint()
getFingerprint in interface IntegrationDocumentpublic void setFingerprint(java.lang.String aFingerprint)
aFingerprint - public int getMaxReferences()
getMaxReferences in interface IntegrationDocumentpublic InterchangeURL getInterchangeURL()
getInterchangeURL in interface IntegrationDocumentpublic void setInterchangeURL(InterchangeURL url)
setInterchangeURL in interface IntegrationDocumenturl - public InterchangeURL getInterchangeHttpsURL()
getInterchangeHttpsURL in interface IntegrationDocumentpublic void setInterchangeHttpsURL(InterchangeURL url)
setInterchangeHttpsURL in interface IntegrationDocumenturl - public void setContent(java.lang.String path)
setContent in interface IntegrationDocumentpath - The full path of the file containing the raw datapublic void setTransport(java.lang.String transport)
transport - public java.lang.String getTransport()
getTransport in interface IntegrationDocumentpublic void setPersistedName(java.lang.String persistedName)
persistedName - java.lang.Stringpublic java.lang.String getPersistedName()
getPersistedName in interface IntegrationDocumentpublic void setSequenceId(int id)
id - intpublic int getSequenceId()
getSequenceId in interface IntegrationDocumentpublic void setEncrypted(boolean isEncrypted)
isEncrypted - a booleanpublic void setSigned(boolean isSigned)
isSigned - a booleanpublic java.lang.String getEbXmlService()
getEbXmlService in interface IntegrationDocumentpublic void setEbXmlService(java.lang.String ebXmlService)
setEbXmlService in interface IntegrationDocumentebXmlService - ebXML Service to use when packaging a ebXML document if
MCD Free mode is being utilized.public java.lang.String getEbXmlAction()
getEbXmlAction in interface IntegrationDocumentpublic void setEbXmlAction(java.lang.String ebXmlAction)
setEbXmlAction in interface IntegrationDocumentebXmlAction - ebXML Action to use when packaging a ebXML document if
MCD Free mode is being utilized.public java.lang.String getPackagingType()
getPackagingType in interface IntegrationDocumentPackagingTypespublic void setPackagingType(java.lang.String packagingType)
setPackagingType in interface IntegrationDocumentpackagingType - The packaging type to use to package the document.PackagingTypespublic java.lang.String getPackagingVersion()
getPackagingVersion in interface IntegrationDocumentpublic void setPackagingVersion(java.lang.String packagingVersion)
setPackagingVersion in interface IntegrationDocumentpackagingVersion - The packaging versionpublic void setUserData(java.util.Properties userProperties)
setUserData in interface IntegrationDocumentuserProperties - Initialized with user defined data.public java.util.Properties getUserData()
getUserData in interface IntegrationDocument
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||