|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object info.magnolia.cms.servlets.MVCServletHandlerImpl info.magnolia.cms.servlets.CommandBasedMVCServletHandler info.magnolia.module.admininterface.PageMVCHandler info.magnolia.module.admininterface.TemplatedMVCHandler info.magnolia.module.admininterface.pages.ExportPage
public class ExportPage
Simple servlet used to import/export data from jcr using the standard jcr import/export features.
Field Summary | |
---|---|
protected boolean |
mgnlKeepVersions
|
protected java.lang.String |
mgnlPath
|
protected java.lang.String |
mgnlRepository
|
static java.lang.String |
MIME_APPLICATION_ZIP
|
static java.lang.String |
MIME_GZIP
|
static java.lang.String |
MIME_TEXT_XML
|
static long |
serialVersionUID
Stable serialVersionUID. |
static java.lang.String |
VIEW_EXPORT
View value for the export file stream (won't render anything) |
Fields inherited from class info.magnolia.module.admininterface.PageMVCHandler |
---|
COMMAND_PARAMETER_NAME, COMMAND_SHOW, VIEW_SHOW |
Fields inherited from class info.magnolia.cms.servlets.MVCServletHandlerImpl |
---|
exception, request, response, VIEW_ERROR, VIEW_SUCCESS |
Fields inherited from interface info.magnolia.cms.servlets.MVCServletHandler |
---|
VIEW_NOTHING |
Constructor Summary | |
---|---|
ExportPage(java.lang.String name,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
Method Summary | |
---|---|
protected boolean |
checkPermissions(javax.servlet.http.HttpServletRequest request,
java.lang.String repository,
java.lang.String basePath,
long permissionType)
Uses access manager to authorise this request. |
java.lang.String |
exportxml()
Actually perform export. |
java.lang.String |
getCommand()
Returns the name of the command we want to execute. |
java.lang.String |
getExt()
Getter for ext . |
Messages |
getMessages()
|
java.lang.String |
getMgnlPath()
Getter for mgnlPath . |
java.lang.String |
getMgnlRepository()
Getter for mgnlRepository . |
java.util.Iterator |
getRepositories()
|
boolean |
isExportxml()
Getter for exportxml . |
boolean |
isMgnlFormat()
Getter for mgnlFormat . |
boolean |
isMgnlKeepVersions()
Getter for mgnlKeepVersions . |
void |
renderHtml(java.lang.String view)
Renders the template. |
void |
setExportxml(boolean exportxml)
Setter for exportxml . |
void |
setExt(java.lang.String ext)
Setter for ext . |
void |
setMgnlFormat(boolean mgnlFormat)
Setter for mgnlFormat . |
void |
setMgnlKeepVersions(boolean mgnlKeepVersions)
Setter for mgnlKeepVersions . |
void |
setMgnlPath(java.lang.String mgnlPath)
Setter for mgnlPath . |
void |
setMgnlRepository(java.lang.String mgnlRepository)
Setter for mgnlRepository . |
Methods inherited from class info.magnolia.module.admininterface.TemplatedMVCHandler |
---|
getTemplateName |
Methods inherited from class info.magnolia.module.admininterface.PageMVCHandler |
---|
getForm, getI18nBasename, getMsgs, getParams, init, setForm, setI18nBasename, setMsgs, setParams, show |
Methods inherited from class info.magnolia.cms.servlets.CommandBasedMVCServletHandler |
---|
execute, findCommand, getCatalogueName, getCommandContext, getViewNameAfterExecution, setCatalogueName |
Methods inherited from class info.magnolia.cms.servlets.MVCServletHandlerImpl |
---|
getException, getExceptionStackTrace, getName, getRequest, getResponse, populateFromRequest, setCommand, setRequest, setResponse |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final long serialVersionUID
public static final java.lang.String MIME_TEXT_XML
public static final java.lang.String MIME_GZIP
public static final java.lang.String MIME_APPLICATION_ZIP
public static final java.lang.String VIEW_EXPORT
protected java.lang.String mgnlRepository
protected java.lang.String mgnlPath
protected boolean mgnlKeepVersions
Constructor Detail |
---|
public ExportPage(java.lang.String name, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
name
- request
- response
- Method Detail |
---|
public java.lang.String getExt()
ext
.
public void setExt(java.lang.String ext)
ext
.
ext
- The ext to set.public boolean isMgnlFormat()
mgnlFormat
.
public void setMgnlFormat(boolean mgnlFormat)
mgnlFormat
.
mgnlFormat
- The mgnlFormat to set.public boolean isMgnlKeepVersions()
mgnlKeepVersions
.
public void setMgnlKeepVersions(boolean mgnlKeepVersions)
mgnlKeepVersions
.
mgnlKeepVersions
- The mgnlKeepVersions to set.public java.lang.String getMgnlPath()
mgnlPath
.
public void setMgnlPath(java.lang.String mgnlPath)
mgnlPath
.
mgnlPath
- The mgnlPath to set.public java.lang.String getMgnlRepository()
mgnlRepository
.
public void setMgnlRepository(java.lang.String mgnlRepository)
mgnlRepository
.
mgnlRepository
- The mgnlRepository to set.public boolean isExportxml()
exportxml
.
public void setExportxml(boolean exportxml)
exportxml
.
exportxml
- The exportxml to set.public java.lang.String getCommand()
MVCServletHandler
getCommand
in interface MVCServletHandler
getCommand
in class MVCServletHandlerImpl
MVCServletHandlerImpl.getCommand()
public java.lang.String exportxml() throws java.lang.Exception
response
- HttpServletResponserepository
- selected repositorybasepath
- base path in repositoryformat
- should we format the resulting xmlkeepVersionHistory
- if false
version info will be stripped from the exported document
java.io.IOException
- for errors while accessing the servlet output stream
java.lang.Exception
protected boolean checkPermissions(javax.servlet.http.HttpServletRequest request, java.lang.String repository, java.lang.String basePath, long permissionType)
request
- HttpServletRequest as received by the service method
public void renderHtml(java.lang.String view) throws java.io.IOException
TemplatedMVCHandler
renderHtml
in interface MVCServletHandler
renderHtml
in class TemplatedMVCHandler
java.io.IOException
public Messages getMessages()
public java.util.Iterator getRepositories()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |