info.magnolia.module.admininterface
Interface SaveHandler

All Known Subinterfaces:
DialogAwareSaveHandler, ValidatingSaveHandler
All Known Implementing Classes:
MultiValueSaveHandler, SaveHandlerImpl, UUIDSaveHandler

public interface SaveHandler

This class handles the saving in the dialogs.

Version:
$Revision$ ($Author$)
Author:
Philipp Bracher

Method Summary
 ItemType getCollectionNodeCreationItemType()
           
 ItemType getCreationItemType()
          Defines the node type to create if isCreate is true
 String getNodeCollectionName()
           
 String getNodeName()
           
 String getParagraph()
           
 String getPath()
           
 String getRepository()
          get the name of thre repository saving to
 void init(MultipartForm form)
          Initialize this SaveHandler
 boolean isCreate()
          True if a not existing path should get created during the save process
 boolean save()
          Save the data passed by init.
 void setCollectionNodeCreationItemType(ItemType collectionNodeCreationItemType)
           
 void setCreate(boolean create)
          Set true if a not existing node should get created during the save process
 void setCreationItemType(ItemType creationItemType)
          Defines the node type to create if isCreate is true
 void setNodeCollectionName(String nodeCollectionName)
           
 void setNodeName(String nodeName)
           
 void setParagraph(String paragraph)
           
 void setPath(String path)
           
 void setRepository(String repository)
          set the name of the repository saving to
 

Method Detail

init

void init(MultipartForm form)
Initialize this SaveHandler


save

boolean save()
Save the data passed by init. Returns true if the save method succeeded


isCreate

boolean isCreate()
True if a not existing path should get created during the save process

Returns:
boolean

setCreate

void setCreate(boolean create)
Set true if a not existing node should get created during the save process

Parameters:
create -

getCreationItemType

ItemType getCreationItemType()
Defines the node type to create if isCreate is true

Returns:
the ItemType

setCreationItemType

void setCreationItemType(ItemType creationItemType)
Defines the node type to create if isCreate is true

Parameters:
creationItemType -

getCollectionNodeCreationItemType

ItemType getCollectionNodeCreationItemType()

setCollectionNodeCreationItemType

void setCollectionNodeCreationItemType(ItemType collectionNodeCreationItemType)

getNodeCollectionName

String getNodeCollectionName()
Returns:
Returns the nodeCollectionName.

setNodeCollectionName

void setNodeCollectionName(String nodeCollectionName)
Parameters:
nodeCollectionName - The nodeCollectionName to set.

getNodeName

String getNodeName()
Returns:
Returns the nodeName.

setNodeName

void setNodeName(String nodeName)
Parameters:
nodeName - The nodeName to set.

getParagraph

String getParagraph()
Returns:
Returns the paragraph.

setParagraph

void setParagraph(String paragraph)
Parameters:
paragraph - The paragraph to set.

getPath

String getPath()
Returns:
Returns the path.

setPath

void setPath(String path)
Parameters:
path - The path to set.

setRepository

void setRepository(String repository)
set the name of the repository saving to

Parameters:
repository - the name of the repository

getRepository

String getRepository()
get the name of thre repository saving to

Returns:
name


Copyright © 2003–2014 Magnolia International Ltd.. All rights reserved.