|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface FileResource
| Method Summary | |
|---|---|
java.io.InputStream |
getData()
Return the inputstream for the resource |
java.lang.String |
getFileName()
Return the filename for the resource |
java.lang.String |
getId()
Returns the id (which is the JCR node UUID) of the file. |
java.util.Calendar |
getLastModified()
Return the last modified date of the resource |
java.lang.String |
getMimeType()
Return the mimetype of the resource |
org.springframework.web.multipart.MultipartFile |
getMultipartFile()
This method returns the belonging MultipartFile |
java.lang.String |
getServerName()
Return the servername on which the resource is stored. |
long |
getSize()
Returns the size in bytes of the resource |
java.lang.String |
getURL()
Deprecated. this probably needs to go away. |
java.lang.String |
getURL(java.lang.String ownerUUID)
Return the URL that serves the file. |
boolean |
isPublic()
Indicates if this file is 'public'. |
boolean |
mayView(javax.servlet.http.HttpServletRequest request)
This method is invoked when a not public file is requested. |
void |
setPublic(boolean isPublic)
Sets whether this file is 'public'. |
| Method Detail |
|---|
java.io.InputStream getData()
java.lang.String getFileName()
java.util.Calendar getLastModified()
java.lang.String getMimeType()
long getSize()
java.lang.String getServerName()
@Deprecated java.lang.String getURL()
java.lang.String getURL(java.lang.String ownerUUID)
ownerUUID - The UUID of an object which implements the FileResourceSecurityCheckPoint interface.
boolean isPublic()
void setPublic(boolean isPublic)
public - indicates whether this FileResource should be public.java.lang.String getId()
boolean mayView(javax.servlet.http.HttpServletRequest request)
org.springframework.web.multipart.MultipartFile getMultipartFile()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||