org.jasig.portal.layout.dlm.providers
Class PersonEvaluatorFactory

java.lang.Object
  extended by org.jasig.portal.layout.dlm.providers.PersonEvaluatorFactory
All Implemented Interfaces:
EvaluatorFactory
Direct Known Subclasses:
GroupMembershipEvaluatorFactory

public class PersonEvaluatorFactory
extends Object
implements EvaluatorFactory

Implementation of the Evaluator Factory interface that creates evaluators of string attributes in implementations of IPerson to determine if a user gets a layout fragment.

Since:
uPortal 2.5
Version:
$Revision: 19776 $ $Date: 2010-01-14 16:17:21 -0600 (Thu, 14 Jan 2010) $
Author:
mboyd@sungardsct.com

Field Summary
static String RCS_ID
           
 
Constructor Summary
PersonEvaluatorFactory()
           
 
Method Summary
 Evaluator getAttributeEvaluator(String name, String mode, String value)
          returns an Evaluator unique to the type of attribute being evaluated.
 Evaluator getEvaluator(Node audience)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RCS_ID

public static final String RCS_ID
See Also:
Constant Field Values
Constructor Detail

PersonEvaluatorFactory

public PersonEvaluatorFactory()
Method Detail

getEvaluator

public Evaluator getEvaluator(Node audience)
Specified by:
getEvaluator in interface EvaluatorFactory

getAttributeEvaluator

public Evaluator getAttributeEvaluator(String name,
                                       String mode,
                                       String value)
                                throws Exception
returns an Evaluator unique to the type of attribute being evaluated. subclasses can override this method to return the Evaluator that's appropriate to their implementation.

Parameters:
name - the attribute's name.
mode - the attribute's mode. (i.e. 'equals')
value - the attribute's value.
Returns:
an Evaluator for evaluating attributes
Throws:
Exception


Copyright © 2010 Jasig. All Rights Reserved.