org.sourcejammer.client.gui.process
Class AddFileProcess

java.lang.Object
  |
  +--org.sourcejammer.client.gui.process.AbstractProcess
        |
        +--org.sourcejammer.client.gui.process.AddFileProcess
All Implemented Interfaces:
SJProcess

public class AddFileProcess
extends AbstractProcess

Title: $FileName: AddFileProcess.java$

Version:
$VerNum: 7$
Author:
$AuthorName: Rob MacGrogan$

$Description: $ $KeyWordsOff: $


Field Summary
private static int DONT_SKIP
           
static long MAX_FILE_SIZE_FOR_DIFF
           
private  boolean mbSkipAll
           
private  boolean mbSkipNone
           
private static int SKIP_ALL
           
private static int SKIP_FILE
           
private static int SKIP_NONE
           
 
Fields inherited from class org.sourcejammer.client.gui.process.AbstractProcess
 
Constructor Summary
AddFileProcess()
           
 
Method Summary
private  void addAllContents(long parentID, java.io.File fl, int fileType, int historyType, java.lang.String description, boolean isOverride, java.lang.String afterAddAction, org.sourcejammer.project.view.SJRequest request)
           
private  void addDirectoryContents(long parentID, java.io.File dir, int fileType, int historyType, java.lang.String description, boolean isOverride, java.lang.String afterAddAction, org.sourcejammer.project.view.SJRequest request)
           
private  void addFile(long lParentProjectID, java.lang.String sFileName, java.lang.String filePath, int fileType, int historyType, java.lang.String description, boolean overrideHistoryType, java.lang.String afterAddFileAction, org.sourcejammer.project.view.SJRequest request)
           
private  java.lang.String extractFileName(java.lang.String fileName)
           
private  java.util.Iterator getNewFiles(java.io.File dir, org.sourcejammer.project.view.Project proj)
           
private  boolean isTypeAcceptable(java.lang.String filePath, int historyType)
           
static void main(java.lang.String[] args)
           
 void process(java.lang.Object info)
           
 
Methods inherited from class org.sourcejammer.client.gui.process.AbstractProcess
fireProcess, increment, increment
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAX_FILE_SIZE_FOR_DIFF

public static final long MAX_FILE_SIZE_FOR_DIFF
See Also:
Constant Field Values

SKIP_FILE

private static final int SKIP_FILE
See Also:
Constant Field Values

SKIP_ALL

private static final int SKIP_ALL
See Also:
Constant Field Values

DONT_SKIP

private static final int DONT_SKIP
See Also:
Constant Field Values

SKIP_NONE

private static final int SKIP_NONE
See Also:
Constant Field Values

mbSkipAll

private boolean mbSkipAll

mbSkipNone

private boolean mbSkipNone
Constructor Detail

AddFileProcess

public AddFileProcess()
Method Detail

process

public void process(java.lang.Object info)
Specified by:
process in class AbstractProcess

addDirectoryContents

private void addDirectoryContents(long parentID,
                                  java.io.File dir,
                                  int fileType,
                                  int historyType,
                                  java.lang.String description,
                                  boolean isOverride,
                                  java.lang.String afterAddAction,
                                  org.sourcejammer.project.view.SJRequest request)
                           throws java.io.IOException,
                                  GUICommandException,
                                  org.sourcejammer.util.SourceJammerConnectionException
java.io.IOException
GUICommandException
org.sourcejammer.util.SourceJammerConnectionException

addAllContents

private void addAllContents(long parentID,
                            java.io.File fl,
                            int fileType,
                            int historyType,
                            java.lang.String description,
                            boolean isOverride,
                            java.lang.String afterAddAction,
                            org.sourcejammer.project.view.SJRequest request)
                     throws java.io.IOException,
                            GUICommandException,
                            org.sourcejammer.util.SourceJammerConnectionException
java.io.IOException
GUICommandException
org.sourcejammer.util.SourceJammerConnectionException

getNewFiles

private java.util.Iterator getNewFiles(java.io.File dir,
                                       org.sourcejammer.project.view.Project proj)

extractFileName

private java.lang.String extractFileName(java.lang.String fileName)

addFile

private void addFile(long lParentProjectID,
                     java.lang.String sFileName,
                     java.lang.String filePath,
                     int fileType,
                     int historyType,
                     java.lang.String description,
                     boolean overrideHistoryType,
                     java.lang.String afterAddFileAction,
                     org.sourcejammer.project.view.SJRequest request)
              throws java.io.IOException,
                     org.sourcejammer.util.SourceJammerConnectionException,
                     GUICommandException
java.io.IOException
org.sourcejammer.util.SourceJammerConnectionException
GUICommandException

isTypeAcceptable

private boolean isTypeAcceptable(java.lang.String filePath,
                                 int historyType)

main

public static void main(java.lang.String[] args)


Copyright 2003 Soucejammer project.