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 41137 2011-01-06 18:19:25Z gjoseph $
Author:
Philipp Bracher

Field Summary
 
Fields inherited from class info.magnolia.module.admininterface.SaveHandlerImpl
log
 
Constructor Summary
UUIDSaveHandler()
           
 
Method Summary
protected  DialogControlImpl getControl(String name)
          Get the contorl which is processed now
 Dialog getDialog()
           
protected  void processMultiple(Content node, String name, int type, String[] values)
          Process a multiple value
protected  void processString(Content node, String name, int type, int encoding, String[] values, String valueStr)
          Process a singel value
 void setDialog(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
 

Constructor Detail

UUIDSaveHandler

public UUIDSaveHandler()
Method Detail

getDialog

public Dialog getDialog()
Specified by:
getDialog in interface DialogAwareSaveHandler

setDialog

public void setDialog(Dialog dialog)
Specified by:
setDialog in interface DialogAwareSaveHandler

processString

protected void processString(Content node,
                             String name,
                             int type,
                             int encoding,
                             String[] values,
                             String valueStr)
                      throws javax.jcr.PathNotFoundException,
                             javax.jcr.RepositoryException,
                             AccessDeniedException
Process a singel value

Overrides:
processString in class SaveHandlerImpl
Throws:
javax.jcr.PathNotFoundException
javax.jcr.RepositoryException
AccessDeniedException

processMultiple

protected void processMultiple(Content node,
                               String name,
                               int type,
                               String[] values)
                        throws javax.jcr.RepositoryException,
                               javax.jcr.PathNotFoundException,
                               AccessDeniedException
Process a multiple value

Overrides:
processMultiple in class SaveHandlerImpl
Throws:
javax.jcr.RepositoryException
javax.jcr.PathNotFoundException
AccessDeniedException

getControl

protected DialogControlImpl getControl(String name)
Get the contorl which is processed now

Parameters:
name -
Returns:
the control or null if not found


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