org.jasig.portal.layout.restrictions
Class BooleanRestriction
java.lang.Object
org.jasig.portal.layout.restrictions.UserLayoutRestriction
org.jasig.portal.layout.restrictions.BooleanRestriction
- All Implemented Interfaces:
- IUserLayoutRestriction
- Direct Known Subclasses:
- HiddenRestriction, ImmutableRestriction, UnremovableRestriction
- public abstract class BooleanRestriction
- extends UserLayoutRestriction
BooleanRestriction checks the restriction on the boolean property for a given ALNode object.
Company: Instructional Media & Magic
- Version:
- $Revision: 1.8 $
- Author:
- Michael Ivanov
Method Summary |
boolean |
checkRestriction(ALNode node)
Checks the restriction for the specified node |
boolean |
checkRestriction(java.lang.String propertyValue)
Checks the restriction for the specified property |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BooleanRestriction
public BooleanRestriction(java.lang.String nodePath)
BooleanRestriction
public BooleanRestriction()
checkRestriction
public boolean checkRestriction(ALNode node)
throws PortalException
- Checks the restriction for the specified node
- Specified by:
checkRestriction
in interface IUserLayoutRestriction
- Overrides:
checkRestriction
in class UserLayoutRestriction
- Parameters:
node
- a ALNode
user layout node to be checked
- Returns:
- a boolean value
- Throws:
PortalException
checkRestriction
public boolean checkRestriction(java.lang.String propertyValue)
throws PortalException
- Checks the restriction for the specified property
- Specified by:
checkRestriction
in interface IUserLayoutRestriction
- Specified by:
checkRestriction
in class UserLayoutRestriction
- Parameters:
propertyValue
- a String
property value
- Throws:
PortalException