|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mmbase.applications.vprowizards.spring.action.Action
org.mmbase.applications.vprowizards.spring.action.AbstractNodeAction
org.mmbase.applications.vprowizards.spring.action.AbstractRelationAction
public abstract class AbstractRelationAction
| Field Summary | |
|---|---|
protected Node |
destinationNode
|
protected String |
destinationNodeNumber
|
protected String |
destinationNodeRef
|
protected RelationManager |
relationManager
|
protected String |
relationValues
|
protected String |
role
|
protected String |
searchDir
|
protected Node |
sourceNode
|
protected String |
sourceNodeNumber
|
protected String |
sourceNodeRef
|
| Fields inherited from class org.mmbase.applications.vprowizards.spring.action.AbstractNodeAction |
|---|
securityContext |
| Constructor Summary | |
|---|---|
AbstractRelationAction()
|
|
| Method Summary | |
|---|---|
protected Node |
createNode(Transaction transaction,
Map<String,Node> idMap,
HttpServletRequest request)
This template method implementation handles all the preconditions for relation actions. |
protected abstract Node |
createRelation(Transaction transaction,
Map<String,Node> idMap,
HttpServletRequest request)
This template method should be implemented by concrete implementations of this class. |
String |
getDestinationNodeNumber()
|
String |
getDestinationNodeRef()
|
protected Map<String,Object> |
getRelationValues()
TODO. |
String |
getRole()
|
String |
getSearchDir()
|
String |
getSourceNodeNumber()
|
String |
getSourceNodeRef()
|
protected void |
putValues(Step relationStep,
Constraint constraint,
Map<String,Object> values)
|
protected Node |
resolveNode(String refNotFoundErrorKey,
String nodeRef,
String nodenr,
Map<String,Node> idMap,
Transaction transaction)
Try to resolve a node, by trying either the nodenr or node ref. |
protected boolean |
resolveSourceAndDestination(Transaction transaction,
Map<String,Node> idMap)
(try to) resolve the source and destination nodes for this relation. |
void |
setDestinationNodeNumber(String destinationNodeNumber)
|
void |
setDestinationNodeRef(String destinationNodeRef)
|
void |
setRelationValues(String s)
Sets the values which must be set in the relation. |
void |
setRole(String role)
|
void |
setSearchDir(String sd)
|
void |
setSourceNodeNumber(String sourceNodeNumber)
|
void |
setSourceNodeRef(String sourceNodeRef)
|
| Methods inherited from class org.mmbase.applications.vprowizards.spring.action.AbstractNodeAction |
|---|
addCachFlushHint, addFieldError, addFieldError, addFieldErrorTypeMessage, addFieldErrorTypeMessage, addFieldErrorTypeValue, addGlobalError, addGlobalError, addGlobalError, addNodeParam, addParam, createCacheFlushHints, getDateFields, getFields, getFile, getId, getLocale, getNode, hasChanged, hasErrors, isNodeNullIllegal, mayCreate, mayDelete, mayWrite, process, processNode, setChanged, setDateFields, setFields, setFile, setHtmlField, setId, setSecurityContext, shouldProcess, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected Node sourceNode
protected Node destinationNode
protected String sourceNodeNumber
protected String destinationNodeNumber
protected String sourceNodeRef
protected String destinationNodeRef
protected String role
protected RelationManager relationManager
protected String relationValues
protected String searchDir
| Constructor Detail |
|---|
public AbstractRelationAction()
| Method Detail |
|---|
protected final Node createNode(Transaction transaction,
Map<String,Node> idMap,
HttpServletRequest request)
this#doCreateNode(Transaction, Map, HttpServletRequest)
When you create specific relation actions, you extend this class and implement that method.
createNode in class AbstractNodeActiontransaction - the mmmbase transaction
protected abstract Node createRelation(Transaction transaction,
Map<String,Node> idMap,
HttpServletRequest request)
createNode(Transaction, Map, HttpServletRequest) after all
the preliminary checks.
transaction - idMap - request -
protected final Node resolveNode(String refNotFoundErrorKey,
String nodeRef,
String nodenr,
Map<String,Node> idMap,
Transaction transaction)
refNotFoundErrorKey - nodeRef - nodenr - idMap - transaction -
protected final boolean resolveSourceAndDestination(Transaction transaction,
Map<String,Node> idMap)
public void setSourceNodeNumber(String sourceNodeNumber)
public String getDestinationNodeNumber()
public void setDestinationNodeNumber(String destinationNodeNumber)
public String getSourceNodeRef()
public void setSourceNodeRef(String sourceNodeRef)
public String getDestinationNodeRef()
public void setDestinationNodeRef(String destinationNodeRef)
public String getSourceNodeNumber()
public String getRole()
public void setRole(String role)
public String getSearchDir()
public void setSearchDir(String sd)
public void setRelationValues(String s)
protected void putValues(Step relationStep,
Constraint constraint,
Map<String,Object> values)
protected Map<String,Object> getRelationValues()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||