info.magnolia.ui.admincentral.dialog.action
Class SaveDialogAction

java.lang.Object
  extended by info.magnolia.ui.api.action.AbstractAction<SaveDialogActionDefinition>
      extended by info.magnolia.ui.admincentral.dialog.action.SaveDialogAction
All Implemented Interfaces:
Action
Direct Known Subclasses:
RenameUsersFolderAction, SaveGroupDialogAction, SaveRoleDialogAction, SaveUserDialogAction

public class SaveDialogAction
extends AbstractAction<SaveDialogActionDefinition>

Saves a dialog.

See Also:
SaveDialogActionDefinition

Field Summary
protected  EditorCallback callback
           
protected  com.vaadin.data.Item item
           
protected  EditorValidator validator
           
 
Constructor Summary
SaveDialogAction(SaveDialogActionDefinition definition, com.vaadin.data.Item item, EditorValidator validator, EditorCallback callback)
           
 
Method Summary
 void execute()
          Executes the action.
protected  void updateLastModified(javax.jcr.Node currentNode)
          Recursively update LastModified for the node until the parent node is of type mgnl:content or depth=1.
 
Methods inherited from class info.magnolia.ui.api.action.AbstractAction
getDefinition
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

item

protected final com.vaadin.data.Item item

validator

protected final EditorValidator validator

callback

protected final EditorCallback callback
Constructor Detail

SaveDialogAction

public SaveDialogAction(SaveDialogActionDefinition definition,
                        com.vaadin.data.Item item,
                        EditorValidator validator,
                        EditorCallback callback)
Method Detail

execute

public void execute()
             throws ActionExecutionException
Description copied from interface: Action
Executes the action.

Throws:
ActionExecutionException - if an error occurs performing the action

updateLastModified

protected void updateLastModified(javax.jcr.Node currentNode)
                           throws javax.jcr.RepositoryException
Recursively update LastModified for the node until the parent node is of type mgnl:content or depth=1. If it's not the 'website' workspace, do not perform recursion.

Throws:
javax.jcr.RepositoryException


Copyright © 2013 Magnolia International Ltd.. All Rights Reserved.