info.magnolia.module.admininterface.trees
Class HierarchicalUsersTreeHandler
java.lang.Object
info.magnolia.cms.servlets.MVCServletHandlerImpl
info.magnolia.cms.servlets.CommandBasedMVCServletHandler
info.magnolia.module.admininterface.AdminTreeMVCHandler
info.magnolia.module.admininterface.trees.HierarchicalUsersTreeHandler
- All Implemented Interfaces:
- MVCServletHandler
public class HierarchicalUsersTreeHandler
- extends AdminTreeMVCHandler
This handler prevents from creating users with same names.
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 |
Methods inherited from class info.magnolia.module.admininterface.AdminTreeMVCHandler |
copy, copyNode, deactivateNode, delete, deleteNode, deleteNode, encodeHTML, findCommand, getActivationSyndicator, getCommand, getCommandContext, getConfiguration, getConfigurationClass, getCreateItemType, getHierarchyManager, getI18nBasename, getNewNodeName, getPath, getPathSelected, getRepository, getRootPath, getTree, getTreeClass, getViewNameAfterExecution, init, isBrowseMode, isEnableDeleteConfirmation, move, moveNode, pasteNode, rename, renderHeaderIncludes, renderHtml, renderTree, saveValue, setBrowseMode, setConfiguration, setConfigurationClass, setCreateItemType, setEnableDeleteConfirmation, setI18nBasename, setNewNodeName, setRepository, setRootPath, setTree, setTreeClass, show |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HierarchicalUsersTreeHandler
public HierarchicalUsersTreeHandler(String name,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
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
renameNode
public String renameNode(String newLabel)
throws AccessDeniedException,
ExchangeException,
javax.jcr.PathNotFoundException,
javax.jcr.RepositoryException
- Overrides:
renameNode
in class AdminTreeMVCHandler
- Throws:
AccessDeniedException
ExchangeException
javax.jcr.PathNotFoundException
javax.jcr.RepositoryException
copyMoveNode
public Content copyMoveNode(String source,
String destination,
boolean move)
throws ExchangeException,
javax.jcr.RepositoryException
- Overrides:
copyMoveNode
in class AdminTreeMVCHandler
- Throws:
ExchangeException
javax.jcr.RepositoryException
generateNewName
protected static String generateNewName(String value)
- Generates new user name. If user exists it simply adds an int value to
end of user name.
Copyright © 2003-2013 Magnolia International Ltd.. All Rights Reserved.