|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.portlet.forums.Context.AttachmentsManager
Object that stores binding to uploaded and stored as Temp Files attachments. Object is stored in session and implements HttpSessionBindingListener so when session is invalidated it removes stored files from disk
Field Summary | |
private java.util.List |
deletedAttachments
|
private java.util.List |
files
|
private java.util.Map |
updatedAttachments
|
Constructor Summary | |
(package private) |
Context.AttachmentsManager()
|
Method Summary | |
void |
addBinding(TempFileBinding tmp)
Simply adds new TempFileBinding |
java.util.List |
getDeletedAttachments()
Stores indexes of persisted attachments which should be deleted |
java.util.List |
getFiles()
|
java.util.Map |
getUpdatedAttachments()
Stores indexes of persisted attachments and their new comments. |
void |
removeBinding(java.lang.String id)
Removes Binding of id such as in argument |
void |
setDeletedAttachments(java.util.List deletedAttachments)
|
void |
setFiles(java.util.List files)
|
void |
setUpdatedAttachments(java.util.Map updatedAttachments)
|
void |
updateBindingComment(java.lang.String id,
java.lang.String comment)
Updates comment for attachment |
void |
valueBound(javax.servlet.http.HttpSessionBindingEvent httpSessionBindingEvent)
|
void |
valueUnbound(javax.servlet.http.HttpSessionBindingEvent httpSessionBindingEvent)
If object removed from session we do clean up and removes every file stored to disk |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private java.util.List files
private java.util.List deletedAttachments
private java.util.Map updatedAttachments
Constructor Detail |
Context.AttachmentsManager()
Method Detail |
public void addBinding(TempFileBinding tmp)
tmp
- public void removeBinding(java.lang.String id)
id
- public void updateBindingComment(java.lang.String id, java.lang.String comment)
id
- comment
- public void valueBound(javax.servlet.http.HttpSessionBindingEvent httpSessionBindingEvent)
valueBound
in interface javax.servlet.http.HttpSessionBindingListener
public void valueUnbound(javax.servlet.http.HttpSessionBindingEvent httpSessionBindingEvent)
valueUnbound
in interface javax.servlet.http.HttpSessionBindingListener
httpSessionBindingEvent
- public java.util.List getFiles()
public void setFiles(java.util.List files)
public java.util.List getDeletedAttachments()
public void setDeletedAttachments(java.util.List deletedAttachments)
public java.util.Map getUpdatedAttachments()
public void setUpdatedAttachments(java.util.Map updatedAttachments)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |