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:
 java.lang.Cloneable
@OpenApiAll public class TeamworkOptionsGroup extends com.nomagic.magicdraw.core.options.VersionedOptionsGroupTeamwork options. 
- 
- 
Field Summary
Fields Modifier and Type Field Description static booleanDEFAULT_NEW_PROJECT_VERSION_CHECKDefault value for New Project Version Notificationstatic java.lang.StringDEFAULT_NEW_PROJECT_VERSION_CHECK_INTERVAL_IN_SECONDSstatic intDEFAULT_PROJECT_USAGES_UPDATE_SHOW_NOTIFICATION_INDEXDefault setting when to show notification about available project usages updates to latest versionprivate static intDEFAULT_USERS_REPRESENTATION_INDEXDefault setting how to display usersstatic java.lang.StringIDstatic java.lang.StringINCLUDE_VERSION_INTO_ELEMENT_URL_ASKstatic java.lang.StringINCLUDE_VERSION_INTO_ELEMENT_URL_DO_NOT_INCLUDEstatic java.lang.StringINCLUDE_VERSION_INTO_ELEMENT_URL_INCLUDEprivate static java.lang.String[]INVISIBLEstatic java.util.ListPROJECT_USAGES_UPDATE_SHOW_NOTIFICATION_OPTION_CHOICESList of options when to show notification about available project usages updates to latest versionstatic java.lang.StringPROJECTS_TREE_TABLE_MODE_FLATMode of teamwork projects tree table when only projects are displayed in flat list.static java.lang.StringPROJECTS_TREE_TABLE_MODE_ORIGINALMode of teamwork projects tree table when categories and projects are displayed in tree form, no presentation modifications are made to original structurestatic java.util.ListUSERS_REPRESENTATION_CHOICESList of options how to display usersstatic intUSERS_REPRESENTATION_EMAILDisplay user email optionstatic intUSERS_REPRESENTATION_FULL_NAMEDisplay full user name optionstatic intUSERS_REPRESENTATION_USER_NAMEDisplay user name option 
- 
Constructor Summary
Constructors Constructor Description TeamworkOptionsGroup() 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidaddAuthServerNameIntoServerNames(java.lang.String latestName)private voidaddServerNameIntoServerNames(java.lang.String latestName)protected voidafterLoad(com.nomagic.magicdraw.lic.MDVersion version, boolean pluginsLoaded)voidclearMUUserPassword()Clears user password to MU serverjava.lang.StringgetAuthServerName()gets Last used authentication server namejava.util.List<java.lang.String>getAuthServerNames()Returns the list of authentication server names, which where entered by user, and successfully connected.com.nomagic.ui.banners.BannergetBanner()booleangetCreateMountRelationshipsOnImportToCEDW()Gets value of this property.java.util.List<java.lang.String>getDefaultServerNames()java.lang.StringgetIncludeVersionIntoURLMode()java.lang.StringgetLastCameoResourceId()Returns last cameo resource ID.java.util.Collection<java.lang.String>getLastExpandedCategories()Gets collection of identifiers of categories that were recently expanded.java.util.Collection<java.lang.String>getLastExpandedProjectUsagesCategories()Gets collection of identifiers of project usages categories that were recently expanded.java.lang.StringgetLastSelectedEsiOfflineServerID()Gets last selected esi offline server.java.lang.StringgetLastUsedEsiBranches()java.lang.StringgetLoginToken()gets login token to serverjava.lang.StringgetMUServerName()gets Last used server namejava.lang.StringgetMUUserLogin()gets user login to MU serverjava.lang.StringgetMUUserPassword()gets user password to MU serverintgetNewProjectVersionCheckInterval()Returns currently selected interval between version checks.java.lang.StringgetProjectsTreeTableMode()Gets the teamwork projects tree table display mode.intgetProjectUsagesUpdateNotification()Gets when to show notification about available project usages updates to latest version.intgetRepresentationOfUsers()Gets how to display usersjava.util.List<java.lang.String>getServerNames()Returns the list of server names, which where entered by user, and successfully connected.java.lang.StringgetWebAppServerUrl()Gets WebApp URL.booleanisAutoCommitOnProjectMigration()Determines whether projects should be auto-commit after project migration to a new version.booleanisAutoLoginToMU()is login to MU server autobooleanisEmptyTeamworkProjectsCategoriesVisible()Indicates if teamwork projects tree table shall display an empty categories as well.booleanisEnable3DExperience()booleanisEnableLockingWithoutForceUpdate()Determines whether elements can be locked without update project.booleanisKeepLocks()booleanisNewProjectVersionCheckEnabled()Method checks whether the New Project Version Notification property is enabledbooleanisRememberServerBetweenSessions()Is server will be remembered between sessionsbooleanisRememberUserNameBetweenSessions()Is entered user login name will be remembered between sessions.booleanisShowModuleVersionsConflictWarning()booleanisSSOLoginTabVisible()Determines whether sso login tab should be visible.booleanisUseSecureConnection()private static voidmigratePropertyValue(AbstractPropertyOptionsGroup optionsGroup, java.lang.String propertyId, java.util.function.Consumer<Property> propertyMigrator)voidsetAuthServerName(java.lang.String name)sets server name as a last used server name.voidsetAuthServerNames(java.util.List<java.lang.String> serverNames)Setter for Single Sign On server list (server names)voidsetAutoCommitOnProjectMigration(boolean autoCommit)Sets new value for theautoCommitOnProjectMigrationpropertyvoidsetAutoLoginToMU(boolean log)sets auto login to MU servervoidsetCreateMountRelationshipsOnImportToCEDW(boolean enable)Sets new value for this property.voidsetDefaultValues()Sets default values for the properties contained in this group.voidsetEmptyTeamworkProjectsCategoriesVisible(boolean visible)Sets if teamwork projects tree table shall display an empty categories as wellprivate voidsetEnable3DExperience(boolean value)voidsetEnableLockingWithoutForceUpdate(boolean enable)Sets new value for theisEnableLockingWithoutForceUpdate()propertyvoidsetIncludeVersionIntoURLMode(java.lang.String value)voidsetKeepLocks(boolean keepLocks)voidsetLastCameoResourceId(java.lang.String id)Sets last used cameo resource(project) ID.voidsetLastExpandedCategories(java.util.Collection<java.lang.String> categoryIds)Sets collection of identifiers of categories that were recently expanded.voidsetLastExpandedProjectUsagesCategories(java.util.Collection<java.lang.String> categoryIds)Sets collection of identifiers of project usages categories that were recently expanded.voidsetLastSelectedEsiOfflineServerID(java.lang.String serverId)Sets server identifiers that was last selected as offline server.voidsetLastUsedEsiBranches(java.lang.String info)voidsetLoginToken(java.lang.String token)sets login token to servervoidsetMUServerName(java.lang.String name)sets server name as a last used server name.voidsetMUUserLogin(java.lang.String name)sets user login to MU servervoidsetMUUserPassword(java.lang.String name)sets user password to MU servervoidsetMUUserPasswordAndEncrypt(java.lang.String psw)set encrypted passwordvoidsetNewProjectVersionCheckInterval(java.lang.String initialValue)Sets the initial interval between version checks for.voidsetNewProjectVersionNotification(boolean value)Sets whether the New Project Version Notification should be set to enabled or not.voidsetProjectsTreeTableMode(java.lang.String value)Sets the teamwork projects tree table display mode.voidsetProjectUsagesUpdateNotification(int choice)Sets when to show notification about available project usages updates to latest version.voidsetRememberServerBetweenSessions(boolean remember)Sets that server will be remembered during sessions.voidsetRememberUserNameBetweenSessions(boolean remember)Sets that login will be remembered during sessions.voidsetRepresentationOfUsers(int choice)Sets how to display usersvoidsetServerNames(java.util.List<java.lang.String> serverNames)Setter for team server list (server names)voidsetShowModuleVersionsConflictWarning(boolean show)voidsetSSOLoginTabVisible(boolean visible)Sets new value for theSSOLoginTabVisiblepropertyvoidsetUseSecureConnection(boolean use)voidsetWebAppServerUrl(java.lang.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 Detail
- 
ID
public static final java.lang.String ID
- See Also:
 - Constant Field Values
 
 
- 
INVISIBLE
private static final java.lang.String[] INVISIBLE
 
- 
DEFAULT_NEW_PROJECT_VERSION_CHECK
public static final boolean DEFAULT_NEW_PROJECT_VERSION_CHECK
Default value for New Project Version Notification- See Also:
 - Constant Field Values
 
 
- 
DEFAULT_NEW_PROJECT_VERSION_CHECK_INTERVAL_IN_SECONDS
public static final java.lang.String DEFAULT_NEW_PROJECT_VERSION_CHECK_INTERVAL_IN_SECONDS
- See Also:
 - Constant Field Values
 
 
- 
DEFAULT_PROJECT_USAGES_UPDATE_SHOW_NOTIFICATION_INDEX
public static final int DEFAULT_PROJECT_USAGES_UPDATE_SHOW_NOTIFICATION_INDEX
Default setting when to show notification about available project usages updates to latest version- See Also:
 - Constant Field Values
 
 
- 
INCLUDE_VERSION_INTO_ELEMENT_URL_ASK
public static final java.lang.String INCLUDE_VERSION_INTO_ELEMENT_URL_ASK
- See Also:
 - Constant Field Values
 
 
- 
INCLUDE_VERSION_INTO_ELEMENT_URL_INCLUDE
public static final java.lang.String INCLUDE_VERSION_INTO_ELEMENT_URL_INCLUDE
- See Also:
 - Constant Field Values
 
 
- 
INCLUDE_VERSION_INTO_ELEMENT_URL_DO_NOT_INCLUDE
public static final java.lang.String INCLUDE_VERSION_INTO_ELEMENT_URL_DO_NOT_INCLUDE
- See Also:
 - Constant Field Values
 
 
- 
PROJECT_USAGES_UPDATE_SHOW_NOTIFICATION_OPTION_CHOICES
public static final java.util.List 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
public static final java.lang.String 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:
 - Constant Field Values
 
 
- 
PROJECTS_TREE_TABLE_MODE_FLAT
public static final java.lang.String PROJECTS_TREE_TABLE_MODE_FLAT
Mode of teamwork projects tree table when only projects are displayed in flat list.- See Also:
 - Constant Field Values
 
 
- 
USERS_REPRESENTATION_CHOICES
public static final java.util.List USERS_REPRESENTATION_CHOICES
List of options how to display users 
- 
USERS_REPRESENTATION_USER_NAME
public static final int USERS_REPRESENTATION_USER_NAME
Display user name option- See Also:
 - Constant Field Values
 
 
- 
USERS_REPRESENTATION_FULL_NAME
public static final int USERS_REPRESENTATION_FULL_NAME
Display full user name option- See Also:
 - Constant Field Values
 
 
- 
USERS_REPRESENTATION_EMAIL
public static final int USERS_REPRESENTATION_EMAIL
Display user email option- See Also:
 - Constant Field Values
 
 
- 
DEFAULT_USERS_REPRESENTATION_INDEX
private static final int DEFAULT_USERS_REPRESENTATION_INDEX
Default setting how to display users- See Also:
 - Constant Field Values
 
 
 - 
 
- 
Method Detail
- 
setDefaultValues
public void setDefaultValues()
Description copied from class:AbstractPropertyOptionsGroupSets default values for the properties contained in this group. Overriding classes should set default values to the properties.- Overrides:
 setDefaultValuesin classcom.nomagic.magicdraw.core.options.VersionedOptionsGroup
 
- 
setEnable3DExperience
private void setEnable3DExperience(boolean value)
 
- 
isEnable3DExperience
public boolean isEnable3DExperience()
 
- 
afterLoad
protected void afterLoad(com.nomagic.magicdraw.lic.MDVersion version, boolean pluginsLoaded)- Overrides:
 afterLoadin 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
public void setMUServerName(java.lang.String name)
sets server name as a last used server name. 
- 
setAuthServerName
public void setAuthServerName(java.lang.String name)
sets server name as a last used server name.- Parameters:
 name- server name
 
- 
getMUServerName
public java.lang.String getMUServerName()
gets Last used server name 
- 
getAuthServerName
public java.lang.String getAuthServerName()
gets Last used authentication server name 
- 
setMUUserLogin
public void setMUUserLogin(java.lang.String name)
sets user login to MU server 
- 
getMUUserLogin
public java.lang.String getMUUserLogin()
gets user login to MU server 
- 
setLoginToken
public void setLoginToken(java.lang.String token)
sets login token to server- Parameters:
 token- authentication token
 
- 
getLoginToken
public java.lang.String getLoginToken()
gets login token to server 
- 
getMUUserPassword
public java.lang.String getMUUserPassword()
gets user password to MU server- Returns:
 - secret password
 
 
- 
setMUUserPasswordAndEncrypt
public void setMUUserPasswordAndEncrypt(java.lang.String psw)
set encrypted password 
- 
setMUUserPassword
public void setMUUserPassword(java.lang.String name)
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
public void setLastUsedEsiBranches(java.lang.String info)
 
- 
getLastUsedEsiBranches
public java.lang.String getLastUsedEsiBranches()
 
- 
getServerNames
public java.util.List<java.lang.String> getServerNames()
Returns the list of server names, which where entered by user, and successfully connected. 
- 
getAuthServerNames
public java.util.List<java.lang.String> getAuthServerNames()
Returns the list of authentication server names, which where entered by user, and successfully connected.- Returns:
 - list of servers used earlier
 
 
- 
addAuthServerNameIntoServerNames
private void addAuthServerNameIntoServerNames(java.lang.String latestName)
 
- 
setAuthServerNames
public void setAuthServerNames(java.util.List<java.lang.String> serverNames)
Setter for Single Sign On server list (server names) 
- 
getDefaultServerNames
public java.util.List<java.lang.String> getDefaultServerNames()
 
- 
addServerNameIntoServerNames
private void addServerNameIntoServerNames(java.lang.String latestName)
 
- 
setServerNames
public void setServerNames(java.util.List<java.lang.String> serverNames)
Setter for team server list (server names) 
- 
getIncludeVersionIntoURLMode
public java.lang.String getIncludeVersionIntoURLMode()
 
- 
setIncludeVersionIntoURLMode
public void setIncludeVersionIntoURLMode(java.lang.String value)
 
- 
getLastExpandedCategories
public java.util.Collection<java.lang.String> getLastExpandedCategories()
Gets collection of identifiers of categories that were recently expanded.- Returns:
 - collection of category id.
 
 
- 
setLastExpandedCategories
public void setLastExpandedCategories(java.util.Collection<java.lang.String> categoryIds)
Sets collection of identifiers of categories that were recently expanded. 
- 
getLastExpandedProjectUsagesCategories
public java.util.Collection<java.lang.String> getLastExpandedProjectUsagesCategories()
Gets collection of identifiers of project usages categories that were recently expanded.- Returns:
 - collection of category id.
 
 
- 
setLastExpandedProjectUsagesCategories
public void setLastExpandedProjectUsagesCategories(java.util.Collection<java.lang.String> categoryIds)
Sets collection of identifiers of project usages categories that were recently expanded. 
- 
getLastSelectedEsiOfflineServerID
@CheckForNull public java.lang.String getLastSelectedEsiOfflineServerID()
Gets last selected esi offline server.- Returns:
 - server id
 
 
- 
setLastSelectedEsiOfflineServerID
public void setLastSelectedEsiOfflineServerID(java.lang.String serverId)
Sets server identifiers that was last selected as offline server.- Parameters:
 serverId- server ID (esi server cluster ID)
 
- 
getProjectsTreeTableMode
public java.lang.String getProjectsTreeTableMode()
Gets the teamwork projects tree table display mode.- Returns:
 - mode
 - See Also:
 PROJECTS_TREE_TABLE_MODE_ORIGINAL,PROJECTS_TREE_TABLE_MODE_FLAT
 
- 
setProjectsTreeTableMode
public void setProjectsTreeTableMode(java.lang.String value)
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
public void setLastCameoResourceId(java.lang.String id)
Sets last used cameo resource(project) ID.- Parameters:
 id- unique id of resource.
 
- 
getLastCameoResourceId
@CheckForNull public java.lang.String 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 theautoCommitOnProjectMigrationproperty- 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:
 trueif project should be auto-committed after migration,falseif not
 
- 
setSSOLoginTabVisible
public void setSSOLoginTabVisible(boolean visible)
Sets new value for theSSOLoginTabVisibleproperty- Parameters:
 visible- the value to set
 
- 
isSSOLoginTabVisible
public boolean isSSOLoginTabVisible()
Determines whether sso login tab should be visible.- Returns:
 trueif login tab should be visible,falseif not
 
- 
setNewProjectVersionCheckInterval
public void setNewProjectVersionCheckInterval(java.lang.String initialValue)
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(truemeans enabled)
 
- 
isNewProjectVersionCheckEnabled
public boolean isNewProjectVersionCheckEnabled()
Method checks whether the New Project Version Notification property is enabled- Returns:
 trueif 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:
 falseif 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.
 
 
- 
migratePropertyValue
private static void migratePropertyValue(AbstractPropertyOptionsGroup optionsGroup, java.lang.String propertyId, java.util.function.Consumer<Property> propertyMigrator)
 
- 
setWebAppServerUrl
public void setWebAppServerUrl(java.lang.String url)
Sets WebApp URL.- Parameters:
 url- new URL
 
- 
getWebAppServerUrl
@CheckForNull public java.lang.String 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)
 
 
 - 
 
 -