info.magnolia.module.admininterface.trees
Class UsersTreeHandler
java.lang.Object
info.magnolia.cms.servlets.MVCServletHandlerImpl
info.magnolia.cms.servlets.CommandBasedMVCServletHandler
info.magnolia.module.admininterface.AdminTreeMVCHandler
info.magnolia.module.admininterface.trees.UsersTreeHandler
- All Implemented Interfaces:
- info.magnolia.cms.servlets.MVCServletHandler
public class UsersTreeHandler
- extends AdminTreeMVCHandler
Handler for creating/moving/copying/deleting users.
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 |
UsersTreeHandler(String name,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
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 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 |
UsersTreeHandler
public UsersTreeHandler(String name,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
createNode
public String createNode()
- Creates new user node via UserManager.
- Overrides:
createNode
in class AdminTreeMVCHandler
- Returns:
- newly created content node
renameNode
public String renameNode(String newName)
throws info.magnolia.cms.security.AccessDeniedException,
info.magnolia.cms.exchange.ExchangeException,
javax.jcr.PathNotFoundException,
javax.jcr.RepositoryException
- Renames user node, also changes paths is /acl_users.
- Overrides:
renameNode
in class AdminTreeMVCHandler
- Throws:
info.magnolia.cms.security.AccessDeniedException
info.magnolia.cms.exchange.ExchangeException
javax.jcr.PathNotFoundException
javax.jcr.RepositoryException
copyMoveNode
public info.magnolia.cms.core.Content copyMoveNode(String source,
String destination,
boolean move)
throws info.magnolia.cms.exchange.ExchangeException,
javax.jcr.RepositoryException
- Copy/move user node. Also can be used to copy/move folders with users.
- Overrides:
copyMoveNode
in class AdminTreeMVCHandler
- Throws:
info.magnolia.cms.exchange.ExchangeException
javax.jcr.RepositoryException
generateNewName
protected 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.