001/**
002 * Copyright 2010-2014 The Kuali Foundation
003 *
004 * Licensed under the Educational Community License, Version 2.0 (the "License");
005 * you may not use this file except in compliance with the License.
006 * You may obtain a copy of the License at
007 *
008 * http://www.opensource.org/licenses/ecl2.php
009 *
010 * Unless required by applicable law or agreed to in writing, software
011 * distributed under the License is distributed on an "AS IS" BASIS,
012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013 * See the License for the specific language governing permissions and
014 * limitations under the License.
015 */
016package org.kuali.common.util.execute;
017
018import java.io.File;
019
020public class CopyFileResult {
021
022        public static final boolean DEFAULT_OVERWRITTEN_VALUE = false;
023        public static final long DEFAULT_ELAPSED_VALUE = -1;
024
025        long elapsed = DEFAULT_ELAPSED_VALUE;
026        boolean overwritten = DEFAULT_OVERWRITTEN_VALUE;
027        File source;
028        File destination;
029
030        public CopyFileResult() {
031                this(null, null, DEFAULT_OVERWRITTEN_VALUE);
032        }
033
034        public CopyFileResult(File source, File destination, boolean overwritten) {
035                this(source, destination, overwritten, DEFAULT_ELAPSED_VALUE);
036        }
037
038        public CopyFileResult(File source, File destination, boolean overwritten, long elapsed) {
039                super();
040                this.source = source;
041                this.destination = destination;
042                this.overwritten = overwritten;
043                this.elapsed = elapsed;
044        }
045
046        public File getDestination() {
047                return destination;
048        }
049
050        public void setDestination(File destination) {
051                this.destination = destination;
052        }
053
054        public boolean isOverwritten() {
055                return overwritten;
056        }
057
058        public void setOverwritten(boolean overwritten) {
059                this.overwritten = overwritten;
060        }
061
062        public long getElapsed() {
063                return elapsed;
064        }
065
066        public void setElapsed(long elapsed) {
067                this.elapsed = elapsed;
068        }
069
070        public File getSource() {
071                return source;
072        }
073
074        public void setSource(File source) {
075                this.source = source;
076        }
077
078}