public class CreateRelationAction extends AbstractRelationAction
ResultContainer.| Modifier and Type | Field and Description |
|---|---|
static String |
SORT_POSITION_BEGIN |
static String |
SORT_POSITION_END |
destinationNode, destinationNodeNumber, destinationNodeRef, relationManager, relationValues, role, sourceNode, sourceNodeNumber, sourceNodeRef| Constructor and Description |
|---|
CreateRelationAction() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
createCacheFlushHints()
This template method is called when the node to edit is changed.
|
protected Node |
createRelation(Transaction transaction,
Map<String,Node> idMap,
javax.servlet.http.HttpServletRequest request)
This template method should be implemented by concrete implementations of
this class.
|
String |
getSortField() |
String |
getSortPosition() |
protected void |
processNode(Transaction transaction)
When sortField is set, and it is a valid field, the sort position is calculated and set on the new relation.
|
protected Integer |
resolvePosition(Transaction transaction)
Derive the position field value, if sortField is set.
|
void |
setSortField(String sortField) |
void |
setSortPosition(String sortPosition) |
createNode, getDestinationNodeNumber, getDestinationNodeRef, getRelationValues, getRole, getSourceNodeNumber, getSourceNodeRef, putValues, resolveNode, resolveSourceAndDestination, setDestinationNodeNumber, setDestinationNodeRef, setRelationValues, setRole, setSourceNodeNumber, setSourceNodeRefaddCachFlushHint, addFieldError, addFieldError, addFieldErrorTypeMessage, addFieldErrorTypeValue, addGlobalError, addGlobalError, addNodeParam, addParam, getDateFields, getFields, getFile, getId, getLocale, getNode, hasChanged, hasErrors, isNodeNullIllegal, mayCreate, mayDelete, mayWrite, process, setChanged, setDateFields, setFields, setFile, setHtmlField, setId, shouldProcess, toStringpublic static final String SORT_POSITION_BEGIN
public static final String SORT_POSITION_END
protected void createCacheFlushHints()
AbstractNodeActioncreateCacheFlushHints in class AbstractNodeActionprotected Node createRelation(Transaction transaction, Map<String,Node> idMap, javax.servlet.http.HttpServletRequest request)
AbstractRelationActionAbstractRelationAction.createNode(Transaction, Map, HttpServletRequest) after all
the preliminary checks.createRelation in class AbstractRelationActionprotected void processNode(Transaction transaction)
processNode in class AbstractNodeActionAbstractNodeAction.processNode(org.mmbase.bridge.Transaction)protected final Integer resolvePosition(Transaction transaction)
transaction - public String getSortPosition()
public void setSortPosition(String sortPosition)
public String getSortField()
public void setSortField(String sortField)
MMBase 1.9-SNAPSHOT - ${javadoctimestamp}