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