| |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
This class defines a Version Control System provider and acts as a factory for VcsProvider instances. An implementation of VcsProviderType must register itself with VcsManager. VcsProviderType and VcsProvider are uniquely identified with ID.
| Method Summary | |
String | getID()Returns a string which is a unique identifier of VcsProvider. |
String | getProviderName()Returns descriptive name of the provider, for example: SCC provider: SourceSafe. |
String | getValidProjectName(String rootProject, File rootWorkingDir, File workingDir)Returns project name valid for this provider which corresponds to working directory workingDir, given that project rootProject
corresponds to root working directory rootWorkingDir. |
void | initialize()Performs initialization of version control system. |
void | invalidateAllProviders()Makes all so far created providers invalid. |
void | invalidateProvider(VcsProvider provider)Invalidates specified provider. |
boolean | isCommandSupportedForProject(String command)Returns tru if command is supported by this provider. |
boolean | isCommandSupportsAdvancedOptions(String command)Returns true if this provider supports advanced options for command. |
boolean | isInitialized()Returns true if this provider type is initialized. |
boolean | isProjectNameValid(String project)Returns true if project is valid in context of this provider,
that is doesn't contain illegal characters and has correct structure. |
boolean | isProviderValid(VcsProvider provider)Returns true if this provider instance is valid with the provider type. |
VcsProvider | newVcsProvider()Creates new instance of VcsProvider. |
String[] | supportedCommands()Returns the array of all commands supported by the provider. |
void | unInitialize()Uninitilizes version control. |
| Method Detail |
public String getID()
public String getProviderName()
public String getValidProjectName(String rootProject, File rootWorkingDir, File workingDir)
throws VcsProviderException
workingDir, given that project rootProject
corresponds to root working directory rootWorkingDir.project is validpublic void initialize()
throws VcsProviderException
public void invalidateAllProviders()
public void invalidateProvider(VcsProvider provider)
provider. An invalidated provider
is not functional, its behaviour is not determined. The invalidated
instance of VcsProvider must free all allocated resources and
be prepared to garbage collection.public boolean isCommandSupportedForProject(String command)
command is supported by this provider.command is supported for project operations,
false otherwisepublic boolean isCommandSupportsAdvancedOptions(String command)
command.command supports advanced options,
that is a call to VcsProvider.showAdvancedOptions
with this command as parameter will not be ignoredpublic boolean isInitialized()
public boolean isProjectNameValid(String project)
project is valid in context of this provider,
that is doesn't contain illegal characters and has correct structure.project is validpublic boolean isProviderValid(VcsProvider provider)
provider instance is valid with the provider typepublic VcsProvider newVcsProvider()
throws VcsProviderException
public String[] supportedCommands()
public void unInitialize()
unInitiallize also
invalidates all created instances of VcsProvider with same ID.
| |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||