*/
public boolean checkMoveRestrictions( String nodeId, String newParentId, String nextSiblingId ) throws PortalException {
ALNode node = layout.getLayoutNode(nodeId);
ALNode oldParentNode = layout.getLayoutNode(node.getParentNodeId());
ALFolder newParentNode = layout.getLayoutFolder(newParentId);
/*if ( checkRestriction(oldParentNode,RestrictionTypes.IMMUTABLE_RESTRICTION,"false") &&
checkRestriction(newParentNode,RestrictionTypes.IMMUTABLE_RESTRICTION,"false") ) {*/
if ( !oldParentNode.getNodeDescription().isImmutable() && !newParentNode.getNodeDescription().isImmutable() ) {
if ( !oldParentNode.equals(newParentNode) ) {
// Checking children related restrictions
Collection restrictions = newParentNode.getRestrictionsByPath(IUserLayoutRestriction.CHILDREN_RESTRICTION_PATH);
for ( Iterator i = restrictions.iterator(); i.hasNext(); ) {
IUserLayoutRestriction restriction = (IUserLayoutRestriction) i.next();
if ( !restriction.getName().equals(RestrictionTypes.DEPTH_RESTRICTION) &&
!restriction.checkRestriction(node) )
return false;