|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DownloadResourceManager
An interface for managers that support reading of downloadable resources. Managers that also support writing, should
implement the WritableDownloadResourceManager
interface.
Method Summary | |
---|---|
DownloadResourceReader |
getResourceReader(java.lang.String userName,
java.lang.String resourcePath,
java.util.Map parameters)
Returns a DownloadResourceReader for a downloadable resource. |
boolean |
matches(java.lang.String resourcePath)
Returns a boolean to indicate whether the current DownloadResourceManager will know how to handle the given resourcePath. |
Method Detail |
---|
boolean matches(java.lang.String resourcePath)
resourcePath
- the relative URL of the resource including the application context path. For example,
"/confluence/download/attachments/12345/temp.png".
DownloadResourceReader getResourceReader(java.lang.String userName, java.lang.String resourcePath, java.util.Map parameters) throws UnauthorizedDownloadResourceException, DownloadResourceNotFoundException
DownloadResourceReader
for a downloadable resource. Typically used by HTML/PDF export and
resource content downloads.
Use this method only if matches(String)
returns true.
userName
- the user who is retrieving the downloadable resource.resourcePath
- the relative URL of the resource including the application context path. For example,
"/confluence/download/attachments/12345/temp.png".parameters
- a map of url paramaters for the resource
UnauthorizedDownloadResourceException
- if the user requesting the downloadable resource does not have the
permissions to get it
DownloadResourceNotFoundException
- if the downloadable resource associated with the resourcePath cannot be
found
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |