|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.studio.svnimport.components.SvnDumpFileManager
public class SvnDumpFileManager
User: kalamon Date: 2010-11-10 Time: 14:16:20
| Nested Class Summary | |
|---|---|
static class |
SvnDumpFileManager.ArgumentException
|
static class |
SvnDumpFileManager.UndumpException
|
static class |
SvnDumpFileManager.UndumpingStatus
|
| Field Summary | |
|---|---|
static String |
DUMP_FILES_WEBDAV_SUBDIRECTORY
|
static int |
REQUIRED_PERMISSION
|
static String |
STAGING_DIRECTORY_KEY
|
static String |
STAGING_SVN_REPO_NAME
|
static String |
STUDIO_SVN_IMPORT_REPO_OWNER_NAME_KEY
|
static String |
STUDIO_SVN_IMPORT_USE_SUDO_KEY
|
static String |
WEBDAV_DIRECTORY_KEY
|
| Constructor Summary | |
|---|---|
SvnDumpFileManager(com.atlassian.studio.host.common.ThemeProperties themeProperties,
ProjectManager projectManager,
com.atlassian.sal.api.user.UserManager userManager,
com.atlassian.sal.api.message.I18nResolver i18n,
com.atlassian.studio.host.common.initialdata.InitialDataService initialDataService,
com.atlassian.applinks.core.AppLinksManager appLinksManager,
com.atlassian.sal.api.net.RequestFactory<?> requestFactory)
|
|
| Method Summary | |
|---|---|
void |
abortUndumping()
|
void |
deleteDumpFile(String fileName)
|
Collection<File> |
getAvailableDumpFiles()
|
ExternalCommands.Builder |
getCommandsBuilder()
|
int |
getCurrentRev()
|
String |
getCurrentUndumpedFile()
|
String |
getLastMessage()
|
String |
getLastUndumpedFileName()
|
String |
getLastWarningMessage()
|
int |
getTotalRevisions()
|
SvnDumpFileManager.UndumpingStatus |
getUndumpingStatus()
|
Collection<String> |
getUnknownUsers(String svnDumpFileName)
|
void |
initiateUndumping(String fileName)
|
boolean |
isExistingRepositoryEmpty()
|
boolean |
isUndumpingInProgress()
|
void |
joinUndumperThread()
|
static void |
setJustTesting(boolean val)
|
void |
stallUndumping()
/* only used as testing instrumentation - stops the undumping thread at the very beginning of run() |
void |
stallUndumpingWhileLoadingRevisions()
/* only used as testing instrumentation - stops the undumping thread at the "revision loaded" listener |
void |
unstallUndumping()
/* only used as testing instrumentation - restarts the undumping thread |
void |
unstallUndumpingWhileLoadingRevisions()
/* only used as testing instrumentation - restarts the undumping thread |
void |
waitForUndumperThreadToProcessOneRevision()
/* only used as testing instrumentation - waits for teh undumping thread to start |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static int REQUIRED_PERMISSION
public static final String WEBDAV_DIRECTORY_KEY
public static final String STAGING_DIRECTORY_KEY
public static final String STUDIO_SVN_IMPORT_USE_SUDO_KEY
public static final String STUDIO_SVN_IMPORT_REPO_OWNER_NAME_KEY
public static final String STAGING_SVN_REPO_NAME
public static final String DUMP_FILES_WEBDAV_SUBDIRECTORY
| Constructor Detail |
|---|
public SvnDumpFileManager(com.atlassian.studio.host.common.ThemeProperties themeProperties,
ProjectManager projectManager,
com.atlassian.sal.api.user.UserManager userManager,
com.atlassian.sal.api.message.I18nResolver i18n,
com.atlassian.studio.host.common.initialdata.InitialDataService initialDataService,
com.atlassian.applinks.core.AppLinksManager appLinksManager,
com.atlassian.sal.api.net.RequestFactory<?> requestFactory)
| Method Detail |
|---|
public ExternalCommands.Builder getCommandsBuilder()
public Collection<File> getAvailableDumpFiles()
throws InvalidSettingsException
InvalidSettingsException
public void initiateUndumping(String fileName)
throws SvnDumpFileManager.UndumpException,
IOException,
InterruptedException,
CommandExecutor.ExecuteException,
SvnDumpFileManager.ArgumentException
SvnDumpFileManager.UndumpException
IOException
InterruptedException
CommandExecutor.ExecuteException
SvnDumpFileManager.ArgumentExceptionpublic boolean isUndumpingInProgress()
public void abortUndumping()
throws SvnDumpFileManager.UndumpException,
InterruptedException
SvnDumpFileManager.UndumpException
InterruptedException
public void joinUndumperThread()
throws InterruptedException
InterruptedExceptionpublic int getTotalRevisions()
public int getCurrentRev()
public String getCurrentUndumpedFile()
public String getLastMessage()
public String getLastWarningMessage()
public String getLastUndumpedFileName()
public SvnDumpFileManager.UndumpingStatus getUndumpingStatus()
public Collection<String> getUnknownUsers(String svnDumpFileName)
throws IOException,
CommandExecutor.ExecuteException,
InterruptedException,
InvalidSettingsException,
SvnDumpFileManager.UndumpException
IOException
CommandExecutor.ExecuteException
InterruptedException
InvalidSettingsException
SvnDumpFileManager.UndumpException
public boolean isExistingRepositoryEmpty()
throws InvalidSettingsException,
IOException,
CommandExecutor.ExecuteException,
InterruptedException
InvalidSettingsException
IOException
CommandExecutor.ExecuteException
InterruptedException
public void deleteDumpFile(String fileName)
throws InvalidSettingsException,
SvnDumpFileManager.ArgumentException
InvalidSettingsException
SvnDumpFileManager.ArgumentException
public void stallUndumping()
throws IllegalStateException
IllegalStateException - - this variable can only be set in idle statepublic void unstallUndumping()
public void stallUndumpingWhileLoadingRevisions()
throws IllegalStateException
IllegalStateException - - this variable can only be set in idle statepublic void unstallUndumpingWhileLoadingRevisions()
public void waitForUndumperThreadToProcessOneRevision()
throws InterruptedException
InterruptedException - - this can only be called after initiateUndumping()public static void setJustTesting(boolean val)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||