D
- The ActionDefinition
used by the action.public abstract class AbstractRepositoryAction<D extends ActionDefinition> extends AbstractAction<D>
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_NEW_ITEM_NAME |
protected JcrItemAdapter |
item |
Modifier | Constructor and Description |
---|---|
protected |
AbstractRepositoryAction(D definition,
JcrItemAdapter item,
info.magnolia.event.EventBus eventBus) |
Modifier and Type | Method and Description |
---|---|
void |
execute()
Executes the defined action on the passed in item.
|
protected String |
getUniqueNewItemName(javax.jcr.Node parent) |
protected String |
getUniqueNewItemName(javax.jcr.Node parent,
String name) |
protected abstract void |
onExecute(JcrItemAdapter item) |
protected void |
setItemContentChanged(boolean itemContentChanged) |
protected void |
setItemIdOfChangedItem(JcrItemId itemIdOfChangedItem) |
getDefinition
public static final String DEFAULT_NEW_ITEM_NAME
protected final JcrItemAdapter item
protected AbstractRepositoryAction(D definition, JcrItemAdapter item, info.magnolia.event.EventBus eventBus)
protected void setItemIdOfChangedItem(JcrItemId itemIdOfChangedItem)
protected void setItemContentChanged(boolean itemContentChanged)
public void execute() throws ActionExecutionException
ContentChangedEvent
.ActionExecutionException
- if an error occurs performing the actionprotected abstract void onExecute(JcrItemAdapter item) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
protected String getUniqueNewItemName(javax.jcr.Node parent) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
Copyright © 2017 Magnolia International Ltd.. All rights reserved.