info.magnolia.module.admininterface
Class UUIDSaveHandler

java.lang.Object
  extended by info.magnolia.module.admininterface.SaveHandlerImpl
      extended by 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 44899 2011-05-10 08:56:45Z dlipp $
Author:
Philipp Bracher

Field Summary
 
Fields inherited from class info.magnolia.module.admininterface.SaveHandlerImpl
log
 
Constructor Summary
UUIDSaveHandler()
           
 
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, getCollectionNodeCreationItemType, getCreationItemType, getForm, getNodeCollectionName, getNodeName, getPageNode, getParagraph, getPath, getRepository, getSaveNode, getValue, getValue, getValue, init, isCreate, processBinary, processCommon, processDate, processRemoveCommon, processRichEdit, processSaveInfo, processWriteCommon, replacePByBr, save, saveDocument, setCollectionNodeCreationItemType, 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
getCollectionNodeCreationItemType, getCreationItemType, getNodeCollectionName, getNodeName, getParagraph, getPath, getRepository, init, isCreate, save, setCollectionNodeCreationItemType, setCreate, setCreationItemType, setNodeCollectionName, setNodeName, setParagraph, setPath, setRepository
 

Constructor Detail

UUIDSaveHandler

public UUIDSaveHandler()
Method Detail

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-2011 Magnolia International Ltd.. All Rights Reserved.