uPortal 2.4.1
API Documentation

org.jasig.portal.layout.restrictions
Class GroupRestriction

java.lang.Object
  extended byorg.jasig.portal.layout.restrictions.UserLayoutRestriction
      extended byorg.jasig.portal.layout.restrictions.GroupRestriction
All Implemented Interfaces:
IUserLayoutRestriction

public class GroupRestriction
extends UserLayoutRestriction

GroupRestriction checks the group restriction for a given ALNode object.

Version:
$Revision: 1.6 $
Author:
Michael Ivanov

Field Summary
 
Fields inherited from class org.jasig.portal.layout.restrictions.UserLayoutRestriction
LOCAL_RESTRICTION
 
Constructor Summary
GroupRestriction()
           
GroupRestriction(java.lang.String nodePath)
           
 
Method Summary
 boolean checkRestriction(ALNode node)
          Checks the restriction for the current node
 boolean checkRestriction(java.lang.String propertyValue)
          Checks the restriction for the specified property value
 int getRestrictionType()
          Returns the type of the current restriction
 
Methods inherited from class org.jasig.portal.layout.restrictions.UserLayoutRestriction
getRestrictionExpression, getRestrictionName, getRestrictionName, getRestrictionPath, setRestrictionExpression
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GroupRestriction

public GroupRestriction(java.lang.String nodePath)
                 throws PortalException

GroupRestriction

public GroupRestriction()
                 throws PortalException
Method Detail

getRestrictionType

public int getRestrictionType()
Returns the type of the current restriction

Specified by:
getRestrictionType in interface IUserLayoutRestriction
Overrides:
getRestrictionType in class UserLayoutRestriction
Returns:
a restriction type respresented in the RestrictionTypes interface

checkRestriction

public boolean checkRestriction(java.lang.String propertyValue)
                         throws PortalException
Checks the restriction for the specified property value

Specified by:
checkRestriction in interface IUserLayoutRestriction
Specified by:
checkRestriction in class UserLayoutRestriction
Parameters:
propertyValue - a String property value to be checked
Throws:
PortalException

checkRestriction

public boolean checkRestriction(ALNode node)
                         throws PortalException
Checks the restriction for the current node

Specified by:
checkRestriction in interface IUserLayoutRestriction
Overrides:
checkRestriction in class UserLayoutRestriction
Parameters:
node - a ALNode node
Returns:
a boolean value
Throws:
PortalException

uPortal 2.4.1
API Documentation