public class ProjectRepositoryUpdate
extends java.lang.Thread
Constructor and Description |
---|
ProjectRepositoryUpdate(Project projectToUpdate)
Instantiates a new project updater.
|
Modifier and Type | Method and Description |
---|---|
boolean |
downloadOrCopyProjectArchiveFromRepository(java.lang.String sourceDirectoryOrWebReference,
RepositoryEntry updateRepositoryEntry,
java.lang.String destinationFileName)
Download or copy project archive from repository.
|
java.lang.String |
getLinkOrPathWithDirectorySuffix(java.lang.String linkOfPath,
java.lang.String desiredSuffix)
Returns the link or path with the deisred directory suffix.
|
ProjectRepository |
getProjectRepository()
Returns the project repository from the projects update site.
|
boolean |
importProjectFromArchive(java.lang.String projectArchiveFileName)
Imports a project from the specified archive file.
|
boolean |
isSkipTestOfLastDateChecked()
Checks if is skip test of last date checked.
|
boolean |
isSuccessfulUpdate()
Returns if the update was successful after the execution of the.
|
void |
run() |
void |
setExecutedByUser(boolean executedByUser)
Sets the ProjectRepositoryUpdate executed by user.
|
void |
setHeadlessUpdate(boolean headlessUpdate)
Sets if is a headless update.
|
void |
setProjectRepository(ProjectRepository projectRepository)
Sets the current project repository.
|
void |
setShowFinalUserMessage(boolean showFinalUserMessage)
Sets to show a final user message.
|
void |
setSkipTestOfLastDateChecked(boolean skipTestOfLastDateChecked)
Sets the skip test of last date checked.
|
void |
setUserRequestForDownloadAndInstallation(boolean userRequestForDownload)
Sets that the user request for download and installation is required.
|
void |
setUserRequestForInstallation(boolean userRequestForInstallation)
Sets that the user request for installation is required.
|
void |
startInSameThread()
Does the same as calling the threads
Thread.start() method, but
without starting an individual thread. |
boolean |
updateProject(java.lang.String updateFileName)
Updates the current project with the specified project archive file.
|
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
public ProjectRepositoryUpdate(Project projectToUpdate)
projectToUpdate
- the project to updatepublic void setHeadlessUpdate(boolean headlessUpdate)
headlessUpdate
- the new headless updatepublic void setExecutedByUser(boolean executedByUser)
executedByUser
- the new executed by userpublic void setUserRequestForDownloadAndInstallation(boolean userRequestForDownload)
userRequestForInstallation
- the new user request for downloadpublic void setUserRequestForInstallation(boolean userRequestForInstallation)
userRequestForInstallation
- the new user request for installationpublic void setShowFinalUserMessage(boolean showFinalUserMessage)
showFinalUserMessage
- the new show final user messagepublic boolean isSkipTestOfLastDateChecked()
public void setSkipTestOfLastDateChecked(boolean skipTestOfLastDateChecked)
skipTestOfLastDateChecked
- the new skip test of last date checkedpublic void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
public void startInSameThread()
Thread.start()
method, but
without starting an individual thread. Thus, it enables to wait
until the project update is finalized.public boolean isSuccessfulUpdate()
public boolean updateProject(java.lang.String updateFileName)
updateFileName
- the update file namepublic boolean importProjectFromArchive(java.lang.String projectArchiveFileName)
projectArchiveFileName
- the project archive file namepublic boolean downloadOrCopyProjectArchiveFromRepository(java.lang.String sourceDirectoryOrWebReference, RepositoryEntry updateRepositoryEntry, java.lang.String destinationFileName)
sourceDirectoryOrWebReference
- the source directory or web reference (without any file)updateRepositoryEntry
- the update repository entrydestinationFileName
- the destination file namepublic java.lang.String getLinkOrPathWithDirectorySuffix(java.lang.String linkOfPath, java.lang.String desiredSuffix)
linkOfPath
- the link of pathdesiredSuffix
- the desired suffixpublic ProjectRepository getProjectRepository()
public void setProjectRepository(ProjectRepository projectRepository)
projectRepository
- the new project repository