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:
info.magnolia.cms.servlets.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
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  info.magnolia.rendering.template.TemplateDefinition getDefaultTemplate(javax.jcr.Node node)
           
 String getTemplatesHtml()
           
protected  boolean isCopyOrMoveAvailable(String targetPath, String pagePath)
           
 boolean isGetAvailableTemplates()
           
 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 info.magnolia.rendering.template.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 info.magnolia.cms.servlets.MVCServletHandler
Overrides:
getCommand in class AdminTreeMVCHandler
Returns:
name of the command

getTemplatesHtml

public String getTemplatesHtml()

copyOrMove

protected void copyOrMove(int action)
                   throws info.magnolia.cms.exchange.ExchangeException,
                          javax.jcr.RepositoryException
Overrides:
copyOrMove in class AdminTreeMVCHandler
Throws:
info.magnolia.cms.exchange.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)


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