| java.lang.Object org.jasig.portal.layout.restrictions.alm.ALRestrictionManager
ALRestrictionManager | public class ALRestrictionManager implements IALRestrictionManager(Code) | | An implementation of Restriction Manager Interface
author: Michael Ivanov version: $Revision: 35731 $ since: uPortal 2.5 |
Method Summary | |
public boolean | checkAddRestrictions(ILayoutNode node, String parentId, String nextSiblingId) | public boolean | checkDeleteRestrictions(String nodeId) | public boolean | checkDepthRestrictions(String nodeId, String newParentId) | public boolean | checkDepthRestrictions(String nodeId, int depth) | public boolean | checkMoveRestrictions(String nodeId, String newParentId, String nextSiblingId) | public boolean | checkRestriction(String nodeId, String restrictionName, String restrictionPath, String propertyValue) | public boolean | checkRestriction(String nodeId, String restrictionName, String propertyValue) | public boolean | checkRestriction(ALNode node, String restrictionName, String restrictionPath, String propertyValue) | public boolean | checkRestriction(ALNode node, String restrictionName, String propertyValue) | public boolean | checkUpdateRestrictions(IUserLayoutNodeDescription nodeDescription) | public static PriorityRestriction | getPriorityRestriction(ALNode node) Return a priority restriction for the given node. | public static PriorityRestriction | getPriorityRestriction(ALNode node, String restrictionPath) Return a priority restriction for the given node. | public static IUserLayoutRestriction | getRestriction(ALNode node, String restrictionName, String restrictionPath) | public void | setUserLayout(IUserLayout layout) |
checkAddRestrictions | public boolean checkAddRestrictions(ILayoutNode node, String parentId, String nextSiblingId) throws PortalException(Code) | | Checks the necessary restrictions while adding a new node
Parameters: node - a ILayoutNode a new node to be added Parameters: parentId - a String parent node ID Parameters: nextSiblingId - a String next sibling node ID a boolean value exception: PortalException - if an error occurs |
checkDeleteRestrictions | public boolean checkDeleteRestrictions(String nodeId) throws PortalException(Code) | | Checks the necessary restrictions while deleting a node
Parameters: nodeId - a String node ID of a node to be deleted a boolean value exception: PortalException - if an error occurs |
checkDepthRestrictions | public boolean checkDepthRestrictions(String nodeId, String newParentId) throws PortalException(Code) | | Recursively checks the depth restrictions beginning with a given node
Parameters: nodeId - a String node ID Parameters: newParentId - a String new parent node ID a boolean value exception: PortalException - if an error occurs |
checkDepthRestrictions | public boolean checkDepthRestrictions(String nodeId, int depth) throws PortalException(Code) | | Recursively checks the depth restrictions beginning with a given node
Parameters: nodeId - a String node ID Parameters: depth - a depth on which the node is going to be attached a boolean value exception: PortalException - if an error occurs |
checkMoveRestrictions | public boolean checkMoveRestrictions(String nodeId, String newParentId, String nextSiblingId) throws PortalException(Code) | | Checks the necessary restrictions while moving a node
Parameters: nodeId - a String node ID of a node to be moved Parameters: newParentId - a String new parent node ID Parameters: nextSiblingId - a String next sibling node ID a boolean value exception: PortalException - if an error occurs |
checkRestriction | public boolean checkRestriction(String nodeId, String restrictionName, String restrictionPath, String propertyValue) throws PortalException(Code) | | Checks the restriction specified by the parameters below
Parameters: nodeId - a String node ID Parameters: restrictionName - a restriction name Parameters: restrictionPath - a String restriction path Parameters: propertyValue - a String property value to be checked a boolean value exception: PortalException - if an error occurs |
checkRestriction | public boolean checkRestriction(String nodeId, String restrictionName, String propertyValue) throws PortalException(Code) | | Checks the local restriction specified by the parameters below
Parameters: nodeId - a String node ID Parameters: restrictionName - a restriction name Parameters: propertyValue - a String property value to be checked a boolean value exception: PortalException - if an error occurs |
checkRestriction | public boolean checkRestriction(ALNode node, String restrictionName, String restrictionPath, String propertyValue) throws PortalException(Code) | | Checks the restriction specified by the parameters below
Parameters: node - a ALNode node to be checked Parameters: restrictionName - a restriction name Parameters: restrictionPath - a String restriction path Parameters: propertyValue - a String property value to be checked a boolean value exception: PortalException - if an error occurs |
checkRestriction | public boolean checkRestriction(ALNode node, String restrictionName, String propertyValue) throws PortalException(Code) | | Checks the local restriction specified by the parameters below
Parameters: node - a ALNode node to be checked Parameters: restrictionName - a restriction name Parameters: propertyValue - a String property value to be checked a boolean value exception: PortalException - if an error occurs |
getRestriction | public static IUserLayoutRestriction getRestriction(ALNode node, String restrictionName, String restrictionPath) throws PortalException(Code) | | Gets the restriction specified by the parameters below
Parameters: node - a ALNode node Parameters: restrictionName - a restriction name Parameters: restrictionPath - a String restriction path a IUserLayoutRestriction instance exception: PortalException - if an error occurs |
|
|