|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.silverpeas.upload.UploadedFile
public class UploadedFile
Representation of an uploaded file.
Each UploadedFile
is associated to a unique UploadSession
instance. So, it can
not be possible to get several UploadedFile
from an UploadSession
.
Method Summary | |
---|---|
static UploadedFile |
from(javax.servlet.http.HttpServletRequest request,
String uploadSessionId,
UserDetail uploader)
Creates a representation of an uploaded file from HttpServletRequest and a given uploaded file identifier. |
String |
getDescription()
Gets the description filled by the user for the uploaded file. |
File |
getFile()
Gets the uploaded file. |
String |
getTitle()
Gets the title filled by the user for the uploaded file. |
UploadSession |
getUploadSession()
Gets the identifier of the uploaded file. |
void |
registerAttachment(WAPrimaryKey resourcePk,
String contributionLanguage)
Register an attachment attached in relation to the given contribution identifiers. |
void |
registerAttachment(WAPrimaryKey resourcePk,
String contributionLanguage,
boolean indexIt)
Register an attachment in relation to the given contribution identifiers. |
SimpleDocument |
retrieveSimpleDocument(WAPrimaryKey resourcePk,
String contributionLanguage)
Retrieve the SimpleDocument in relation with uploaded file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static UploadedFile from(javax.servlet.http.HttpServletRequest request, String uploadSessionId, UserDetail uploader)
request
- uploadSessionId
- uploader
-
public UploadSession getUploadSession()
public File getFile()
public String getTitle()
public String getDescription()
public void registerAttachment(WAPrimaryKey resourcePk, String contributionLanguage)
resourcePk
- contributionLanguage
- public void registerAttachment(WAPrimaryKey resourcePk, String contributionLanguage, boolean indexIt)
resourcePk
- contributionLanguage
- indexIt
- public SimpleDocument retrieveSimpleDocument(WAPrimaryKey resourcePk, String contributionLanguage)
contributionLanguage
- (be careful, not the user language ...)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |