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

Constructor Detail

LogViewerPage

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

getLogFiles

public java.util.Collection getLogFiles()
the content of the select

Returns:

refresh

public java.lang.String refresh()

next

public java.lang.String next()

previous

public java.lang.String previous()

begin

public java.lang.String begin()

end

public java.lang.String end()

download

public java.lang.String download()
                          throws java.io.FileNotFoundException
Throws:
java.io.FileNotFoundException

displayFileContent

public java.lang.String displayFileContent()

getFileName

public java.lang.String getFileName()

setFileName

public void setFileName(java.lang.String fileName)

getNamesList

public java.util.Collection getNamesList()

getText

public java.lang.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-2011 Magnolia International Ltd.. All Rights Reserved.