|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jasig.portal.layout.restrictions.UserLayoutRestriction
org.jasig.portal.layout.restrictions.alm.ALRestriction
org.jasig.portal.layout.restrictions.alm.PriorityRestriction
public class PriorityRestriction
PriorityRestriction checks the priority restriction for a given ALNode object. Prior to uPortal 2.5, this class existed in the package org.jasig.portal.layout.restrictions. It was moved to its present package to reflect that it is part of Aggregated Layouts.
| Field Summary | |
|---|---|
private int |
maxPriority
|
private int |
minPriority
|
| Fields inherited from class org.jasig.portal.layout.restrictions.UserLayoutRestriction |
|---|
nodePath |
| Fields inherited from interface org.jasig.portal.layout.restrictions.IUserLayoutRestriction |
|---|
CHILDREN_RESTRICTION_PATH, LOCAL_RESTRICTION_PATH, PARENT_RESTRICTION_PATH |
| Constructor Summary | |
|---|---|
PriorityRestriction()
|
|
PriorityRestriction(java.lang.String name)
|
|
PriorityRestriction(java.lang.String name,
java.lang.String nodePath)
|
|
| Method Summary | |
|---|---|
boolean |
checkRestriction(ILayoutNode node)
Checks the restriction for the current node |
boolean |
checkRestriction(java.lang.String propertyValue)
Checks the restriction for the specified node |
int |
getMaxValue()
Returns the maximum value of the given restriction |
int |
getMinValue()
Returns the minimum value of the given restriction |
int[] |
getRange()
Returns the minimum and maximum values of the given restriction as an integer array |
protected void |
parseRestrictionExpression()
Parses the restriction expression of the current node |
void |
setRestriction(int minPriority,
int maxPriority)
|
| Methods inherited from class org.jasig.portal.layout.restrictions.alm.ALRestriction |
|---|
checkRestriction |
| Methods inherited from class org.jasig.portal.layout.restrictions.UserLayoutRestriction |
|---|
getName, getRestrictionExpression, getRestrictionPath, getUniqueKey, getUniqueKey, getUniqueKey, setName, setRestrictionExpression, setRestrictionPath |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private int minPriority
private int maxPriority
| Constructor Detail |
|---|
public PriorityRestriction(java.lang.String name,
java.lang.String nodePath)
public PriorityRestriction(java.lang.String name)
public PriorityRestriction()
| Method Detail |
|---|
public int getMaxValue()
public int getMinValue()
public int[] getRange()
protected void parseRestrictionExpression()
throws PortalException
parseRestrictionExpression in class UserLayoutRestrictionPortalException
public boolean checkRestriction(java.lang.String propertyValue)
throws PortalException
checkRestriction in interface IUserLayoutRestrictioncheckRestriction in class UserLayoutRestrictionpropertyValue - a String property value to be checked
PortalException
public boolean checkRestriction(ILayoutNode node)
throws PortalException
checkRestriction in interface IUserLayoutRestrictioncheckRestriction in class UserLayoutRestrictionnode - a ILayoutNode node
PortalException
public void setRestriction(int minPriority,
int maxPriority)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||