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.w3c.dom.Node;
09: import org.jasig.portal.layout.dlm.Evaluator;
10: import org.jasig.portal.layout.dlm.EvaluatorFactory;
11: import org.jasig.portal.security.IPerson;
12:
13: /**
14: * Used to target a fragment to all users of the system including guest users.
15: *
16: * @version $Revision: 35784 $ $Date: 2005-05-12 09:01:11 -0700 (Thu, 12 May 2005) $
17: * @since uPortal 2.5
18: */
19: public class AllUsersEvaluatorFactory implements EvaluatorFactory,
20: Evaluator {
21: public static final String RCS_ID = "@(#) $Header$";
22:
23: public Evaluator getEvaluator(Node audience) {
24: return this ;
25: }
26:
27: public boolean isApplicable(IPerson p) {
28: return true;
29: }
30: }
|