@OpenApiAll
public class ProjectDescriptorsFactory
extends java.lang.Object
| Constructor and Description |
|---|
ProjectDescriptorsFactory() |
| Modifier and Type | Method and Description |
|---|---|
static java.net.URI |
constructRemoteURI(java.lang.String id,
java.lang.String qualifiedName)
Creates project URI for remote project.
|
static java.net.URI |
constructRemoteURI(java.lang.String id,
java.lang.String qualifiedName,
int version)
Creates project URI for remote project and given version.
|
static java.net.URI |
constructRemoteURI(java.lang.String id,
java.lang.String qualifiedName,
java.lang.String version)
Creates project URI for remote project and given version.
|
static ProjectDescriptor |
createAbstractRemoteProjectDescriptor(Project project)
Creates remote project descriptor.
|
static AbstractRemoteProjectDescriptor |
createAbstractRemoteProjectDescriptorWithActualVersion(Project project)
Creates remote project descriptor.
|
static ProjectDescriptor |
createLocalProjectDescriptor(Project project)
Creates local project descriptor.
|
static ProjectDescriptor |
createLocalProjectDescriptor(Project project,
java.io.File file)
Creates local project descriptor with given project and file
|
static ProjectDescriptor |
createProjectDescriptor(java.lang.String location)
Deprecated.
Use
createProjectDescriptor(URI)
Parses location String and creates ProjectDescriptor object from project's location string. |
static ProjectDescriptor |
createProjectDescriptor(java.net.URI location)
Parses location String and creates ProjectDescriptor object from project's location string.
|
static RemoteProjectDescriptor |
createRemoteProjectDescriptor(Project project)
Creates remote teamwork project descriptor.
|
static RemoteProjectDescriptor |
createRemoteProjectDescriptor(java.lang.String id,
java.lang.String qualifiedName)
Creates project descriptor for remote project.
|
static ProjectDescriptor |
createRemoteProjectDescriptor(java.lang.String id,
java.lang.String qualifiedName,
int actualVersionNumber)
Creates project descriptor for remote project and given version.
|
static ProjectDescriptor |
createRemoteProjectDescriptor(java.lang.String id,
java.lang.String qualifiedName,
java.lang.String actualVersionNumber)
Creates project descriptor for remote project and given version.
|
static RemoteProjectDescriptor |
createRemoteProjectDescriptorWithActualVersion(Project project)
Creates remote teamwork project descriptor.
|
static java.util.List<ProjectDescriptor> |
getAvailableDescriptorsForProject(Project project)
Returns all available descriptors for given project.
|
static ProjectDescriptor |
getDescriptorForProject(Project project)
Returns project descriptor for given project
|
static java.lang.String |
getName(java.net.URI uri)
Retrieves project name from given uri.
|
static java.lang.String |
getProjectBranchPath(java.net.URI uri)
Get project branch path (without project name) or null if branches are not applicable for given uri
|
static java.lang.String |
getProjectFullPath(java.net.URI uri)
Get project branch path (WITH project name) or just project name if branches are not applicable for given uri
|
static java.lang.String |
getProjectName(java.net.URI uri)
Extract project name from the URI.
|
static java.lang.String |
getRemoteID(java.net.URI uri)
Retrieves project id from given uri.
|
static java.lang.String |
getRemoteID(java.net.URI uri,
java.lang.String separator)
Retrieves project id from given uri.
|
static java.lang.String |
getRemoteSeparator(java.net.URI uri) |
static int |
getRemoteVersion(java.net.URI uri)
Retrieves remote version from given uri.
|
static java.lang.String |
getRemoteVersionAsString(java.net.URI uri)
Retrieves remote version from given uri.
|
static boolean |
isAnyRemote(java.net.URI uri) |
static boolean |
isRemote(java.net.URI uri) |
@CheckForNull @Deprecated @CheckReturnValue public static ProjectDescriptor createProjectDescriptor(java.lang.String location)
createProjectDescriptor(URI)
Parses location String and creates ProjectDescriptor object from project's location string.location - the project's location@CheckForNull @CheckReturnValue public static ProjectDescriptor createProjectDescriptor(@CheckForNull java.net.URI location)
location - the project's location@CheckReturnValue public static java.util.List<ProjectDescriptor> getAvailableDescriptorsForProject(Project project)
project - the project.@CheckReturnValue public static ProjectDescriptor getDescriptorForProject(Project project)
project - project for which descriptor is created.@CheckReturnValue public static ProjectDescriptor createLocalProjectDescriptor(Project project)
project - project for which descriptor is created.@CheckReturnValue public static ProjectDescriptor createLocalProjectDescriptor(@CheckForNull Project project, @CheckForNull java.io.File file)
project - project for which descriptor is createdfile - new location for project@CheckForNull @CheckReturnValue public static RemoteProjectDescriptor createRemoteProjectDescriptor(Project project)
project - project for which descriptor is created.@CheckForNull @CheckReturnValue public static ProjectDescriptor createAbstractRemoteProjectDescriptor(Project project)
project - project for which descriptor is created.@CheckForNull @CheckReturnValue public static RemoteProjectDescriptor createRemoteProjectDescriptorWithActualVersion(Project project)
project - project for which descriptor is created.@CheckForNull @CheckReturnValue public static AbstractRemoteProjectDescriptor createAbstractRemoteProjectDescriptorWithActualVersion(Project project)
project - project for which descriptor is created.@CheckForNull @CheckReturnValue public static RemoteProjectDescriptor createRemoteProjectDescriptor(java.lang.String id, java.lang.String qualifiedName)
id - remote project id.qualifiedName - qualified name - branch (if any) combination with project name. See com.nomagic.teamwork.muserver.projects.ProjectsManagerHelper@CheckForNull
@CheckReturnValue
public static java.net.URI constructRemoteURI(java.lang.String id,
@CheckForNull
java.lang.String qualifiedName,
@CheckForNull
java.lang.String version)
id - remote project id.qualifiedName - qualified name - branch (if any) combination with project name. See com.nomagic.teamwork.muserver.projects.ProjectsManagerHelperversion - version number for which descriptor is created. Use -1 for latest version.@CheckForNull
@CheckReturnValue
public static java.net.URI constructRemoteURI(java.lang.String id,
java.lang.String qualifiedName,
int version)
id - remote project id.qualifiedName - qualified name - branch (if any) combination with project name. See com.nomagic.teamwork.muserver.projects.ProjectsManagerHelperversion - version number for which descriptor is created. Use -1 for latest version.@CheckForNull
@CheckReturnValue
public static java.net.URI constructRemoteURI(java.lang.String id,
java.lang.String qualifiedName)
id - remote project id.qualifiedName - qualified name - branch (if any) combination with project name. See com.nomagic.teamwork.muserver.projects.ProjectsManagerHelper@CheckForNull @CheckReturnValue public static java.lang.String getRemoteVersionAsString(java.net.URI uri)
uri - uri to check@CheckReturnValue public static int getRemoteVersion(java.net.URI uri)
uri - uri to check@CheckReturnValue public static boolean isRemote(java.net.URI uri)
uri - uri to check.@CheckReturnValue public static boolean isAnyRemote(java.net.URI uri)
uri - uri to check.@CheckForNull @CheckReturnValue public static java.lang.String getRemoteID(java.net.URI uri)
uri - remote project uri to check.@CheckForNull
@CheckReturnValue
public static java.lang.String getRemoteID(java.net.URI uri,
java.lang.String separator)
uri - remote project uri to check.separator - uri info separator@CheckForNull
@CheckReturnValue
public static java.lang.String getName(@CheckForNull
java.net.URI uri)
uri - remote uri to check.@CheckForNull @CheckReturnValue public static java.lang.String getProjectName(java.net.URI uri)
uri - uri used to retrieve name.getName(java.net.URI)@CheckForNull @CheckReturnValue public static java.lang.String getProjectBranchPath(java.net.URI uri)
uri - used to retrieve path.@CheckForNull @CheckReturnValue public static java.lang.String getProjectFullPath(java.net.URI uri)
uri - used to retrieve full path.@CheckForNull @CheckReturnValue public static ProjectDescriptor createRemoteProjectDescriptor(java.lang.String id, @CheckForNull java.lang.String qualifiedName, @CheckForNull java.lang.String actualVersionNumber)
id - remote project id.qualifiedName - qualified name - branch (if any) combination with project name.actualVersionNumber - version number for which descriptor is created. Use -1 for latest version.@CheckForNull @CheckReturnValue public static ProjectDescriptor createRemoteProjectDescriptor(java.lang.String id, @CheckForNull java.lang.String qualifiedName, int actualVersionNumber)
id - remote project id.qualifiedName - qualified name - branch (if any) combination with project name.actualVersionNumber - version number for which descriptor is created. Use -1 for latest version.public static java.lang.String getRemoteSeparator(java.net.URI uri)
uri -