uPortal 2.4.1
API Documentation

org.jasig.portal.layout.restrictions
Class BooleanRestriction

java.lang.Object
  extended byorg.jasig.portal.layout.restrictions.UserLayoutRestriction
      extended byorg.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

Field Summary
 
Fields inherited from class org.jasig.portal.layout.restrictions.UserLayoutRestriction
LOCAL_RESTRICTION
 
Constructor Summary
BooleanRestriction()
           
BooleanRestriction(java.lang.String nodePath)
           
 
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 org.jasig.portal.layout.restrictions.UserLayoutRestriction
getRestrictionExpression, getRestrictionName, getRestrictionName, getRestrictionPath, getRestrictionType, setRestrictionExpression
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BooleanRestriction

public BooleanRestriction(java.lang.String nodePath)

BooleanRestriction

public BooleanRestriction()
Method Detail

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

uPortal 2.4.1
API Documentation