...
Attribute | Description |
---|---|
evaluatorFactory | Required. A fully qualified name of a class that implements the IEvaluatorFactory EvaluatorFactory interface outlined below. |
The EvaluatorFactory interface is as shown below. It is passed an org.w3c.dom.Node node object representing the audience node in the dlm.xml file and can be used by the factory to configure and return an object implementing the Evaluator interface. The object returned can be contructed in some manner appropriate for any configuration information declared within the audience tag.
...
The Evaluator interface is as shown below. It is passed an IPerson object and returns true or false. This is the mechanism used to determine if a fragment is supposed to be pushed to a specific user at log-in time. Nto
All fragments in the above sample dlm.xml file use a CPPersonEvaluatorFactory, a trivial subclass of the real workhorse IPersonEvaluatorFactory. This factory defines a boolean syntax for configuration that allows evaluation of a role attribute that is multivalued and represents a user's group membership. See Sungard SCT ALM IPersonEvaluatorFactory for information on configuration syntax supported by this evaluator factory and the classes used to implement that syntax.
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
package campuspipeline.uportal.dlm; import org.jasig.portal.security.IPerson; public interface Evaluator { public boolean isApplicable( IPerson person ); } |