|
|||||||||
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 IntegrationDocument
public void setSenderId(CompanyId id)
setSenderId
in interface IntegrationDocument
id
- CompanyId object initialized to the Sender's ID.public void setSenderId(java.lang.String id)
id
- CompanyId
public void setSenderName(java.lang.String name)
name
- Company Name.CompanyId
public CompanyId getReceiverId()
getReceiverId
in interface IntegrationDocument
public void setReceiverId(CompanyId id)
setReceiverId
in interface IntegrationDocument
id
- CompanyId object initialized to the Receivers's ID.public void setReceiverId(java.lang.String id)
id
- CompanyId
public void setReceiverName(java.lang.String name)
name
- Name of the Receiving partner.public java.lang.String getControlId()
getControlId
in interface IntegrationDocument
public void setControlId(java.lang.String aControlId)
aControlId
- public java.lang.String getUniqueId()
getUniqueId
in interface IntegrationDocument
public void setUniqueId(java.lang.String aUniqueId)
setUniqueId
in interface IntegrationDocument
aUniqueId
- Globally unique id for the document.public void setCorrelationId(java.lang.String id)
setCorrelationId
in interface IntegrationDocument
id
- 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 IntegrationDocument
public java.lang.String getRefToMessageId()
getRefToMessageId
in interface IntegrationDocument
public void setRefToMessageId(java.lang.String id)
setRefToMessageId
in interface IntegrationDocument
id
- The document RefToMessageId.public DocumentType getType()
getType
in interface IntegrationDocument
public 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 IntegrationDocument
public void setPath(java.lang.String aPath)
setPath
in interface IntegrationDocument
aPath
- 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 IntegrationDocument
public void setName(java.lang.String aName)
aName
- Backup filename.public java.lang.String getOriginalName()
getOriginalName
in interface IntegrationDocument
public void setOriginalName(java.lang.String anOriginalName)
anOriginalName
- public int getTransportSize()
getTransportSize
in interface IntegrationDocument
public void setTransportSize(int aSize)
aSize
- public int getOriginalSize()
getOriginalSize
in interface IntegrationDocument
public void setOriginalSize(int anOriginalSize)
anOriginalSize
- public java.lang.String getReference(int aReferenceNumber)
getReference
in interface IntegrationDocument
aReferenceNumber
- 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 IntegrationDocument
aReferenceNumber
- The reference indexaReference
- The user specifed referencepublic SecurityLevel getSecurityLevel()
getSecurityLevel
in interface IntegrationDocument
public void setSecurityLevel(int securityLevel)
securityLevel
- public void addSecurityLevel(int securityLevel)
securityLevel
- public java.lang.String getFingerprint()
getFingerprint
in interface IntegrationDocument
public void setFingerprint(java.lang.String aFingerprint)
aFingerprint
- public int getMaxReferences()
getMaxReferences
in interface IntegrationDocument
public InterchangeURL getInterchangeURL()
getInterchangeURL
in interface IntegrationDocument
public void setInterchangeURL(InterchangeURL url)
setInterchangeURL
in interface IntegrationDocument
url
- public InterchangeURL getInterchangeHttpsURL()
getInterchangeHttpsURL
in interface IntegrationDocument
public void setInterchangeHttpsURL(InterchangeURL url)
setInterchangeHttpsURL
in interface IntegrationDocument
url
- public void setContent(java.lang.String path)
setContent
in interface IntegrationDocument
path
- 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 IntegrationDocument
public void setPersistedName(java.lang.String persistedName)
persistedName
- java.lang.Stringpublic java.lang.String getPersistedName()
getPersistedName
in interface IntegrationDocument
public void setSequenceId(int id)
id
- intpublic int getSequenceId()
getSequenceId
in interface IntegrationDocument
public void setEncrypted(boolean isEncrypted)
isEncrypted
- a boolean
public void setSigned(boolean isSigned)
isSigned
- a boolean
public java.lang.String getEbXmlService()
getEbXmlService
in interface IntegrationDocument
public void setEbXmlService(java.lang.String ebXmlService)
setEbXmlService
in interface IntegrationDocument
ebXmlService
- ebXML Service to use when packaging a ebXML document if
MCD Free mode is being utilized.public java.lang.String getEbXmlAction()
getEbXmlAction
in interface IntegrationDocument
public void setEbXmlAction(java.lang.String ebXmlAction)
setEbXmlAction
in interface IntegrationDocument
ebXmlAction
- ebXML Action to use when packaging a ebXML document if
MCD Free mode is being utilized.public java.lang.String getPackagingType()
getPackagingType
in interface IntegrationDocument
PackagingTypes
public void setPackagingType(java.lang.String packagingType)
setPackagingType
in interface IntegrationDocument
packagingType
- The packaging type to use to package the document.PackagingTypes
public java.lang.String getPackagingVersion()
getPackagingVersion
in interface IntegrationDocument
public void setPackagingVersion(java.lang.String packagingVersion)
setPackagingVersion
in interface IntegrationDocument
packagingVersion
- The packaging versionpublic void setUserData(java.util.Properties userProperties)
setUserData
in interface IntegrationDocument
userProperties
- 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 |