info.magnolia.module.admininterface.dialogs
Class UserEditDialog

java.lang.Object
  extended by info.magnolia.cms.servlets.MVCServletHandlerImpl
      extended by info.magnolia.module.admininterface.DialogMVCHandler
          extended by info.magnolia.module.admininterface.dialogs.ConfiguredDialog
              extended by info.magnolia.module.admininterface.dialogs.UserEditDialog
All Implemented Interfaces:
MVCServletHandler
Direct Known Subclasses:
GroupEditDialog

public class UserEditDialog
extends ConfiguredDialog

Version:
$Id: UserEditDialog.java 45241 2011-05-19 06:34:40Z ochytil $
Author:
Fabrizio Giustina

Field Summary
protected static org.slf4j.Logger log
          Logger.
protected static String NODE_ACLCONFIG
           
protected static String NODE_ACLROLES
           
protected static String NODE_ACLUSERS
           
 
Fields inherited from class info.magnolia.module.admininterface.DialogMVCHandler
COMMAND_SAVE, COMMAND_SELECT_PARAGRAPH, COMMAND_SHOW_DIALOG, form, hm, locale, msgs, nodeName, params, path, repository, richE, richEPaste, storageNode, VIEW_CLOSE_WINDOW, VIEW_SHOW_DIALOG
 
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
UserEditDialog(String name, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Content configNode)
           
 
Method Summary
protected  void configureSaveHandler(SaveHandler save)
          Configure the save control
protected  Dialog createDialog(Content configNode, Content storageNode)
          Is called during showDialog().
 String getRepository()
           
protected  boolean onPostSave(SaveHandler saveControl)
           
protected  void writeACL(Content node)
          Write ACL entries under the given user node
 
Methods inherited from class info.magnolia.module.admininterface.dialogs.ConfiguredDialog
getConfigNode, getConfiguredDialog, getConfiguredDialog
 
Methods inherited from class info.magnolia.module.admininterface.DialogMVCHandler
configureDialog, createSaveHandler, getCommand, getDialog, getItemType, getJsExecutedAfterSaving, getSaveHandler, getStorageNode, onPreSave, onSave, onSaveFailed, removeSessionAttributes, renderHtml, save, setDialog, setItemType, setJsExecutedAfterSaving, showDialog, validate
 
Methods inherited from class info.magnolia.cms.servlets.MVCServletHandlerImpl
execute, getException, getExceptionStackTrace, getName, getRequest, getResponse, init, populateFromRequest, setCommand, setRequest, setResponse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static org.slf4j.Logger log
Logger.


NODE_ACLUSERS

protected static final String NODE_ACLUSERS
See Also:
Constant Field Values

NODE_ACLROLES

protected static final String NODE_ACLROLES
See Also:
Constant Field Values

NODE_ACLCONFIG

protected static final String NODE_ACLCONFIG
See Also:
Constant Field Values
Constructor Detail

UserEditDialog

public UserEditDialog(String name,
                      javax.servlet.http.HttpServletRequest request,
                      javax.servlet.http.HttpServletResponse response,
                      Content configNode)
Parameters:
name -
request -
response -
configNode -
Method Detail

getRepository

public String getRepository()
Overrides:
getRepository in class DialogMVCHandler
Returns:
the default repository

configureSaveHandler

protected void configureSaveHandler(SaveHandler save)
Description copied from class: DialogMVCHandler
Configure the save control

Overrides:
configureSaveHandler in class DialogMVCHandler
See Also:
DialogMVCHandler.configureSaveHandler(info.magnolia.module.admininterface.SaveHandler)

createDialog

protected Dialog createDialog(Content configNode,
                              Content storageNode)
                       throws javax.jcr.RepositoryException
Is called during showDialog(). Here can you create/ add controls for the dialog.

Overrides:
createDialog in class DialogMVCHandler
Parameters:
configNode -
storageNode -
Throws:
javax.jcr.RepositoryException

writeACL

protected void writeACL(Content node)
                 throws javax.jcr.RepositoryException
Write ACL entries under the given user node

Parameters:
node - under which ACL for all workspaces needs to be created
Throws:
javax.jcr.RepositoryException

onPostSave

protected boolean onPostSave(SaveHandler saveControl)
Overrides:
onPostSave in class DialogMVCHandler


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