info.magnolia.module.admininterface.lists
Class VersionsList

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.lists.AbstractList
                      extended by info.magnolia.module.admininterface.lists.VersionsList
All Implemented Interfaces:
MVCServletHandler
Direct Known Subclasses:
WebsiteVersionsList

public abstract class VersionsList
extends AbstractList

Version:
$Revision: 41137 $ ($Author: gjoseph $)
Author:
Philipp Bracher

Field Summary
protected  java.lang.String path
          The path of the node
 
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
VersionsList(java.lang.String name, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 
Method Summary
protected  void configureContextMenu(ContextMenu menu)
          Override to configure the menu
protected  void configureFunctionBar(FunctionBar bar)
          Override to configure the bar
 void configureList(ListControl list)
           
 java.lang.String getJsExecutedAfterSaving()
           
protected  int getMaxShowedVersions()
          Check the version rollover.
 ListModel getModel()
          Returns the model used by this list
protected  Content getNode()
           
 java.lang.String getOnDiffFunction()
           
abstract  java.lang.String getOnShowFunction()
          The script executed on a show link
 java.lang.String getPath()
           
 java.lang.String getRepository()
           
 java.lang.String getVersionLabel()
           
protected  boolean isSupportsDiff()
           
 java.lang.String onRender()
          Do some additional rendering in the subclass
 java.lang.String restore()
           
 java.lang.String restoreRecursive()
           
 void setJsExecutedAfterSaving(java.lang.String jsExecutedAfterSaving)
           
 void setPath(java.lang.String path)
           
 void setRepository(java.lang.String repository)
           
 void setVersionLabel(java.lang.String versionLabel)
           
 
Methods inherited from class info.magnolia.module.admininterface.lists.AbstractList
addContextMenuItem, getContextMenu, getFunctionBar, getGroupBy, getGroupByOrder, getLanguage, getList, getRenderKit, getSortBy, getSortByOrder, getTemplateName, getURI, initList, onRenderHeader, setFunctionBar, setGroupBy, setGroupByOrder, setList, setSortBy, setSortByOrder, show
 
Methods inherited from class info.magnolia.module.admininterface.TemplatedMVCHandler
renderHtml
 
Methods inherited from class info.magnolia.module.admininterface.PageMVCHandler
getForm, getI18nBasename, getMsgs, getParams, init, setForm, setI18nBasename, setMsgs, setParams
 
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

path

protected java.lang.String path
The path of the node

Constructor Detail

VersionsList

public VersionsList(java.lang.String name,
                    javax.servlet.http.HttpServletRequest request,
                    javax.servlet.http.HttpServletResponse response)
             throws java.lang.Exception
Parameters:
name -
request -
response -
Throws:
java.lang.Exception
Method Detail

getModel

public ListModel getModel()
Description copied from class: AbstractList
Returns the model used by this list

Specified by:
getModel in class AbstractList
See Also:
AbstractList.getModel()

getMaxShowedVersions

protected int getMaxShowedVersions()
Check the version rollover. The latest can not get restored therfore we don't show it.


configureList

public void configureList(ListControl list)
Specified by:
configureList in class AbstractList

getOnShowFunction

public abstract java.lang.String getOnShowFunction()
The script executed on a show link


configureContextMenu

protected void configureContextMenu(ContextMenu menu)
Description copied from class: AbstractList
Override to configure the menu

Overrides:
configureContextMenu in class AbstractList

isSupportsDiff

protected boolean isSupportsDiff()

configureFunctionBar

protected void configureFunctionBar(FunctionBar bar)
Description copied from class: AbstractList
Override to configure the bar

Overrides:
configureFunctionBar in class AbstractList
See Also:
AbstractList.configureFunctionBar(info.magnolia.cms.gui.control.FunctionBar)

getNode

protected Content getNode()
                   throws javax.jcr.PathNotFoundException,
                          javax.jcr.RepositoryException,
                          AccessDeniedException
Returns:
Throws:
javax.jcr.PathNotFoundException
javax.jcr.RepositoryException
AccessDeniedException

restore

public java.lang.String restore()

restoreRecursive

public java.lang.String restoreRecursive()

getPath

public java.lang.String getPath()
Returns:
Returns the path.

setPath

public void setPath(java.lang.String path)
Parameters:
path - The path to set.

getRepository

public java.lang.String getRepository()
Returns:
Returns the repository.

setRepository

public void setRepository(java.lang.String repository)
Parameters:
repository - The repository to set.

onRender

public java.lang.String onRender()
Description copied from class: AbstractList
Do some additional rendering in the subclass

Overrides:
onRender in class AbstractList

getVersionLabel

public java.lang.String getVersionLabel()
Returns:
Returns the versionLabel.

setVersionLabel

public void setVersionLabel(java.lang.String versionLabel)
Parameters:
versionLabel - The versionLabel to set.

getOnDiffFunction

public java.lang.String getOnDiffFunction()

getJsExecutedAfterSaving

public java.lang.String getJsExecutedAfterSaving()

setJsExecutedAfterSaving

public void setJsExecutedAfterSaving(java.lang.String jsExecutedAfterSaving)


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