info.magnolia.module.admininterface.trees
Class WebsiteTreeHandler

java.lang.Object
  extended by info.magnolia.cms.servlets.MVCServletHandlerImpl
      extended by info.magnolia.cms.servlets.CommandBasedMVCServletHandler
          extended by info.magnolia.module.admininterface.AdminTreeMVCHandler
              extended by info.magnolia.module.admininterface.trees.WebsiteTreeHandler
All Implemented Interfaces:
MVCServletHandler

public class WebsiteTreeHandler
extends AdminTreeMVCHandler

Version:
$Id$
Author:
philipp

Field Summary
 
Fields inherited from class info.magnolia.module.admininterface.AdminTreeMVCHandler
browseMode, COMMAND_ACTIVATE, COMMAND_COPY_NODE, COMMAND_CREATE_NODE, COMMAND_DEACTIVATE, COMMAND_DELETE_NODE, COMMAND_MOVE_NODE, COMMAND_SAVE_VALUE, COMMAND_SHOW_TREE, configuration, createItemType, displayValue, newNodeName, newPath, path, pathOpen, pathSelected, rootPath, tree, VIEW_COPY_MOVE, VIEW_CREATE, VIEW_NOTHING, VIEW_TREE, VIEW_VALUE
 
Fields inherited from class info.magnolia.cms.servlets.MVCServletHandlerImpl
exception, request, response, VIEW_ERROR, VIEW_SUCCESS
 
Constructor Summary
WebsiteTreeHandler(String name, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 
Method Summary
 String checkIfChildrenModified()
           
protected  void copyOrMove(int action)
           
 String createNode()
          Create a new node and show the tree
 String getCommand()
          Depending on the request it is generating a logical command name
protected  TemplateDefinition getDefaultTemplate(javax.jcr.Node node)
           
 String getTemplatesHtml()
           
 boolean isCheckIfChildrenModified()
           
protected  boolean isCopyOrMoveAvailable(String targetPath, String pagePath)
           
 boolean isGetAvailableTemplates()
           
 void setCheckIfChildrenModified(boolean checkIfChildrenModified)
           
 void setGetAvailableTemplates(boolean getAvailableTemplates)
           
 String show()
          Show the tree
 
Methods inherited from class info.magnolia.module.admininterface.AdminTreeMVCHandler
copy, copyMoveNode, copyNode, deactivateNode, delete, deleteNode, deleteNode, encodeHTML, findCommand, getActivationSyndicator, getCommandContext, getConfiguration, getConfigurationClass, getCreateItemType, getHierarchyManager, getI18nBasename, getNewNodeName, getPath, getPathSelected, getRepository, getRootPath, getTree, getTreeClass, getViewNameAfterExecution, init, isBrowseMode, isEnableDeleteConfirmation, move, moveNode, pasteNode, rename, renameNode, renderHeaderIncludes, renderHtml, renderTree, saveValue, setBrowseMode, setConfiguration, setConfigurationClass, setCreateItemType, setEnableDeleteConfirmation, setI18nBasename, setNewNodeName, setRepository, setRootPath, setTree, setTreeClass
 
Methods inherited from class info.magnolia.cms.servlets.CommandBasedMVCServletHandler
execute, getCatalogueName, 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
 

Constructor Detail

WebsiteTreeHandler

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

createNode

public String createNode()
Description copied from class: AdminTreeMVCHandler
Create a new node and show the tree

Overrides:
createNode in class AdminTreeMVCHandler
Returns:
newly created content node

getDefaultTemplate

protected TemplateDefinition getDefaultTemplate(javax.jcr.Node node)

show

public String show()
Description copied from class: AdminTreeMVCHandler
Show the tree

Overrides:
show in class AdminTreeMVCHandler

getCommand

public String getCommand()
Description copied from class: AdminTreeMVCHandler
Depending on the request it is generating a logical command name

Specified by:
getCommand in interface MVCServletHandler
Overrides:
getCommand in class AdminTreeMVCHandler
Returns:
name of the command

getTemplatesHtml

public String getTemplatesHtml()

checkIfChildrenModified

public String checkIfChildrenModified()

copyOrMove

protected void copyOrMove(int action)
                   throws ExchangeException,
                          javax.jcr.RepositoryException
Overrides:
copyOrMove in class AdminTreeMVCHandler
Throws:
ExchangeException
javax.jcr.RepositoryException

isCopyOrMoveAvailable

protected boolean isCopyOrMoveAvailable(String targetPath,
                                        String pagePath)
                                 throws javax.jcr.RepositoryException
Throws:
javax.jcr.RepositoryException

isGetAvailableTemplates

public boolean isGetAvailableTemplates()

setGetAvailableTemplates

public void setGetAvailableTemplates(boolean getAvailableTemplates)

isCheckIfChildrenModified

public boolean isCheckIfChildrenModified()

setCheckIfChildrenModified

public void setCheckIfChildrenModified(boolean checkIfChildrenModified)


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