@OpenApiAll
public interface ITeamworkService
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CAMEOSERVER_SERVICE
Identifier of Cameo Team Server service
|
static java.lang.String |
ESI_SERVICE
Identifier of ESI Server service
|
static java.lang.String |
TEAMWORK_SERVICE
Identifier of MagicDraw Teamwork Server service
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getConnectedUser()
Returns name of connected user .
|
ServerLoginInfo |
getLastUsedLoginInfo()
Returns list of input data, which was entered on last successful connection.
|
ProjectDescriptor |
getProjectDescriptorById(java.lang.String id)
Returns descriptor of project with given id
|
ProjectDescriptor |
getProjectDescriptorByQualifiedName(java.lang.String qualifiedName)
Returns project descriptor.
|
java.util.List<ProjectDescriptor> |
getProjectDescriptors()
Collect information about all projects on server
|
java.lang.String |
getProjectIdByQualifiedName(java.lang.String qualifiedName)
Returns project id for given project qualified name.
|
java.lang.String |
getServiceID()
Return service id.
|
IVersionDescriptor |
getVersion(Project project)
Current versions of given project
|
java.util.List<IVersionDescriptor> |
getVersions(ProjectDescriptor descriptor)
Versions of given project
|
boolean |
isConnected()
Returns true, when connection between MD and server is established.
|
boolean |
isLiveConnection()
Check if there is a live server connection
|
boolean |
login(boolean useLastLoginData)
Logs into last successful server using last successful input data.
|
void |
login(ServerLoginInfo info,
boolean encryptPassword)
Login with given data
|
boolean |
logout()
Logs out from server.
|
void |
setAsLastUsedService()
Set that current service is last used service to connect to server from MD.
|
void |
setLastUsedTeamworkInfo(ServerLoginInfo info,
boolean encryptPassword)
Saves given input data, as last successful user connection info.
|
static final java.lang.String CAMEOSERVER_SERVICE
getServiceID()
,
Constant Field Valuesstatic final java.lang.String TEAMWORK_SERVICE
getServiceID()
,
Constant Field Valuesstatic final java.lang.String ESI_SERVICE
getServiceID()
,
Constant Field Values@Nonnull java.lang.String getServiceID()
boolean isConnected()
boolean isLiveConnection()
@CheckForNull java.lang.String getConnectedUser()
boolean login(boolean useLastLoginData)
useLastLoginData
- true use last login data, false - specify new login data.setLastUsedTeamworkInfo(ServerLoginInfo, boolean)
void login(@Nonnull ServerLoginInfo info, boolean encryptPassword)
info
- login infoencryptPassword
- encrypt password from given infoboolean logout()
void setLastUsedTeamworkInfo(@Nonnull ServerLoginInfo info, boolean encryptPassword)
info
- login infoencryptPassword
- encrypt password from given infoServerLoginInfo getLastUsedLoginInfo()
void setAsLastUsedService()
java.util.List<ProjectDescriptor> getProjectDescriptors() throws java.lang.Exception
java.lang.Exception
- in case of some errorProjectDescriptor getProjectDescriptorById(java.lang.String id) throws java.lang.Exception
id
- project idjava.lang.Exception
- in case of some errorjava.lang.String getProjectIdByQualifiedName(java.lang.String qualifiedName) throws java.lang.Exception
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"java.lang.Exception
- in case of some errorProjectDescriptor getProjectDescriptorByQualifiedName(java.lang.String qualifiedName) throws java.lang.Exception
qualifiedName
- project qualified name, unique name constructed from project name and it's branches.
E.g:
"MyProject" with no branches = "MyProject"java.lang.Exception
- in case of some errorjava.util.List<IVersionDescriptor> getVersions(ProjectDescriptor descriptor) throws java.lang.Exception
descriptor
- descriptor.java.lang.Exception
- in case of some errorIVersionDescriptor getVersion(@Nonnull Project project)
project
- project