info.magnolia.module.admininterface
Class UUIDSaveHandler
java.lang.Object
info.magnolia.module.admininterface.SaveHandlerImpl
info.magnolia.module.admininterface.UUIDSaveHandler
- All Implemented Interfaces:
- DialogAwareSaveHandler, SaveHandler
public class UUIDSaveHandler
- extends SaveHandlerImpl
- implements DialogAwareSaveHandler
This save handler checks each control if it is implementing the UUIDDialogControl interface. If so it stores the uuid
instead of the path.
- Version:
- $Id: UUIDSaveHandler.java 32667 2010-03-13 00:37:06Z gjoseph $
- Author:
- Philipp Bracher
Method Summary |
protected info.magnolia.cms.gui.dialog.DialogControlImpl |
getControl(String name)
Get the contorl which is processed now |
info.magnolia.cms.gui.dialog.Dialog |
getDialog()
|
protected void |
processMultiple(info.magnolia.cms.core.Content node,
String name,
int type,
String[] values)
Process a multiple value |
protected void |
processString(info.magnolia.cms.core.Content node,
String name,
int type,
int encoding,
String[] values,
String valueStr)
Process a singel value |
void |
setDialog(info.magnolia.cms.gui.dialog.Dialog dialog)
|
Methods inherited from class info.magnolia.module.admininterface.SaveHandlerImpl |
cleanLineBreaks, getCreationItemType, getForm, getNodeCollectionName, getNodeName, getPageNode, getParagraph, getPath, getRepository, getSaveNode, getValue, getValue, getValue, init, isCreate, processBinary, processCommon, processDate, processRemoveCommon, processRichEdit, processSaveInfo, processWriteCommon, replacePByBr, save, saveDocument, setCreate, setCreationItemType, setForm, setNodeCollectionName, setNodeName, setParagraph, setPath, setRepository, updateLinks |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface info.magnolia.module.admininterface.SaveHandler |
getCreationItemType, getNodeCollectionName, getNodeName, getParagraph, getPath, getRepository, init, isCreate, save, setCreate, setCreationItemType, setNodeCollectionName, setNodeName, setParagraph, setPath, setRepository |
UUIDSaveHandler
public UUIDSaveHandler()
getDialog
public info.magnolia.cms.gui.dialog.Dialog getDialog()
- Specified by:
getDialog
in interface DialogAwareSaveHandler
setDialog
public void setDialog(info.magnolia.cms.gui.dialog.Dialog dialog)
- Specified by:
setDialog
in interface DialogAwareSaveHandler
processString
protected void processString(info.magnolia.cms.core.Content node,
String name,
int type,
int encoding,
String[] values,
String valueStr)
throws javax.jcr.PathNotFoundException,
javax.jcr.RepositoryException,
info.magnolia.cms.security.AccessDeniedException
- Process a singel value
- Overrides:
processString
in class SaveHandlerImpl
- Throws:
javax.jcr.PathNotFoundException
javax.jcr.RepositoryException
info.magnolia.cms.security.AccessDeniedException
processMultiple
protected void processMultiple(info.magnolia.cms.core.Content node,
String name,
int type,
String[] values)
throws javax.jcr.RepositoryException,
javax.jcr.PathNotFoundException,
info.magnolia.cms.security.AccessDeniedException
- Process a multiple value
- Overrides:
processMultiple
in class SaveHandlerImpl
- Throws:
javax.jcr.RepositoryException
javax.jcr.PathNotFoundException
info.magnolia.cms.security.AccessDeniedException
getControl
protected info.magnolia.cms.gui.dialog.DialogControlImpl getControl(String name)
- Get the contorl which is processed now
- Parameters:
name
-
- Returns:
- the control or null if not found
Copyright © 2003-2010 Magnolia International Ltd.. All Rights Reserved.