Class TeamworkOptionsGroup
java.lang.Object
com.nomagic.magicdraw.core.options.OptionsGroup
com.nomagic.magicdraw.core.options.AbstractPropertyOptionsGroup
com.nomagic.magicdraw.core.options.VersionedOptionsGroup
com.nomagic.magicdraw.core.options.TeamworkOptionsGroup
- All Implemented Interfaces:
Cloneable
@OpenApiAll
public class TeamworkOptionsGroup
extends com.nomagic.magicdraw.core.options.VersionedOptionsGroup
Teamwork options.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final boolean
Default value for New Project Version Notificationstatic final String
static final int
Default setting when to show notification about available project usages updates to latest versionstatic final String
static final String
static final String
static final String
static final List
List of options when to show notification about available project usages updates to latest versionstatic final String
Mode of teamwork projects tree table when only projects are displayed in flat list.static final String
Mode of teamwork projects tree table when categories and projects are displayed in tree form, no presentation modifications are made to original structurestatic final List
List of options how to display usersstatic final int
Display user email optionstatic final int
Display full user name optionstatic final int
Display user name optionFields inherited from class com.nomagic.magicdraw.core.options.VersionedOptionsGroup
CURRENT_EXPORTER_VERSION
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
afterLoad
(com.nomagic.magicdraw.lic.MDVersion version, boolean pluginsLoaded) void
Clears user password to MU servergets Last used authentication server nameReturns the list of authentication server names, which where entered by user, and successfully connected.com.nomagic.ui.banners.Banner
boolean
Gets value of this property.Returns last cameo resource ID.Gets collection of identifiers of categories that were recently expanded.Gets collection of identifiers of project usages categories that were recently expanded.Gets last selected esi offline server.gets login token to servergets Last used server namegets user login to MU servergets user password to MU serverint
Returns currently selected interval between version checks.Gets the teamwork projects tree table display mode.int
Gets when to show notification about available project usages updates to latest version.int
Gets how to display usersReturns the list of server names, which where entered by user, and successfully connected.Gets WebApp URL.boolean
Determines whether projects should be auto-commit after project migration to a new version.boolean
is login to MU server autoboolean
Indicates if teamwork projects tree table shall display an empty categories as well.boolean
boolean
Determines whether elements can be locked without update project.boolean
boolean
Method checks whether the New Project Version Notification property is enabledboolean
Is server will be remembered between sessionsboolean
Is entered user login name will be remembered between sessions.boolean
boolean
Determines whether sso login tab should be visible.boolean
void
setAuthServerName
(String name) sets server name as a last used server name.void
setAuthServerNames
(List<String> serverNames) Setter for Single Sign On server list (server names)void
setAutoCommitOnProjectMigration
(boolean autoCommit) Sets new value for theautoCommitOnProjectMigration
propertyvoid
setAutoLoginToMU
(boolean log) sets auto login to MU servervoid
setCreateMountRelationshipsOnImportToCEDW
(boolean enable) Sets new value for this property.void
Sets default values for the properties contained in this group.void
setEmptyTeamworkProjectsCategoriesVisible
(boolean visible) Sets if teamwork projects tree table shall display an empty categories as wellvoid
setEnableLockingWithoutForceUpdate
(boolean enable) Sets new value for theisEnableLockingWithoutForceUpdate()
propertyvoid
void
setKeepLocks
(boolean keepLocks) void
Sets last used cameo resource(project) ID.void
setLastExpandedCategories
(Collection<String> categoryIds) Sets collection of identifiers of categories that were recently expanded.void
setLastExpandedProjectUsagesCategories
(Collection<String> categoryIds) Sets collection of identifiers of project usages categories that were recently expanded.void
setLastSelectedEsiOfflineServerID
(String serverId) Sets server identifiers that was last selected as offline server.void
setLastUsedEsiBranches
(String info) void
setLoginToken
(String token) sets login token to servervoid
setMUServerName
(String name) sets server name as a last used server name.void
setMUUserLogin
(String name) sets user login to MU servervoid
setMUUserPassword
(String name) sets user password to MU servervoid
set encrypted passwordvoid
setNewProjectVersionCheckInterval
(String initialValue) Sets the initial interval between version checks for.void
setNewProjectVersionNotification
(boolean value) Sets whether the New Project Version Notification should be set to enabled or not.void
setProjectsTreeTableMode
(String value) Sets the teamwork projects tree table display mode.void
setProjectUsagesUpdateNotification
(int choice) Sets when to show notification about available project usages updates to latest version.void
setRememberServerBetweenSessions
(boolean remember) Sets that server will be remembered during sessions.void
setRememberUserNameBetweenSessions
(boolean remember) Sets that login will be remembered during sessions.void
setRepresentationOfUsers
(int choice) Sets how to display usersvoid
setServerNames
(List<String> serverNames) Setter for team server list (server names)void
setShowModuleVersionsConflictWarning
(boolean show) void
setSSOLoginTabVisible
(boolean visible) Sets new value for theSSOLoginTabVisible
propertyvoid
setUseSecureConnection
(boolean use) void
setWebAppServerUrl
(String url) Sets WebApp URL.Methods inherited from class com.nomagic.magicdraw.core.options.VersionedOptionsGroup
beforeLoad, getExporterVersion, getOptionsToSave, isExporterVersionEarlier, isExporterVersionEarlier, loadOptions
Methods inherited from class com.nomagic.magicdraw.core.options.AbstractPropertyOptionsGroup
addInvisibleProperty, addProperty, addProperty, addProperty, getOptions, getProperty, getVisibleOptions, removeProperty, setOptions, setPropertiesInvisible, setPropertyInvisible
Methods inherited from class com.nomagic.magicdraw.core.options.OptionsGroup
getGroupIcon, getIcon, getName
-
Field Details
-
ID
- See Also:
-
DEFAULT_NEW_PROJECT_VERSION_CHECK
public static final boolean DEFAULT_NEW_PROJECT_VERSION_CHECKDefault value for New Project Version Notification- See Also:
-
DEFAULT_NEW_PROJECT_VERSION_CHECK_INTERVAL_IN_SECONDS
- See Also:
-
DEFAULT_PROJECT_USAGES_UPDATE_SHOW_NOTIFICATION_INDEX
public static final int DEFAULT_PROJECT_USAGES_UPDATE_SHOW_NOTIFICATION_INDEXDefault setting when to show notification about available project usages updates to latest version- See Also:
-
INCLUDE_VERSION_INTO_ELEMENT_URL_ASK
- See Also:
-
INCLUDE_VERSION_INTO_ELEMENT_URL_INCLUDE
- See Also:
-
INCLUDE_VERSION_INTO_ELEMENT_URL_DO_NOT_INCLUDE
- See Also:
-
PROJECT_USAGES_UPDATE_SHOW_NOTIFICATION_OPTION_CHOICES
List of options when to show notification about available project usages updates to latest version -
PROJECTS_TREE_TABLE_MODE_ORIGINAL
Mode of teamwork projects tree table when categories and projects are displayed in tree form, no presentation modifications are made to original structure- See Also:
-
PROJECTS_TREE_TABLE_MODE_FLAT
Mode of teamwork projects tree table when only projects are displayed in flat list.- See Also:
-
USERS_REPRESENTATION_CHOICES
List of options how to display users -
USERS_REPRESENTATION_USER_NAME
public static final int USERS_REPRESENTATION_USER_NAMEDisplay user name option- See Also:
-
USERS_REPRESENTATION_FULL_NAME
public static final int USERS_REPRESENTATION_FULL_NAMEDisplay full user name option- See Also:
-
USERS_REPRESENTATION_EMAIL
public static final int USERS_REPRESENTATION_EMAILDisplay user email option- See Also:
-
-
Constructor Details
-
TeamworkOptionsGroup
public TeamworkOptionsGroup()
-
-
Method Details
-
setDefaultValues
public void setDefaultValues()Description copied from class:AbstractPropertyOptionsGroup
Sets default values for the properties contained in this group. Overriding classes should set default values to the properties.- Overrides:
setDefaultValues
in classcom.nomagic.magicdraw.core.options.VersionedOptionsGroup
-
isEnable3DExperience
public boolean isEnable3DExperience() -
afterLoad
protected void afterLoad(com.nomagic.magicdraw.lic.MDVersion version, boolean pluginsLoaded) - Overrides:
afterLoad
in classcom.nomagic.magicdraw.core.options.VersionedOptionsGroup
-
setAutoLoginToMU
public void setAutoLoginToMU(boolean log) sets auto login to MU server -
isAutoLoginToMU
public boolean isAutoLoginToMU()is login to MU server auto -
setMUServerName
sets server name as a last used server name. -
setAuthServerName
sets server name as a last used server name.- Parameters:
name
- server name
-
getMUServerName
gets Last used server name -
getAuthServerName
gets Last used authentication server name -
setMUUserLogin
sets user login to MU server -
getMUUserLogin
gets user login to MU server -
setLoginToken
sets login token to server- Parameters:
token
- authentication token
-
getLoginToken
gets login token to server -
getMUUserPassword
gets user password to MU server- Returns:
- secret password
-
setMUUserPasswordAndEncrypt
set encrypted password -
setMUUserPassword
sets user password to MU server -
clearMUUserPassword
public void clearMUUserPassword()Clears user password to MU server -
setShowModuleVersionsConflictWarning
public void setShowModuleVersionsConflictWarning(boolean show) -
isShowModuleVersionsConflictWarning
public boolean isShowModuleVersionsConflictWarning() -
setLastUsedEsiBranches
-
getLastUsedEsiBranches
-
getServerNames
Returns the list of server names, which where entered by user, and successfully connected. -
getAuthServerNames
Returns the list of authentication server names, which where entered by user, and successfully connected.- Returns:
- list of servers used earlier
-
setAuthServerNames
Setter for Single Sign On server list (server names) -
getDefaultServerNames
-
setServerNames
Setter for team server list (server names) -
getIncludeVersionIntoURLMode
-
setIncludeVersionIntoURLMode
-
getLastExpandedCategories
Gets collection of identifiers of categories that were recently expanded.- Returns:
- collection of category id.
-
setLastExpandedCategories
Sets collection of identifiers of categories that were recently expanded. -
getLastExpandedProjectUsagesCategories
Gets collection of identifiers of project usages categories that were recently expanded.- Returns:
- collection of category id.
-
setLastExpandedProjectUsagesCategories
Sets collection of identifiers of project usages categories that were recently expanded. -
getLastSelectedEsiOfflineServerID
Gets last selected esi offline server.- Returns:
- server id
-
setLastSelectedEsiOfflineServerID
Sets server identifiers that was last selected as offline server.- Parameters:
serverId
- server ID (esi server cluster ID)
-
getProjectsTreeTableMode
Gets the teamwork projects tree table display mode.- Returns:
- mode
- See Also:
-
setProjectsTreeTableMode
Sets the teamwork projects tree table display mode. -
isEmptyTeamworkProjectsCategoriesVisible
public boolean isEmptyTeamworkProjectsCategoriesVisible()Indicates if teamwork projects tree table shall display an empty categories as well.- Returns:
- true to show empty, otherwise false
-
setEmptyTeamworkProjectsCategoriesVisible
public void setEmptyTeamworkProjectsCategoriesVisible(boolean visible) Sets if teamwork projects tree table shall display an empty categories as well -
setUseSecureConnection
public void setUseSecureConnection(boolean use) -
isUseSecureConnection
public boolean isUseSecureConnection() -
getBanner
public com.nomagic.ui.banners.Banner getBanner() -
setRememberServerBetweenSessions
public void setRememberServerBetweenSessions(boolean remember) Sets that server will be remembered during sessions.- Parameters:
remember
- - true to remember, false not to remember.
-
isRememberServerBetweenSessions
public boolean isRememberServerBetweenSessions()Is server will be remembered between sessions -
setRememberUserNameBetweenSessions
public void setRememberUserNameBetweenSessions(boolean remember) Sets that login will be remembered during sessions.- Parameters:
remember
- - true to remember, false not to remember.
-
isRememberUserNameBetweenSessions
public boolean isRememberUserNameBetweenSessions()Is entered user login name will be remembered between sessions. -
setLastCameoResourceId
Sets last used cameo resource(project) ID.- Parameters:
id
- unique id of resource.
-
getLastCameoResourceId
Returns last cameo resource ID. -
setKeepLocks
public void setKeepLocks(boolean keepLocks) -
isKeepLocks
public boolean isKeepLocks() -
setAutoCommitOnProjectMigration
public void setAutoCommitOnProjectMigration(boolean autoCommit) Sets new value for theautoCommitOnProjectMigration
property- Parameters:
autoCommit
- the value to set
-
isAutoCommitOnProjectMigration
public boolean isAutoCommitOnProjectMigration()Determines whether projects should be auto-commit after project migration to a new version. It is a general setting, however it is up to every different migration to decide whether it should conform to it- Returns:
true
if project should be auto-committed after migration,false
if not
-
setSSOLoginTabVisible
public void setSSOLoginTabVisible(boolean visible) Sets new value for theSSOLoginTabVisible
property- Parameters:
visible
- the value to set
-
isSSOLoginTabVisible
public boolean isSSOLoginTabVisible()Determines whether sso login tab should be visible.- Returns:
true
if login tab should be visible,false
if not
-
setNewProjectVersionCheckInterval
Sets the initial interval between version checks for.- Parameters:
initialValue
- value to select in the choice box
-
getNewProjectVersionCheckInterval
public int getNewProjectVersionCheckInterval()Returns currently selected interval between version checks.- Returns:
- interval between version checks in seconds
-
setNewProjectVersionNotification
public void setNewProjectVersionNotification(boolean value) Sets whether the New Project Version Notification should be set to enabled or not.- Parameters:
value
- identifies the state of the property(true
means enabled)
-
isNewProjectVersionCheckEnabled
public boolean isNewProjectVersionCheckEnabled()Method checks whether the New Project Version Notification property is enabled- Returns:
true
if the property is enabled
-
setProjectUsagesUpdateNotification
public void setProjectUsagesUpdateNotification(int choice) Sets when to show notification about available project usages updates to latest version. Default option is 0 (on open).- Parameters:
choice
- when to show notification about available project usages updates to latest version (open = 0, open, update and save = 1, never = 2).
-
getProjectUsagesUpdateNotification
public int getProjectUsagesUpdateNotification()Gets when to show notification about available project usages updates to latest version. Default option is 0 (on open).- Returns:
- when to show notification about available project usages updates to latest version (open = 0, open, update and save = 1, never = 2).
-
setEnableLockingWithoutForceUpdate
public void setEnableLockingWithoutForceUpdate(boolean enable) Sets new value for theisEnableLockingWithoutForceUpdate()
property- Parameters:
enable
- enable lock without update
-
isEnableLockingWithoutForceUpdate
public boolean isEnableLockingWithoutForceUpdate()Determines whether elements can be locked without update project. Locking without update can be done only if there is no changes done with elements in upcoming server versions.- Returns:
false
if project if forced to update
-
setCreateMountRelationshipsOnImportToCEDW
public void setCreateMountRelationshipsOnImportToCEDW(boolean enable) Sets new value for this property.- Parameters:
enable
- new value
-
getCreateMountRelationshipsOnImportToCEDW
public boolean getCreateMountRelationshipsOnImportToCEDW()Gets value of this property.- Returns:
- true if property value is true, or if property does not exist at all.
-
setWebAppServerUrl
Sets WebApp URL.- Parameters:
url
- new URL
-
getWebAppServerUrl
Gets WebApp URL.- Returns:
- WebApp URL
-
setRepresentationOfUsers
public void setRepresentationOfUsers(int choice) Sets how to display users- Parameters:
choice
- field to show (user name = 0, full name = 1, email = 2)
-
getRepresentationOfUsers
public int getRepresentationOfUsers()Gets how to display users- Returns:
- field to show (user name = 0, full name = 1, email = 2)
-