|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.starbase.starteam.StarTeamFinder
A utility class for easily obtaining a connection to a StarTeam server and finding various objects like projects, views, folders and files.
| Method Summary | |
static File |
findFile(Folder source,
java.lang.String name,
boolean matchCase)
Finds the specified file from the specified folder. |
static Folder |
findFolder(Folder from,
java.lang.String folderPath)
Given a folder and a path to a subfolder this method will return the subfolder if found. |
static Folder |
findSubFolder(Folder from,
java.lang.String subFolderName)
Finds a subfolder in the specified folder. |
static Folder |
openFolder(java.lang.String url)
Connects to and logs on to the specified server and finds the specified folder. |
static Folder |
openFolderWithOverride(java.lang.String url,
java.lang.String viewPath)
Connects to and logs on to the specified server and finds the specified folder. |
static Project |
openProject(java.lang.String url)
Connects to and logs on to the specified server and finds the specified project. |
static Server |
openServer(java.lang.String url)
Connect to and log on to a server object specified by the StarTeam url string. |
static View |
openView(java.lang.String url)
Connects to and logs on to the specified server and finds the specified view. |
static View |
openViewWithOverride(java.lang.String url,
java.lang.String viewPath)
Connects to and logs on to the specified server and finds the specified view. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static Server openServer(java.lang.String url)
"fred:password@localhost:49201", or
"fred:password@MyStarTeamServer"
The url may additionally include project view and folder information but those will be ignored. Note that the password cannot contain the '@' symbol
url - a valid StarTeamURL string.
StarTeamURLpublic static Project openProject(java.lang.String url)
"fred:password@localhost:49201/Project", or
"fred:password@MyStarTeamServer/Project"
The url may additionally include view and folder information but those will be ignored. Note that the password cannot contain the '@' symbol
url - a valid StarTeamURL string.
StarTeamURL
public static View openViewWithOverride(java.lang.String url,
java.lang.String viewPath)
"fred:password@localhost:49201/Project/ViewName", or
"fred:password@MyStarTeamServer/Project/ViewName"
The url may additionally include folder information but it will be ignored. You may also provide an override of the view's root folder's working directory. Note that the password cannot contain the '@' symbol
url - a valid StarTeamURL string.viewPath - if not null then this specifies a new working
directory for the view's root folder
StarTeamURL,
Folder.setAlternatePathFragment(java.lang.String)public static View openView(java.lang.String url)
"fred:password@localhost:49201/Project/ViewName", or
"fred:password@MyStarTeamServer/Project/ViewName"
The url may additionally include folder information but it will be ignored. Note that the password cannot contain the '@' symbol
url - a valid StarTeamURL string.
StarTeamURL
public static Folder openFolderWithOverride(java.lang.String url,
java.lang.String viewPath)
"fred:password@localhost:49201/Project/ViewName/FolderA/FolderB", or
"fred:password@MyStarTeamServer/Project/ViewName/FolderA/FolderB"
You may also provide an override of the view's root folder's working directory. Note that the password cannot contain the '@' symbol
url - a valid StarTeamURL string.viewPath - if not null then this specifies a new working
directory for the view's root folder
StarTeamURL,
Folder.setAlternatePathFragment(java.lang.String)public static Folder openFolder(java.lang.String url)
"fred:password@localhost:49201/Project/ViewName/FolderA/FolderB", or
"fred:password@MyStarTeamServer/Project/ViewName/FolderA/FolderB"
Note that the password cannot contain the '@' symbol
url - a valid StarTeamURL string.
StarTeamURL,
Folder.setAlternatePathFragment(java.lang.String)
public static Folder findFolder(Folder from,
java.lang.String folderPath)
from - the folder from which to start the searchfolderPath - the path to the subfolder. This should not include the
from folder's name.
public static Folder findSubFolder(Folder from,
java.lang.String subFolderName)
from - the folder being searchedsubFolderName - the name of the subfolder to be found
public static File findFile(Folder source,
java.lang.String name,
boolean matchCase)
source - the folder to be searchedname - the name of the file to be foundmatchCase - should be true if comparison is case sensitive
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||