| java.lang.Object uk.org.ponder.rsf.state.guards.BeanGuard
BeanGuard | public class BeanGuard (Code) | | "Guards" the read or write access of a particular EL path, by allowing logic
supplied in a second bean to execute relative to the access - either before (PRE),
after (POST) or "around" (AROUND) it.
Note that the scheduling of "POST" guards may be delayed until some later time
in request processing - do not rely on these for "synchronous" guarding,
although their execution *is* guaranteed.
NB - only POST/WRITE guards are currently supported.
author: Antranig Basman (antranig@caret.cam.ac.uk) |
setGuardEL | public void setGuardEL(String guardEL)(Code) | | An EL expression from which the base guard can be determined *
|
setGuardMethod | public void setGuardMethod(String guardMethod)(Code) | | A method to be invoked on a POJO-style validating bean.
If "guardEL" or "guard" is not null,
guardMethod consists of just the method name.
If both guardEL and guard are null, this should be a "long path" of which
the section to the last component is an EL representing guardEL.
If this value and guardProperty is null, assumed to be a
non-POJO validator (e.g. Spring Validator).
|
setGuardMode | public void setGuardMode(String mode)(Code) | | Sets the guard mode - either READ or WRITE *
|
setGuardProperty | public void setGuardProperty(String guardProperty)(Code) | | A property name on which the guarded object will be set onto the
guard. If both guardEL and guard are null, this should be a "long path"
of which the section to the last component is a EL representing guard EL.
|
setGuardTiming | public void setGuardTiming(String timing)(Code) | | Sets the guard timing - either PRE, POST or AROUND.
WRITE guards default to POST, READ guards default to PRE.
A guard object of type RunnableInvoker will force mode to AROUND.
|
setGuardedPath | public void setGuardedPath(String guardedpath)(Code) | | |
|
|