01: /* Copyright 2005 The JA-SIG Collaborative. All rights reserved.
02: * See license distributed with this file and
03: * available online at http://www.uportal.org/license.html
04: */
05:
06: package org.jasig.portal.layout.dlm.providers;
07:
08: import org.jasig.portal.layout.dlm.Evaluator;
09: import org.jasig.portal.layout.dlm.EvaluatorFactory;
10: import org.jasig.portal.security.IPerson;
11: import org.w3c.dom.Node;
12:
13: /**
14: * Used to target a fragment only to guest users.
15: *
16: * @author mboyd@sungardsct.com
17: * @version $Revision: 35847 $ $Date: 2005-05-20 23:29:17 -0700 (Fri, 20 May 2005) $
18: * @since uPortal 2.5
19: */
20: public class GuestUserEvaluatorFactory implements EvaluatorFactory,
21: Evaluator {
22: public static final String RCS_ID = "@(#) $Header$";
23:
24: public Evaluator getEvaluator(Node audience) {
25: return this ;
26: }
27:
28: public boolean isApplicable(IPerson p) {
29: return p.isGuest();
30: }
31: }
|