001    /**
002     * Copyright (c) 2000-2013 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.trash;
016    
017    import com.liferay.portal.kernel.exception.PortalException;
018    
019    /**
020     * @author Brian Wing Shun Chan
021     */
022    public class DuplicateEntryException extends PortalException {
023    
024            public DuplicateEntryException() {
025                    super();
026            }
027    
028            public DuplicateEntryException(String msg) {
029                    super(msg);
030            }
031    
032            public DuplicateEntryException(String msg, Throwable cause) {
033                    super(msg, cause);
034            }
035    
036            public DuplicateEntryException(Throwable cause) {
037                    super(cause);
038            }
039    
040            public long getDuplicateEntryId() {
041                    return _duplicateEntryId;
042            }
043    
044            public String getOldName() {
045                    return _oldName;
046            }
047    
048            public long getTrashEntryId() {
049                    return _trashEntryId;
050            }
051    
052            public void setDuplicateEntryId(long duplicateEntryId) {
053                    _duplicateEntryId = duplicateEntryId;
054            }
055    
056            public void setOldName(String oldName) {
057                    _oldName = oldName;
058            }
059    
060            public void setTrashEntryId(long trashEntryId) {
061                    _trashEntryId = trashEntryId;
062            }
063    
064            private long _duplicateEntryId;
065            private String _oldName;
066            private long _trashEntryId;
067    
068    }