public function updateNodeVisibility( $nodeID, $action )
    {
        $node = eZContentObjectTreeNode::fetch( $nodeID );
        eZContentOperationCollection::registerSearchObject( $node->attribute( 'contentobject_id' ) );

        $params = array(
            'Depth' => 1,
            'DepthOperator' => 'eq',
            'Limitation' => array(),
            'IgnoreVisibility' => true
        );

        if ( $node->subTreeCount( $params ) > 0 )
        {
            $pendingAction = new eZPendingActions(
                array(
                    'action' => 'index_subtree',
                    'created' => time(),
                    'param' => $nodeID
                )
            );

            $pendingAction->store();
        }
    }