org.jasig.portal.layout.restrictions
Class GroupRestriction
java.lang.Object
org.jasig.portal.layout.restrictions.UserLayoutRestriction
org.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
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GroupRestriction
public GroupRestriction(java.lang.String nodePath)
throws PortalException
GroupRestriction
public GroupRestriction()
throws PortalException
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