001    /**
002     * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.wiki;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.kernel.exception.PortalException;
020    
021    /**
022     * @author Brian Wing Shun Chan
023     */
024    @ProviderType
025    public class NodeChangeException extends PortalException {
026    
027            public static final int DUPLICATE_PAGE = 1;
028    
029            public static final int REDIRECT_PAGE = 2;
030    
031            public NodeChangeException(String nodeName, String pageTitle, int type) {
032                    _nodeName = nodeName;
033                    _pageTitle = pageTitle;
034                    _type = type;
035            }
036    
037            public String getNodeName() {
038                    return _nodeName;
039            }
040    
041            public String getPageTitle() {
042                    return _pageTitle;
043            }
044    
045            public int getType() {
046                    return _type;
047            }
048    
049            private final String _nodeName;
050            private final String _pageTitle;
051            private final int _type;
052    
053    }