@OpenApiAll
public class ProjectModuleHelper
extends java.lang.Object
Constructor and Description |
---|
ProjectModuleHelper() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getDescriptionString(IAttachedProject attachedProject)
Get description of attached project.
|
static java.lang.String |
getLatestVersion(IAttachedProject attachedProject)
Get latest version of specified attached project.
|
static ProjectVersion |
getProjectVersion(IAttachedProject attachedProject)
Return project version of attached project.
|
static java.lang.String |
getRepresentationString(IAttachedProject attachedProject)
Return user friendly representation string about given attached project
|
static java.lang.String |
getRequiredVersion(IAttachedProject attachedProject)
Get required version of specified attached project.
|
static java.util.Collection<ProjectModule> |
getSharedModule(IAttachedProject module)
Return a list of project module from specified module.
|
static java.util.Collection<ProjectModule> |
getSharedModule(Project project)
Return a list of project module from current project.
|
static java.lang.String |
getUsedVersion(IAttachedProject attachedProject)
Get used version of specified attached project.
|
static long |
getVersion(IAttachedProject attachedProject)
Get version number of specified attached project.
|
static java.util.List<ProjectVersion> |
getVersionList(IAttachedProject attachedProject)
Return all project versions of attached project.
|
static java.util.List<ProjectVersion> |
getVersions(IAttachedProject attachedProject)
Return a list of project version information from opened server project.
The result will be sorted in descending order. |
static java.util.List<ProjectVersion> |
getVersions(IAttachedProject attachedProject,
java.lang.String sortType)
Return a list of project version information from opened server project.
The result will be sorted by specified sortType. |
static boolean |
isRemote(IAttachedProject attachedProject)
Check if given project is remote - from teamwork server or TW Cloud.
|
public static java.util.Collection<ProjectModule> getSharedModule(Project project)
project
- a Project
ProjectModule
public static java.util.Collection<ProjectModule> getSharedModule(IAttachedProject module)
module
- an IAttachedProject
ProjectModule
public static java.lang.String getDescriptionString(IAttachedProject attachedProject)
attachedProject
- an IAttachedProject
public static java.lang.String getRepresentationString(IAttachedProject attachedProject)
attachedProject
- an IAttachedProject
public static boolean isRemote(IAttachedProject attachedProject)
attachedProject
- an IAttachedProject
public static java.lang.String getLatestVersion(IAttachedProject attachedProject)
attachedProject
- an IAttachedProject
public static long getVersion(IAttachedProject attachedProject)
attachedProject
- an IAttachedProject
public static java.lang.String getUsedVersion(IAttachedProject attachedProject)
attachedProject
- an IAttachedProject
public static java.lang.String getRequiredVersion(IAttachedProject attachedProject)
attachedProject
- an IAttachedProject
public static ProjectVersion getProjectVersion(IAttachedProject attachedProject)
attachedProject
- an IAttachedProject
ProjectVersion
of attached projectpublic static java.util.List<ProjectVersion> getVersions(IAttachedProject attachedProject)
attachedProject
- an IAttachedProject
ProjectVersion
public static java.util.List<ProjectVersion> getVersions(IAttachedProject attachedProject, java.lang.String sortType)
attachedProject
- an IAttachedProject
sortType
- type of sorting. Specify "asc" sort in descending order. Default is descending sort.ProjectVersion
public static java.util.List<ProjectVersion> getVersionList(IAttachedProject attachedProject)
attachedProject
- an IAttachedProject
ProjectVersion
of attached project