<commit_before>/* Copyright 2004 The JA-SIG Collaborative.  All rights reserved.
 * See license distributed with this file and
 * available online at http://www.uportal.org/license.html
 */

package org.jasig.portal.layout.al;

import org.jasig.portal.layout.al.common.node.INodeId;

/**
 * Move command representation
 * 
 * @author <NAME>: pkharchenko at unicon.net
 * @author <NAME>: mvi at immagic.com
 */
public class MoveCommand extends AbstractCommand {
	
    private INodeId parentId;
    private INodeId nextNodeId;  
    
    public MoveCommand() {};
    
    /**
     * Construct move command using all arguments
     * @param nodeId
     * @param parentId
     * @param nextNodeId
     */
    public MoveCommand(INodeId nodeId, INodeId parentId, INodeId nextNodeId) {
        super(nodeId);
        this.parentId = parentId;
        this.nextNodeId = nextNodeId;
    }
    /* (non-Javadoc)
     * @see org.jasig.portal.layout.al.ILayoutCommand#execute(org.jasig.portal.layout.al.ILayoutManager)
     */
    public boolean execute(ILayoutManager manager) {
        return manager.moveNode(getNodeId(),parentId,nextNodeId);
    }
    
    /**
     * @return Returns the nextNodeId.
     */
    public INodeId getNextNodeId() {
        return nextNodeId;
    }

    /**
     * @param nextNodeId The nextNodeId to set.
     */
    public void setNextNodeId(INodeId nextNodeId) {
        this.nextNodeId = nextNodeId;
    }<commit_msg>added portal exception declaration<commit_after>/* Copyright 2004 The JA-SIG Collaborative.  All rights reserved.
 * See license distributed with this file and
 * available online at http://www.uportal.org/license.html
 */

package org.jasig.portal.layout.al;

import org.jasig.portal.PortalException;
import org.jasig.portal.layout.al.common.ILayoutManager;
import org.jasig.portal.layout.al.common.node.INodeId;

/**
 * Move command representation
 * 
 * @author <NAME>: pkharchenko at unicon.net
 * @author <NAME>: mvi at immagic.com
 */
public class MoveCommand extends AbstractCommand {
	
    private INodeId parentId;
    private INodeId nextNodeId;  
    
    public MoveCommand() {};
    
    /**
     * Construct move command using all arguments
     * @param nodeId
     * @param parentId
     * @param nextNodeId
     */
    public MoveCommand(INodeId nodeId, INodeId parentId, INodeId nextNodeId) {
        super(nodeId);
        this.parentId = parentId;
        this.nextNodeId = nextNodeId;
    }
    /* (non-Javadoc)
     * @see org.jasig.portal.layout.al.ILayoutCommand#execute(org.jasig.portal.layout.al.ILayoutManager)
     */
    public boolean execute(ILayoutManager manager) throws PortalException {
        return manager.moveNode(getNodeId(),parentId,nextNodeId);
    }
    
    /**
     * @return Returns the nextNodeId.
     */
    public INodeId getNextNodeId() {
        return nextNodeId;
    }

    /**
     * @param nextNodeId The nextNodeId to set.
     */
    public void setNextNodeId(INodeId nextNodeId) {
        this.nextNodeId = nextNodeId;
    }
{'fraction_non_alphanumeric': 0.1014540647719762, 'fraction_numerical': 0.0026437541308658294, 'mean_word_length': 2.8171500630517023, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6074629', 'n_tokens_mistral': 947, 'n_tokens_neox': 933, 'n_words': 217}