info.magnolia.module.exchangesimple.pages
Class ActivationPage

java.lang.Object
  extended by info.magnolia.cms.servlets.MVCServletHandlerImpl
      extended by info.magnolia.cms.servlets.CommandBasedMVCServletHandler
          extended by info.magnolia.module.admininterface.PageMVCHandler
              extended by info.magnolia.module.admininterface.TemplatedMVCHandler
                  extended by info.magnolia.module.exchangesimple.pages.ActivationPage
All Implemented Interfaces:
MVCServletHandler

public class ActivationPage
extends TemplatedMVCHandler

Activation UI.

Version:
$Id$

Field Summary
 
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
ActivationPage(String name, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 
Method Summary
protected  boolean checkPermissions(javax.servlet.http.HttpServletRequest request, String repository, String basePath, long permissionType)
          Uses access manager to authorize this request.
 String generateKeys()
          Actually perform backup.
 String getCommand()
          Returns the name of the command we want to execute.
 String getCurrentPublicKey()
           
 int getKeyLength()
           
 Messages getMessages()
           
 boolean isGenerateKeys()
           
 boolean isSuccess()
           
 void setGenerateKeys(boolean generateKeys)
           
 void setKeyLength(int keyLength)
           
 void setSuccess(boolean success)
           
 
Methods inherited from class info.magnolia.module.admininterface.TemplatedMVCHandler
getTemplateName, renderHtml
 
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
 

Constructor Detail

ActivationPage

public ActivationPage(String name,
                      javax.servlet.http.HttpServletRequest request,
                      javax.servlet.http.HttpServletResponse response)
Parameters:
name -
request -
response -
Method Detail

getCommand

public String getCommand()
Description copied from interface: MVCServletHandler
Returns the name of the command we want to execute.

Specified by:
getCommand in interface MVCServletHandler
Overrides:
getCommand in class MVCServletHandlerImpl
Returns:
Returns the command.
See Also:
MVCServletHandlerImpl.getCommand()

generateKeys

public String generateKeys()
                    throws Exception
Actually perform backup.

Throws:
Exception

getCurrentPublicKey

public String getCurrentPublicKey()

checkPermissions

protected boolean checkPermissions(javax.servlet.http.HttpServletRequest request,
                                   String repository,
                                   String basePath,
                                   long permissionType)
Uses access manager to authorize this request.

Parameters:
request - HttpServletRequest as received by the service method
Returns:
boolean true if read access is granted

getMessages

public Messages getMessages()

getKeyLength

public int getKeyLength()

setKeyLength

public void setKeyLength(int keyLength)

isGenerateKeys

public boolean isGenerateKeys()

setGenerateKeys

public void setGenerateKeys(boolean generateKeys)

isSuccess

public boolean isSuccess()

setSuccess

public void setSuccess(boolean success)


Copyright © 2003-2012 Magnolia International Ltd.. All Rights Reserved.