info.magnolia.module.rssaggregator.pages
Class RSSAggregatorPage

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.rssaggregator.pages.RSSAggregatorPage
All Implemented Interfaces:
info.magnolia.cms.servlets.MVCServletHandler

public class RSSAggregatorPage
extends info.magnolia.module.admininterface.TemplatedMVCHandler

RSS Aggregator UI.

Author:
Jan Haderka

Field Summary
protected  boolean mgnlKeepVersions
           
protected  int mgnlMaxEntriesPerFile
           
static long serialVersionUID
          Stable serialVersionUID.
static String VIEW_EXPORT
          View value for executing the manual backup.
 
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
RSSAggregatorPage(String name, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 
Method Summary
 String automaticUpdate()
           
protected  boolean checkPermissions(javax.servlet.http.HttpServletRequest request, String repository, String basePath, long permissionType)
          Uses access manager to authorize this request.
 int getAutoUpdate()
           
 String getCommand()
           
 info.magnolia.cms.i18n.Messages getMessages()
           
 boolean isManualBackup()
          Getter for maualBackup.
 boolean isMgnlKeepVersions()
          Getter for mgnlKeepVersions.
 String manualRefresh()
          Actually perform backup.
 void renderHtml(String view)
           
 void setManualRefresh(boolean backup)
          Setter for manualRefresh.
 void setMgnlImportRepeat(String mgnlImportRepeat)
           
 void setMgnlKeepVersions(boolean mgnlKeepVersions)
          Setter for mgnlKeepVersions.
 
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

serialVersionUID

public static final long serialVersionUID
Stable serialVersionUID.

See Also:
Constant Field Values

VIEW_EXPORT

public static final String VIEW_EXPORT
View value for executing the manual backup. (won't render anything)

See Also:
Constant Field Values

mgnlKeepVersions

protected boolean mgnlKeepVersions

mgnlMaxEntriesPerFile

protected int mgnlMaxEntriesPerFile
Constructor Detail

RSSAggregatorPage

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

isMgnlKeepVersions

public boolean isMgnlKeepVersions()
Getter for mgnlKeepVersions.

Returns:
Returns the mgnlKeepVersions.

setMgnlKeepVersions

public void setMgnlKeepVersions(boolean mgnlKeepVersions)
Setter for mgnlKeepVersions.

Parameters:
mgnlKeepVersions - The mgnlKeepVersions to set.

isManualBackup

public boolean isManualBackup()
Getter for maualBackup.

Returns:
Returns the manualRefresh flag.

setManualRefresh

public void setManualRefresh(boolean backup)
Setter for manualRefresh.

Parameters:
backup - The manualRefresh to set.

getCommand

public String getCommand()
Specified by:
getCommand in interface info.magnolia.cms.servlets.MVCServletHandler
Overrides:
getCommand in class info.magnolia.cms.servlets.MVCServletHandlerImpl
See Also:
MVCServletHandlerImpl.getCommand()

manualRefresh

public String manualRefresh()
                     throws Exception
Actually perform backup.

Throws:
Exception

automaticUpdate

public String automaticUpdate()
                       throws Exception
Throws:
Exception

getAutoUpdate

public int getAutoUpdate()
                  throws Exception
Throws:
Exception

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

renderHtml

public void renderHtml(String view)
                throws IOException
Specified by:
renderHtml in interface info.magnolia.cms.servlets.MVCServletHandler
Overrides:
renderHtml in class info.magnolia.module.admininterface.TemplatedMVCHandler
Throws:
IOException

getMessages

public info.magnolia.cms.i18n.Messages getMessages()

setMgnlImportRepeat

public void setMgnlImportRepeat(String mgnlImportRepeat)


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