站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBOSS Portal 2.6 API 英文版文档

AttachmentToken - JBOSS Portal 2.6 API 英文版文档


org.jboss.portlet.forums.helper
Class AttachmentToken

java.lang.Object
  extended byorg.jboss.portlet.forums.helper.AttachmentToken

public class AttachmentToken
extends java.lang.Object

Token that stores attachment id - to secure download

Version:
$Revision: 5448 $
Author:
Boleslaw Dawidowicz

Field Summary
private  java.lang.Integer attachmentId
           
private  java.util.Date createDate
           
private  java.util.Date expireDate
           
private  int id
           
 
Constructor Summary
AttachmentToken(int id)
           
AttachmentToken(int tokenId, java.lang.Integer attachmentId, java.util.Date expireDate)
           
 
Method Summary
 java.lang.Integer getAttachmentId()
           
 java.util.Date getCreateDate()
           
 java.util.Date getExpirationDate()
           
 int getId()
           
 boolean isValid()
          compares createDate and expirationDate
 void setAttachmentId(java.lang.Integer attachmentId)
           
 void setCreateDate(java.util.Date createDate)
           
 void setExpirationDate(java.util.Date expireDate)
           
 void setId(int id)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

createDate

private java.util.Date createDate

expireDate

private java.util.Date expireDate

id

private int id

attachmentId

private java.lang.Integer attachmentId
Constructor Detail

AttachmentToken

public AttachmentToken(int id)

AttachmentToken

public AttachmentToken(int tokenId,
                       java.lang.Integer attachmentId,
                       java.util.Date expireDate)
Method Detail

getCreateDate

public java.util.Date getCreateDate()

setCreateDate

public void setCreateDate(java.util.Date createDate)

getExpirationDate

public java.util.Date getExpirationDate()

setExpirationDate

public void setExpirationDate(java.util.Date expireDate)

getId

public int getId()

setId

public void setId(int id)

getAttachmentId

public java.lang.Integer getAttachmentId()

setAttachmentId

public void setAttachmentId(java.lang.Integer attachmentId)

isValid

public boolean isValid()
compares createDate and expirationDate

Returns: