|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.portlet.forums.helper.AttachmentTokenManager
Manager that stores and manages AttachmentToken object instances inside of session.
Constructor Summary | |
AttachmentTokenManager()
|
Method Summary | |
void |
addToken(AttachmentToken newToken)
Method adds new AttachmentToken into store. |
AttachmentToken |
createNewToken()
new Tokens chould be obtained with this method to generate proper Id safely |
AttachmentToken |
createNewToken(java.lang.Integer attachmentId,
java.util.Date expireDate)
new Tokens chould be obtained with this method to generate proper Id safely |
int |
getAutoPurgeSize()
|
AttachmentToken |
getToken(int id)
returns token |
boolean |
hasToken(int id)
checks if token is in store |
void |
removeExpiredTokens()
Validates all tokens. |
void |
setAutoPurgeSize(int autoPurgeSize)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AttachmentTokenManager()
Method Detail |
public void addToken(AttachmentToken newToken)
newToken
- public boolean hasToken(int id)
id
-
public AttachmentToken getToken(int id)
id
-
public AttachmentToken createNewToken()
public AttachmentToken createNewToken(java.lang.Integer attachmentId, java.util.Date expireDate)
public void removeExpiredTokens()
public int getAutoPurgeSize()
public void setAutoPurgeSize(int autoPurgeSize)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |