info.magnolia.module.admininterface
Class MultiValueSaveHandler

java.lang.Object
  extended by info.magnolia.module.admininterface.SaveHandlerImpl
      extended by info.magnolia.module.admininterface.MultiValueSaveHandler
All Implemented Interfaces:
FieldSaveHandler, SaveHandler

public class MultiValueSaveHandler
extends SaveHandlerImpl
implements FieldSaveHandler

Stores NodeData as jcr multi-value property can be used together with DialogMultiSelect.

Version:
$Id$

Field Summary
 
Fields inherited from class info.magnolia.module.admininterface.SaveHandlerImpl
log
 
Constructor Summary
MultiValueSaveHandler()
           
 
Method Summary
protected  void processMultiple(Content node, String name, int type, String[] values)
          Process a multiple value field
 void save(Content parentNode, Content configNode, String name, MultipartForm form, int type, int valueType, int isRichEditValue, int encoding)
          save a property
 
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, processString, 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
 

Constructor Detail

MultiValueSaveHandler

public MultiValueSaveHandler()
Method Detail

processMultiple

protected void processMultiple(Content node,
                               String name,
                               int type,
                               String[] values)
                        throws javax.jcr.RepositoryException,
                               javax.jcr.PathNotFoundException,
                               AccessDeniedException
Description copied from class: SaveHandlerImpl
Process a multiple value field

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

save

public void save(Content parentNode,
                 Content configNode,
                 String name,
                 MultipartForm form,
                 int type,
                 int valueType,
                 int isRichEditValue,
                 int encoding)
          throws javax.jcr.RepositoryException,
                 AccessDeniedException
Description copied from interface: FieldSaveHandler
save a property

Specified by:
save in interface FieldSaveHandler
Parameters:
parentNode - in node
configNode - configuration
name - property name
form - form
type - type
valueType - value type
isRichEditValue - is rich edit?
encoding - encoding
Throws:
javax.jcr.RepositoryException
AccessDeniedException


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