info.magnolia.module.admininterface.pages
Class LogViewerPage

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.admininterface.pages.LogViewerPage
All Implemented Interfaces:
MVCServletHandler

public class LogViewerPage
extends TemplatedMVCHandler


Field Summary
static String LOGS_FOLDER_PROPERTY
           
 
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
LogViewerPage(String name, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 
Method Summary
 String begin()
           
 String displayFileContent()
           
 String download()
           
 String end()
           
 long getCurrentPosition()
           
 String getFileName()
           
 long getFileSizeInLines()
           
 Collection getLogFiles()
          the content of the select
 long getMaxNumLinesPerPage()
           
 Collection getNamesList()
           
 long getPageNumber()
           
 String getText()
           
 long getTotalPages()
           
 String next()
           
 String previous()
           
 String refresh()
           
 void setCurrentPosition(long currentPosition)
           
 void setFileName(String fileName)
           
 void setFileSizeInLines(long fileSizeInLines)
           
 void setMaxNumLinesPerPage(long maxNumLinesPerPage)
          Sets new maximum value in the range <1, LONG_MAX>. 0 or negative values are ignored.
 
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
getCommand, 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

LOGS_FOLDER_PROPERTY

public static final String LOGS_FOLDER_PROPERTY
See Also:
Constant Field Values
Constructor Detail

LogViewerPage

public LogViewerPage(String name,
                     javax.servlet.http.HttpServletRequest request,
                     javax.servlet.http.HttpServletResponse response)
Method Detail

getLogFiles

public Collection getLogFiles()
the content of the select

Returns:

refresh

public String refresh()

next

public String next()

previous

public String previous()

begin

public String begin()

end

public String end()

download

public String download()
                throws FileNotFoundException
Throws:
FileNotFoundException

displayFileContent

public String displayFileContent()

getFileName

public String getFileName()

setFileName

public void setFileName(String fileName)

getNamesList

public Collection getNamesList()

getText

public String getText()

getCurrentPosition

public long getCurrentPosition()

setCurrentPosition

public void setCurrentPosition(long currentPosition)

getFileSizeInLines

public long getFileSizeInLines()

setFileSizeInLines

public void setFileSizeInLines(long fileSizeInLines)

getPageNumber

public long getPageNumber()

getTotalPages

public long getTotalPages()

getMaxNumLinesPerPage

public long getMaxNumLinesPerPage()

setMaxNumLinesPerPage

public void setMaxNumLinesPerPage(long maxNumLinesPerPage)
Sets new maximum value in the range <1, LONG_MAX>. 0 or negative values are ignored.

Parameters:
maxNumLinesPerPage -


Copyright © 2003–2014 Magnolia International Ltd.. All rights reserved.