Package com.nomagic.magicdraw.teamwork2
Interface ITeamworkService
- All Known Implementing Classes:
TeamworkService
@OpenApiAll
public interface ITeamworkService
Interface for team server service
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionReturns name of connected user .Returns ServerLoginInfodefault ProjectDescriptorDeprecated, for removal: This API element is subject to removal in a future version.getProjectDescriptorByQualifiedName(String qualifiedName) Deprecated, for removal: This API element is subject to removal in a future version.useEsiUtils.getProjectDescriptorByQualifiedName(String)Returns project descriptor.Deprecated, for removal: This API element is subject to removal in a future version.useEsiUtils.getRemoteProjectDescriptors()Collect information about all projects on servergetProjectIdByQualifiedName(String qualifiedName) Deprecated, for removal: This API element is subject to removal in a future version.useEsiUtils.getProjectIdByQualifiedName(String)Returns project id for given project qualified name.Return service id.com.nomagic.ci.persistence.versioning.IVersionDescriptorgetVersion(Project project) Deprecated.use Current versions of given projectList<com.nomagic.ci.persistence.versioning.IVersionDescriptor> getVersions(ProjectDescriptor descriptor) Deprecated, for removal: This API element is subject to removal in a future version.useEsiUtils.getVersions(ProjectDescriptor)Versions of given projectbooleanReturns true, when connection between MD and server is established.booleanlogin(boolean useLastLoginData) Logs into last successful server using last successful input data.voidlogin(ServerLoginInfo info, boolean encryptPassword) Login with given databooleanlogout()Logs out from server.voidsetLastUsedTeamworkInfo(ServerLoginInfo info, boolean encryptPassword) Saves given input data, as last successful user connection info.
-
Field Details
-
ESI_SERVICE
Identifier of ESI Server service- See Also:
-
-
Method Details
-
getServiceID
String getServiceID()Return service id.- Returns:
- service id
-
isConnected
boolean isConnected()Returns true, when connection between MD and server is established.- Returns:
- true, when user is connected to server.
-
getConnectedUser
Returns name of connected user .- Returns:
- User name of connected user. Null when no user is connected.
-
login
boolean login(boolean useLastLoginData) Logs into last successful server using last successful input data.- Parameters:
useLastLoginData- true use last login data, false - specify new login data.- Returns:
- return true if log-in was successful.
- See Also:
-
login
Login with given data- Parameters:
info- login infoencryptPassword- encrypt password from given info
-
logout
boolean logout()Logs out from server.- Returns:
- True, when log out was successful.
-
setLastUsedTeamworkInfo
Saves given input data, as last successful user connection info.- Parameters:
info- login infoencryptPassword- encrypt password from given info
-
getLastUsedLoginInfo
ServerLoginInfo getLastUsedLoginInfo()Returns ServerLoginInfo- Returns:
- ServerLoginInfo
-
getProjectDescriptors
Deprecated, for removal: This API element is subject to removal in a future version.useEsiUtils.getRemoteProjectDescriptors()Collect information about all projects on server- Returns:
- descriptors of all projects
- Throws:
Exception- in case of some error
-
getProjectDescriptorById
@Deprecated(forRemoval=true) default ProjectDescriptor getProjectDescriptorById(String id) throws Exception Deprecated, for removal: This API element is subject to removal in a future version.useEsiUtils.createProjectDescriptorById(String)Returns descriptor of project with given id- Parameters:
id- project id- Returns:
- descriptor
- Throws:
Exception- in case of some error
-
getProjectIdByQualifiedName
@Deprecated(forRemoval=true) String getProjectIdByQualifiedName(String qualifiedName) throws Exception Deprecated, for removal: This API element is subject to removal in a future version.useEsiUtils.getProjectIdByQualifiedName(String)Returns project id for given project qualified name.- Parameters:
qualifiedName- project qualified name, unique name constructed from project name and it's branches. Examples: "MyProject" with no branches = "MyProject" "MyProject" branch ["release"] = "MyProject##release" "MyProject" branch with subbranch ["release", "sp1"] = "MyProject##release##sp1"- Returns:
- project id.
- Throws:
Exception- in case of some error
-
getProjectDescriptorByQualifiedName
@Deprecated(forRemoval=true) ProjectDescriptor getProjectDescriptorByQualifiedName(String qualifiedName) throws Exception Deprecated, for removal: This API element is subject to removal in a future version.useEsiUtils.getProjectDescriptorByQualifiedName(String)Returns project descriptor.- Parameters:
qualifiedName- project qualified name, unique name constructed from project name and it's branches.E.g:
"MyProject" with no branches = "MyProject"
"MyProject" branch ["release"] = "MyProject##release"
"MyProject" branch with subbranch ["release", "sp1"] = "MyProject##release##sp1"- Returns:
- remote project descriptor
- Throws:
Exception- in case of some error
-
getVersions
@Deprecated(forRemoval=true) List<com.nomagic.ci.persistence.versioning.IVersionDescriptor> getVersions(ProjectDescriptor descriptor) throws Exception Deprecated, for removal: This API element is subject to removal in a future version.useEsiUtils.getVersions(ProjectDescriptor)Versions of given project- Parameters:
descriptor- descriptor.- Returns:
- versions
- Throws:
Exception- in case of some error
-
getVersion
Deprecated.use Current versions of given project- Parameters:
project- project- Returns:
- versions
-
getEsiUtils
EsiUtils getEsiUtils()- Returns:
- EsiUtils
-
EsiUtils.createProjectDescriptorById(String)Returns descriptor of project with given id