|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.confluence.importexport.resource.ExportDownloadResourceManager
public class ExportDownloadResourceManager
A WritableDownloadResourceManager that stores and reads macro output from a temporary location.
| Constructor Summary | |
|---|---|
ExportDownloadResourceManager()
|
|
| Method Summary | |
|---|---|
DownloadResourceReader |
getResourceReader(java.lang.String userName,
java.lang.String resourcePath,
java.util.Map parameters)
Returns a FileDownloadResourceReader for reading the stored output of the previous execution of a macro. |
DownloadResourceWriter |
getResourceWriter(java.lang.String userName,
java.lang.String prefix,
java.lang.String suffix)
Returns a FileDownloadResourceWriter for storing output of a macro in a temporary location. |
boolean |
matches(java.lang.String resourcePath)
Returns a boolean to indicate whether the current DownloadResourceManager will know how to handle the given resourcePath. |
void |
setBootstrapManager(BootstrapManager bootstrapManager)
|
void |
setGateKeeper(GateKeeper gateKeeper)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ExportDownloadResourceManager()
| Method Detail |
|---|
public boolean matches(java.lang.String resourcePath)
DownloadResourceManager
matches in interface DownloadResourceManagerresourcePath - the relative URL of the resource including the application context path. For example,
"/confluence/download/attachments/12345/temp.png".
public DownloadResourceReader getResourceReader(java.lang.String userName,
java.lang.String resourcePath,
java.util.Map parameters)
throws UnauthorizedDownloadResourceException,
DownloadResourceNotFoundException
FileDownloadResourceReader for reading the stored output of the previous execution of a macro.
Typically used by HTML and PDF export, macro content downloads.
getResourceReader in interface DownloadResourceManageruserName - the user who is viewing the macro output. Must be the same as the user who created the macro
output with getResourceWriter(String, String, String), or an UnauthorizedDownloadResourceException
will be thrown.resourcePath - the relative URL of the resource including the application context path. For example,
"/confluence/download/temp/chart1756.png". It must be the same path from the DownloadResourceWriter.parameters - a map of url paramaters for the resource
UnauthorizedDownloadResourceException - if the user requesting the macro output is different to the user
who created it
DownloadResourceNotFoundException - if a stored macro output associated with this resource path cannot be
found
public DownloadResourceWriter getResourceWriter(java.lang.String userName,
java.lang.String prefix,
java.lang.String suffix)
FileDownloadResourceWriter for storing output of a macro in a temporary location.
This should be typically called by macros that generate output such as images and would like their
output to be exported correctly.
getResourceWriter in interface WritableDownloadResourceManageruserName - the user who is creating the macro output.prefix - the prefix of the macro output's namesuffix - the suffix of the macro outputpublic void setBootstrapManager(BootstrapManager bootstrapManager)
public void setGateKeeper(GateKeeper gateKeeper)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||