Package de.elo.ix.client
Class PublicDownload
java.lang.Object
byps.BValueClass
de.elo.ix.client.ValueClass
de.elo.ix.client.PublicDownload
- All Implemented Interfaces:
Serializable
This class describes the public download information.
Internal use.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected String
Indicates whether the download is inline or as attachment.protected int
The document ID.protected String
The expired time.protected String
The fileName in the download url.protected String
The download ID.protected int
The object ID.protected int
The download count.protected String
The time stamp.protected String
The download URLprotected int
The user ID.Fields inherited from class byps.BValueClass
bypsClient, changedMembers, dbHelper, FLAG_SEALED, flags
-
Constructor Summary
ConstructorsConstructorDescriptionPublicDownload
(String id, int userId, int docId, int remaining, String expiration) -
Method Summary
Modifier and TypeMethodDescriptionint
getDocId()
Get the expiration.getId()
int
getObjId()
int
Get the remaining download count.getUrl()
int
boolean
void
setAttachmentCode
(String attachmentCode) void
setDocId
(int id) void
setExpiration
(String expiration) void
setFileName
(String fileName) void
void
setObjId
(int id) void
setRemaining
(int count) void
setTimeStamp
(String timeStamp) void
void
setUserId
(int userId) toString()
Methods inherited from class byps.BValueClass
getBypsClient, getChangedMembers, getDbHelper, isChangedMember, isSealed, seal, seal, setBypsClient, setChangedMember, setChangedMembers, setDbHelper
-
Field Details
-
id
The download ID. -
remaining
protected int remainingThe download count. -
expiration
The expired time. -
timeStamp
The time stamp. -
docId
protected int docIdThe document ID. -
objId
protected int objIdThe object ID.- Since:
- 9.00.000.028
-
userId
protected int userIdThe user ID. -
url
The download URL- Since:
- 9.00.014.002
-
fileName
The fileName in the download url. It is readonly.- Since:
- 9.00.030.030
-
attachmentCode
Indicates whether the download is inline or as attachment. this field is ignored in ELO 11.03 and ongoing versions.- Since:
- 9.00.030.030
-
-
Constructor Details
-
PublicDownload
public PublicDownload() -
PublicDownload
-
PublicDownload
-
-
Method Details
-
getId
-
setId
-
getRemaining
public int getRemaining()Get the remaining download count. If the remaining equals Integer.MAX_VALUE, this means unlimited download count.- Returns:
- The remaining download count.
-
setRemaining
public void setRemaining(int count) -
getExpiration
Get the expiration. If expiration is null, there is no expiration for this download.- Returns:
- the expiration.
-
setExpiration
-
setDocId
public void setDocId(int id) -
getDocId
public int getDocId() -
setObjId
public void setObjId(int id) -
getObjId
public int getObjId() -
getUserId
public int getUserId() -
setUserId
public void setUserId(int userId) -
getUrl
-
setUrl
-
hasNoExpiration
public boolean hasNoExpiration() -
getFileName
-
setFileName
-
getTimeStamp
-
setTimeStamp
-
getAttachmentCode
-
setAttachmentCode
-
toString
-