01: /* Copyright 2002 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.restrictions.alm;
07:
08: import org.jasig.portal.layout.node.ILayoutNode;
09: import org.jasig.portal.layout.node.IUserLayoutNodeDescription;
10:
11: /**
12: * HiddenRestriction checks the restriction on the "hidden" property for a given ALNode object.
13: *
14: * Prior to uPortal 2.5, this class existed in the package org.jasig.portal.layout.restrictions.
15: * It was moved to its present package to reflect that it is part of Aggregated Layouts.
16: *
17: * @author <a href="mailto:mvi@immagic.com">Michael Ivanov</a>
18: * @version $Revision: 35731 $
19: */
20: public class HiddenRestriction extends BooleanRestriction {
21:
22: public HiddenRestriction(String name, String nodePath) {
23: super (name, nodePath);
24: }
25:
26: public HiddenRestriction(String name) {
27: super (name);
28: }
29:
30: public HiddenRestriction() {
31: super ();
32: }
33:
34: /**
35: * Gets the boolean property value for the specified node
36: */
37: protected boolean getBooleanPropertyValue(ILayoutNode node) {
38: IUserLayoutNodeDescription nodeDesc = node.getNodeDescription();
39: return nodeDesc.isHidden();
40: }
41:
42: }
|