Package de.elo.ix.client.devents
Class UpDownloadEventInfo
java.lang.Object
byps.BValueClass
de.elo.ix.client.ValueClass
de.elo.ix.client.devents.UpDownloadEventInfo
- All Implemented Interfaces:
Serializable
This class describes a document stream (version, attachment, preview, fulltext, signature) being
uploaded or downloaded in an event of
DocumentEvents
.- Since:
- 12.02.002.002
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected int
Document version ID.protected UpDownloadKind
Kind of document related stream.protected long
Number of bytes to download from a document related stream.protected long
Document related stream should be downloaded starting at this position.protected boolean
A preliminary test for a later uploaded stream.protected Sord
Sord object.protected UpDownloadUsage
From where an event is called.Fields inherited from class byps.BValueClass
bypsClient, changedMembers, dbHelper, FLAG_SEALED, flags
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
getDocId()
getKind()
long
long
getSord()
getUsage()
boolean
void
setDocId
(int docId) void
setKind
(UpDownloadKind kind) void
setLength
(long length) void
setOffset
(long offset) void
setPreliminaryTest
(boolean onlyTest) void
void
setUsage
(UpDownloadUsage usage) toString()
Methods inherited from class byps.BValueClass
getBypsClient, getChangedMembers, getDbHelper, isChangedMember, isSealed, seal, seal, setBypsClient, setChangedMember, setChangedMembers, setDbHelper
-
Field Details
-
kind
Kind of document related stream. -
usage
From where an event is called. -
sord
Sord object. CheckBValueClass.getChangedMembers()
to find out, which members of the Sord object are valid. Usually, onlySord.getId()
is set. This member is null, if the client application usesIXServicePortIF.checkinDocBegin(de.elo.ix.client.ClientInfo, de.elo.ix.client.Document)
to prepare a document upload. -
docId
protected int docIdDocument version ID. Only valid forDocumentEvents.beginDownload(de.elo.ix.client.IXServerEventsContext, UpDownloadEventInfo)
. -
offset
protected long offsetDocument related stream should be downloaded starting at this position. Only valid forDocumentEvents.beginDownload(de.elo.ix.client.IXServerEventsContext, UpDownloadEventInfo)
. If the entire stream should be read,offset
is 0 andlength
is -1. -
length
protected long lengthNumber of bytes to download from a document related stream. Only valid forDocumentEvents.beginDownload(de.elo.ix.client.IXServerEventsContext, UpDownloadEventInfo)
. If this element is -1, read up to the end of the stream. If the entire stream should be read,offset
is 0 andlength
is -1. -
preliminaryTest
protected boolean preliminaryTestA preliminary test for a later uploaded stream. While uploading a content stream for a new document viaIXConnectionIF.upload(String, java.io.File)
to the server, the related Sord object is unknown. So the information that usually controls, whether a document processor shall handle the stream is unavailable. To solve this situation, the uploaded stream is stored temporarily and the actual upload is deferred to the functionIXServicePortIF.checkinDocEnd(de.elo.ix.client.ClientInfo, de.elo.ix.client.Sord, de.elo.ix.client.SordZ, de.elo.ix.client.Document, de.elo.ix.client.LockZ)
. In order to know whether a stream should be temporarily stored, functionIXServicePortIF.checkinDocBegin2(de.elo.ix.client.ClientInfo, de.elo.ix.client.Sord, de.elo.ix.client.Document, de.elo.ix.client.CheckinDocOptions)
calls the eventDocumentEvents.beginUpload(de.elo.ix.client.IXServerEventsContext, de.elo.ix.client.devents.UpDownloadEventInfo)
. The returned document processor is only checked to be non-null but is never invoked. The document processor used to process the stream is requested inIXServicePortIF.checkinDocEnd(de.elo.ix.client.ClientInfo, de.elo.ix.client.Sord, de.elo.ix.client.SordZ, de.elo.ix.client.Document, de.elo.ix.client.LockZ)
.
-
-
Constructor Details
-
UpDownloadEventInfo
public UpDownloadEventInfo() -
UpDownloadEventInfo
-
-
Method Details
-
getDocId
public int getDocId() -
setDocId
public void setDocId(int docId) -
getUsage
-
setUsage
-
getSord
-
setSord
-
getOffset
public long getOffset() -
setOffset
public void setOffset(long offset) -
getLength
public long getLength() -
setLength
public void setLength(long length) -
isPreliminaryTest
public boolean isPreliminaryTest() -
setPreliminaryTest
public void setPreliminaryTest(boolean onlyTest) -
getKind
-
setKind
-
toString
-