org.mmbase.applications.vprowizards.spring.action
Class SortRelationAction
java.lang.Object
org.mmbase.applications.vprowizards.spring.action.Action
org.mmbase.applications.vprowizards.spring.action.AbstractNodeAction
org.mmbase.applications.vprowizards.spring.action.AbstractRelationAction
org.mmbase.applications.vprowizards.spring.action.SortRelationAction
public class SortRelationAction
- extends AbstractRelationAction
FIXME: voor deze actie is het niet direct nodig om een source en destination node the hebben?
- Author:
- Ernst Bunders
| Methods inherited from class org.mmbase.applications.vprowizards.spring.action.AbstractRelationAction |
createNode, getDestinationNodeNumber, getDestinationNodeRef, getRelationValues, getRole, getSearchDir, getSourceNodeNumber, getSourceNodeRef, putValues, resolveNode, resolveSourceAndDestination, setDestinationNodeNumber, setDestinationNodeRef, setRelationValues, setRole, setSearchDir, setSourceNodeNumber, setSourceNodeRef |
| Methods inherited from class org.mmbase.applications.vprowizards.spring.action.AbstractNodeAction |
addCachFlushHint, addFieldError, addFieldError, addFieldErrorTypeMessage, addFieldErrorTypeMessage, addFieldErrorTypeValue, addGlobalError, addGlobalError, addGlobalError, addNodeParam, addParam, getDateFields, getFields, getFile, getId, getLocale, getNode, hasChanged, hasErrors, isNodeNullIllegal, mayCreate, mayDelete, mayWrite, process, setChanged, setDateFields, setFields, setFile, setHtmlField, setId, setSecurityContext, shouldProcess, toString |
DIRECTION_UP
public static final String DIRECTION_UP
- See Also:
- Constant Field Values
DIRECTION_DOWN
public static final String DIRECTION_DOWN
- See Also:
- Constant Field Values
log
public static final Logger log
SortRelationAction
public SortRelationAction()
createCacheFlushHints
protected void createCacheFlushHints()
- Description copied from class:
AbstractNodeAction
- This template method is called when the node to edit is changed. custom cachflush hints can be set here. This
class dous not know if the current node is updated or created, so it dousn't know what kind of events to create.
- Specified by:
createCacheFlushHints in class AbstractNodeAction
createRelation
protected Node createRelation(Transaction transaction,
Map<String,Node> idMap,
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.
- Specified by:
createRelation in class AbstractRelationAction
- Returns:
processNode
protected void processNode(Transaction transaction)
- Here we do the actual sorting.
- Overrides:
processNode in class AbstractNodeAction
getDirection
public String getDirection()
setDirection
public void setDirection(String direction)
getSortField
public String getSortField()
setSortField
public void setSortField(String sortField)
MMBase 2.0-SNAPSHOT - null