|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jasig.portal.layout.restrictions.alm.ALRestrictionManager
public class ALRestrictionManager
An implementation of Restriction Manager Interface
| Field Summary | |
|---|---|
private IAggregatedLayout |
layout
|
private static org.apache.commons.logging.Log |
log
|
| Constructor Summary | |
|---|---|
ALRestrictionManager()
|
|
ALRestrictionManager(IAggregatedLayout layout)
|
|
| Method Summary | |
|---|---|
boolean |
checkAddRestrictions(ILayoutNode node,
java.lang.String parentId,
java.lang.String nextSiblingId)
Checks the necessary restrictions while adding a new node |
boolean |
checkDeleteRestrictions(java.lang.String nodeId)
Checks the necessary restrictions while deleting a node |
boolean |
checkDepthRestrictions(java.lang.String nodeId,
int depth)
Recursively checks the depth restrictions beginning with a given node |
boolean |
checkDepthRestrictions(java.lang.String nodeId,
java.lang.String newParentId)
Recursively checks the depth restrictions beginning with a given node |
boolean |
checkMoveRestrictions(java.lang.String nodeId,
java.lang.String newParentId,
java.lang.String nextSiblingId)
Checks the necessary restrictions while moving a node |
boolean |
checkRestriction(ALNode node,
java.lang.String restrictionName,
java.lang.String propertyValue)
Checks the local restriction specified by the parameters below |
boolean |
checkRestriction(ALNode node,
java.lang.String restrictionName,
java.lang.String restrictionPath,
java.lang.String propertyValue)
Checks the restriction specified by the parameters below |
boolean |
checkRestriction(java.lang.String nodeId,
java.lang.String restrictionName,
java.lang.String propertyValue)
Checks the local restriction specified by the parameters below |
boolean |
checkRestriction(java.lang.String nodeId,
java.lang.String restrictionName,
java.lang.String restrictionPath,
java.lang.String propertyValue)
Checks the restriction specified by the parameters below |
boolean |
checkUpdateRestrictions(IUserLayoutNodeDescription nodeDescription)
Checks the necessary restrictions while updating a node. |
static PriorityRestriction |
getPriorityRestriction(ALNode node)
Return a priority restriction for the given node. |
static PriorityRestriction |
getPriorityRestriction(ALNode node,
java.lang.String restrictionPath)
Return a priority restriction for the given node. |
static IUserLayoutRestriction |
getRestriction(ALNode node,
java.lang.String restrictionName,
java.lang.String restrictionPath)
Gets the restriction specified by the parameters below |
void |
setUserLayout(IUserLayout layout)
Sets the user layout. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final org.apache.commons.logging.Log log
private IAggregatedLayout layout
| Constructor Detail |
|---|
public ALRestrictionManager()
throws java.lang.Exception
java.lang.Exception
public ALRestrictionManager(IAggregatedLayout layout)
throws java.lang.Exception
java.lang.Exception| Method Detail |
|---|
public void setUserLayout(IUserLayout layout)
throws PortalException
IRestrictionManager
setUserLayout in interface IRestrictionManagerlayout - a IUserLayout user layout to be checked
PortalException - if an error occurs
public boolean checkRestriction(java.lang.String nodeId,
java.lang.String restrictionName,
java.lang.String restrictionPath,
java.lang.String propertyValue)
throws PortalException
checkRestriction in interface IRestrictionManagernodeId - a String node IDrestrictionName - a restriction namerestrictionPath - a String restriction pathpropertyValue - a String property value to be checked
PortalException - if an error occurs
public boolean checkRestriction(java.lang.String nodeId,
java.lang.String restrictionName,
java.lang.String propertyValue)
throws PortalException
checkRestriction in interface IRestrictionManagernodeId - a String node IDrestrictionName - a restriction namepropertyValue - a String property value to be checked
PortalException - if an error occurs
public boolean checkRestriction(ALNode node,
java.lang.String restrictionName,
java.lang.String restrictionPath,
java.lang.String propertyValue)
throws PortalException
checkRestriction in interface IALRestrictionManagernode - a ALNode node to be checkedrestrictionName - a restriction namerestrictionPath - a String restriction pathpropertyValue - a String property value to be checked
PortalException - if an error occurs
public boolean checkRestriction(ALNode node,
java.lang.String restrictionName,
java.lang.String propertyValue)
throws PortalException
checkRestriction in interface IALRestrictionManagernode - a ALNode node to be checkedrestrictionName - a restriction namepropertyValue - a String property value to be checked
PortalException - if an error occurs
public boolean checkAddRestrictions(ILayoutNode node,
java.lang.String parentId,
java.lang.String nextSiblingId)
throws PortalException
checkAddRestrictions in interface IRestrictionManagernode - a ILayoutNode a new node to be addedparentId - a String parent node IDnextSiblingId - a String next sibling node ID
PortalException - if an error occurs
public boolean checkMoveRestrictions(java.lang.String nodeId,
java.lang.String newParentId,
java.lang.String nextSiblingId)
throws PortalException
checkMoveRestrictions in interface IRestrictionManagernodeId - a String node ID of a node to be movednewParentId - a String new parent node IDnextSiblingId - a String next sibling node ID
PortalException - if an error occurs
public boolean checkDeleteRestrictions(java.lang.String nodeId)
throws PortalException
checkDeleteRestrictions in interface IRestrictionManagernodeId - a String node ID of a node to be deleted
PortalException - if an error occurs
public boolean checkDepthRestrictions(java.lang.String nodeId,
java.lang.String newParentId)
throws PortalException
checkDepthRestrictions in interface IRestrictionManagernodeId - a String node IDnewParentId - a String new parent node ID
PortalException - if an error occurs
public boolean checkDepthRestrictions(java.lang.String nodeId,
int depth)
throws PortalException
checkDepthRestrictions in interface IRestrictionManagernodeId - a String node IDdepth - a depth on which the node is going to be attached
PortalException - if an error occurs
public static IUserLayoutRestriction getRestriction(ALNode node,
java.lang.String restrictionName,
java.lang.String restrictionPath)
throws PortalException
node - a ALNode noderestrictionName - a restriction namerestrictionPath - a String restriction path
IUserLayoutRestriction instance
PortalException - if an error occurs
public static PriorityRestriction getPriorityRestriction(ALNode node)
throws PortalException
PriorityRestriction object
PortalException - if an error occurs
public static PriorityRestriction getPriorityRestriction(ALNode node,
java.lang.String restrictionPath)
throws PortalException
PriorityRestriction object
PortalException - if an error occurs
public boolean checkUpdateRestrictions(IUserLayoutNodeDescription nodeDescription)
throws PortalException
IRestrictionManager
checkUpdateRestrictions in interface IRestrictionManagernodeDescription - a IUserLayoutNodeDescription node description of a node to be updated
PortalException - if an error occurs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||