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 automaticPlanetStatisticsUpdate()
           
 String automaticPlanetUpdate()
           
 String automaticUpdate()
           
 int getAutoUpdate()
           
 String getCommand()
           
 info.magnolia.cms.i18n.Messages getMessages()
           
 String getMgnlPlanetImportRepeat()
           
 String getMgnlPlanetStatisticsImportRepeat()
           
protected  boolean checkPermissions(javax.servlet.http.HttpServletRequest request, String repository, String basePath, long permissionType)
          Uses access manager to authorize this request.
 boolean isManualBackup()
          Getter for maualBackup.
 boolean isManualRefreshData()
           
 boolean isManualRefreshStatistics()
          Getter for manualRefreshStatistics.
 boolean isMgnlKeepVersions()
          Getter for mgnlKeepVersions.
 String manualRefresh()
          Actually fetch RSS feeds.
 String manualRefreshData()
           
 String manualRefreshStatistics()
           
 void renderHtml(String view)
           
 void setManualRefresh(boolean backup)
          Setter for manualRefresh.
 void setManualRefreshData(boolean manualRefreshData)
           
 void setManualRefreshStatistics(boolean manualRefreshStatistics)
          Setter for manualRefreshStatistics.
 void setMgnlImportRepeat(String mgnlImportRepeat)
           
 void setMgnlKeepVersions(boolean mgnlKeepVersions)
          Setter for mgnlKeepVersions.
 void setMgnlPlanetImportRepeat(String mgnlPlanetImportRepeat)
           
 void setMgnlPlanetStatisticsImportRepeat(String mgnlPlanetStatisticsImportRepeat)
           
 
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.

isManualRefreshStatistics

public boolean isManualRefreshStatistics()
Getter for manualRefreshStatistics.

Returns:
Returns the manualRefreshStatistics flag.

setManualRefreshStatistics

public void setManualRefreshStatistics(boolean manualRefreshStatistics)
Setter for manualRefreshStatistics.

Parameters:
manualRefreshStatistics - The manualRefreshStatistics to set.

isManualRefreshData

public boolean isManualRefreshData()

setManualRefreshData

public void setManualRefreshData(boolean manualRefreshData)

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 fetch RSS feeds.

Throws:
Exception

automaticUpdate

public String automaticUpdate()
                       throws Exception
Throws:
Exception

manualRefreshData

public String manualRefreshData()
                         throws Exception
Throws:
Exception

automaticPlanetUpdate

public String automaticPlanetUpdate()
                             throws Exception
Throws:
Exception

manualRefreshStatistics

public String manualRefreshStatistics()
                               throws Exception
Throws:
Exception

automaticPlanetStatisticsUpdate

public String automaticPlanetStatisticsUpdate()
                                       throws Exception
Throws:
Exception

getMgnlPlanetImportRepeat

public String getMgnlPlanetImportRepeat()

getMgnlPlanetStatisticsImportRepeat

public String getMgnlPlanetStatisticsImportRepeat()

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)

setMgnlPlanetImportRepeat

public void setMgnlPlanetImportRepeat(String mgnlPlanetImportRepeat)

setMgnlPlanetStatisticsImportRepeat

public void setMgnlPlanetStatisticsImportRepeat(String mgnlPlanetStatisticsImportRepeat)


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