|
||||||||||
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 String |
mgnlPath
|
protected String |
mgnlRepository
|
static String |
MIME_APPLICATION_ZIP
|
static String |
MIME_GZIP
|
static String |
MIME_TEXT_XML
|
static long |
serialVersionUID
Stable serialVersionUID. |
static 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(String name,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
Method Summary | |
---|---|
protected void |
checkPath()
|
protected boolean |
checkPermissions(javax.servlet.http.HttpServletRequest request,
String repository,
String basePath,
long permissionType)
Uses access manager to authorise this request. |
String |
exportxml()
Actually perform export. |
String |
getCommand()
|
String |
getExt()
Getter for ext . |
info.magnolia.cms.i18n.Messages |
getMessages()
|
String |
getMgnlPath()
Getter for mgnlPath . |
String |
getMgnlRepository()
Getter for mgnlRepository . |
Iterator |
getRepositories()
|
boolean |
isExportxml()
Getter for exportxml . |
boolean |
isMgnlFormat()
Getter for mgnlFormat . |
void |
renderHtml(String view)
Renders the template. |
void |
setExportxml(boolean exportxml)
Setter for exportxml . |
void |
setExt(String ext)
Setter for ext . |
void |
setMgnlFormat(boolean mgnlFormat)
Setter for mgnlFormat . |
void |
setMgnlPath(String mgnlPath)
Setter for mgnlPath . |
void |
setMgnlRepository(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 String MIME_TEXT_XML
public static final String MIME_GZIP
public static final String MIME_APPLICATION_ZIP
public static final String VIEW_EXPORT
protected String mgnlRepository
protected String mgnlPath
Constructor Detail |
---|
public ExportPage(String name, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
name
- request
- response
- Method Detail |
---|
public String getExt()
ext
.
public void setExt(String ext)
ext
.
ext
- The ext to set.public boolean isMgnlFormat()
mgnlFormat
.
public void setMgnlFormat(boolean mgnlFormat)
mgnlFormat
.
mgnlFormat
- The mgnlFormat to set.public String getMgnlPath()
mgnlPath
.
public void setMgnlPath(String mgnlPath)
mgnlPath
.
mgnlPath
- The mgnlPath to set.public String getMgnlRepository()
mgnlRepository
.
public void setMgnlRepository(String mgnlRepository)
mgnlRepository
.
mgnlRepository
- The mgnlRepository to set.public boolean isExportxml()
exportxml
.
public void setExportxml(boolean exportxml)
exportxml
.
exportxml
- The exportxml to set.public String getCommand()
getCommand
in interface info.magnolia.cms.servlets.MVCServletHandler
getCommand
in class info.magnolia.cms.servlets.MVCServletHandlerImpl
MVCServletHandlerImpl.getCommand()
public String exportxml() throws 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
IOException
- for errors while accessing the servlet output stream
Exception
protected boolean checkPermissions(javax.servlet.http.HttpServletRequest request, String repository, String basePath, long permissionType)
request
- HttpServletRequest as received by the service method
public void renderHtml(String view) throws IOException
TemplatedMVCHandler
renderHtml
in interface info.magnolia.cms.servlets.MVCServletHandler
renderHtml
in class TemplatedMVCHandler
IOException
public info.magnolia.cms.i18n.Messages getMessages()
public Iterator getRepositories()
protected void checkPath() throws javax.jcr.LoginException, javax.jcr.RepositoryException, javax.servlet.ServletException
javax.jcr.LoginException
javax.jcr.RepositoryException
javax.servlet.ServletException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |