public class SortRelationAction extends AbstractRelationAction
| Modifier and Type | Field and Description |
|---|---|
static String |
DIRECTION_DOWN |
static String |
DIRECTION_UP |
static Logger |
log |
destinationNode, destinationNodeNumber, destinationNodeRef, relationManager, relationValues, role, sourceNode, sourceNodeNumber, sourceNodeRef| Constructor and Description |
|---|
SortRelationAction() |
| 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)
Try to find the relation node that is of type given by the role field,
and exists between the source and destination node.
|
String |
getDirection() |
String |
getSortField() |
protected void |
processNode(Transaction transaction)
Here we do the actual sorting.
|
void |
setDirection(String direction) |
void |
setSortField(String sortField) |
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 DIRECTION_UP
public static final String DIRECTION_DOWN
public static final Logger log
protected void createCacheFlushHints()
AbstractNodeActioncreateCacheFlushHints in class AbstractNodeActionprotected Node createRelation(Transaction transaction, Map<String,Node> idMap, javax.servlet.http.HttpServletRequest request)
createRelation in class AbstractRelationActionprotected void processNode(Transaction transaction)
processNode in class AbstractNodeActionpublic String getDirection()
public void setDirection(String direction)
public String getSortField()
public void setSortField(String sortField)
MMBase 1.9-SNAPSHOT - ${javadoctimestamp}