fr.obeo.dsl.viewpoint.collab.internal.export.move.feature.extension.srm=false
.
fr.obeo.dsl.viewpoint.collab.user.profile.manager.CollabUserProfileManagerConfig
has new accessors method
getPermissionSemanticFileExtensions
and
setPermissionSemanticFileExtensions
concerning the new property defining the semantic file extensions that can be automatically added in a new server with user profile as permission for semantic resources.
fr.obeo.dsl.viewpoint.collab.ui.user.profile.design.services.UserProfileModelerServices.isAdministrator(User)
has been added in the User Profile VSM services to check if a user is an administrator.
fr.obeo.dsl.viewpoint.collab.user.profile.UserProfileUtil.initializeRoles(Realm, List<String>)
has been added in order to initialize a realm with a role «MODIFY_SEMANTIC_ROLE» with a resource permission for each file extension of the string list parameter.
fr.obeo.dsl.viewpoint.collab.api.CollabCredentialsProvider.getSecureStorageKey()
has been added in order to extend this provider and provide a new key for it.
fr.obeo.dsl.viewpoint.collab.importer.api.ImporterConstants.CLEAR_STORED_CREDENTIALS
has been added for the ‹Importer Credentials› application in order to have a boolean argument meaning that the stored Importer credentials needs to be cleared.
fr.obeo.dsl.viewpoint.collab.server.usermgmt.internal.auth.ldap.LDAPAuthenticatorConfig
in order to manage LDAP without anonymous binding:
KEY_USER_SEARCH_FILTER
,
KEY_USER_SEARCH_BASE
,
KEY_MANAGER_DN
and
KEY_MANAGER_PASSWORD
. The constants are private but they have accessors.
fr.obeo.dsl.viewpoint.collab.server.usermgmt.internal.auth.ldap.LDAPAuthenticator.authenticateUsingManager(String, char[])
has been added in order to be able to authenticate using an LDAP that does not allow anonymous bindings.
fr.obeo.dsl.viewpoint.collab.api.preferences.CDOSiriusPreferenceKeys.getInitializationDefaultValue()
has been added to return a default value for each key. This value is used to initialize default preferences (which can be overriden by products or by plugin customization mecanisms), it can also be used if no value has been set for the given key.
fr.obeo.dsl.viewpoint.collab.ui.user.profile.design.preferences.AdminPermissionPreferenceKeys.getInitializationDefaultValue()
has been added to return a default value for each key. This value is used to initialize default preferences (which can be overriden by products or by plugin customization mecanisms), it can also be used if no value has been set for the given key.
fr.obeo.dsl.viewpoint.collab.ui.api.wizards.SelectRemoteResourcePage.processAirdResource(String, CDOResourceNode)
method has been added to let specialized class to provide an additional processing.
fr.obeo.dsl.viewpoint.collab.api.preferences.CDOSiriusPreferenceKeys.getType()
has been removed since no known usage has been found and some type were not properly set.
fr.obeo.dsl.viewpoint.collab.ui.user.profile.design.preferences.AdminPermissionPreferenceKeys.getType()
has been removed since no known usage has been found and some type were not properly set.
DRepresentationDescriptor
, it is no longer possible to edit items of a table or tree representation concurrently. Any change locks the representation.
fr.obeo.dsl.viewpoint.collab.api.CDOExporter.CDOExporter(CDOTransaction)
constructor has been added. If this constructor is used, it is up to the caller to close the CDOTransaction.
fr.obeo.dsl.viewpoint.collab.server.warmup
plugin provides an
org.eclipse.emf.cdo.spi.server.IAppExtension
which reacts to repository start-up and loads all found resources which are direct children of the projects folder (.representation folder and .srm representation resources are excluded). This initializes the revision manager caches at repository start-up and speeds up the session opening of the first connection to each project. This behavior can be disabled with the system property
-Dfr.obeo.dsl.viewpoint.collab.server.enabledWarmup=false
.
fr.obeo.dsl.viewpoint.collab.importer.api.ImporterConstants.XML_IMPORT_FILE_PATH
has been added to launch the importer from an XML extraction of the repository. An XML extraction of the repository can be manually obtained by executing the
cdo export
command on the server osgi console.
CDOSavingPolicy
by default with a possibility used by several product to select the
IsModifiedCDOSavingPolicy
with the use of a system property. Now a new internal policy handles the
CDOResources
and delegates the management of local resources to the saving policy declared to Sirius. The encapsulation is done when
setSavingPolicy(SavingPolicy)
is called on
fr.obeo.dsl.viewpoint.collab.api.remotesession.CollaborativeSession
with a policy which does not inherit from
fr.obeo.dsl.viewpoint.collab.api.savingpolicy.CollaborativeSavingPolicy
otherwise the specific given collaborative saving policy will be used.
Collab 13.0.0 introduces partial support for internationalization: all literal strings from the runtime part of Collab are now externalized and can be localized by third parties by providing the appropriate «language packs» as OSGi fragments. Note that this does not concern the server components, the user profile component, the importer application, or the parts of the UI inherited from Eclipse/EMF/GEF/GMF/Sirius and other libraries and frameworks used by Collab.
Some API changes were required to enable this. Most breaking changes concern the plug-in/activator classes from each bundle. They are:
fr.obeo.dsl.viewpoint.collab.CDOSiriusActivator
is still an OSGi
BundleActivator
, but now it extends
org.eclipse.emf.common.EMFPlugin.EclipsePlugin
. It remains the actual bundle activator of the plugin. An internal class
CDOSiriusActivator.CDOSiriusPlugin
has been added as a subclass of
org.eclipse.emf.common.EMFPlugin
.
fr.obeo.dsl.viewpoint.collab.ui.api.CDOSiriusUIActivator
is still an OSGi
BundleActivator
, but now it extends
fr.obeo.dsl.viewpoint.collab.ui.api.EclipseUIPluginActivator
. It remains the actual bundle activator of the plugin. An internal class
CDOSiriusUIActivator.CDOSiriusUIPlugin
has been added as a subclass of
org.eclipse.emf.common.EMFPlugin
.
fr.obeo.dsl.viewpoint.collab.activity.model.api.activitymetadata.ActivityMetadataActivator
has been renamed into
fr.obeo.dsl.viewpoint.collab.activity.model.api.activitymetadata.ActivityMetadataPlugin
and is no longer an OSGi bundle activator (hence the name change, to avoid confusion). Instead it extends
org.eclipse.emf.common.EMFPlugin
. The actual bundle activator is the new internal class
ActivityMetadataPlugin.Implementation
.
fr.obeo.dsl.viewpoint.collab.ui.diagram.Activator
has been renamed into
fr.obeo.dsl.viewpoint.collab.ui.diagram.CollabDiagramUIPlugin
and is no longer an OSGi bundle activator (hence the name change, to avoid confusion). Instead it extends
org.eclipse.emf.common.EMFPlugin
. The actual bundle activator is the new internal class
CollabDiagramUIPlugin.Implementation
.
fr.obeo.dsl.viewpoint.collab.ui.mylyn.CollabMylynActivator
has been renamed into
fr.obeo.dsl.viewpoint.collab.ui.mylyn.CollabMylynPlugin
and is no longer an OSGi bundle activator (hence the name change, to avoid confusion). Instead it extends
org.eclipse.emf.common.EMFPlugin
. The actual bundle activator is the new internal class
CollabMylynPlugin.Implementation
.
Additional non-breaking changes:
plugin.properties
file. These (translated) messages are available at runtime as static fields of new
Messages
classes, added to all concerned bundles (always in the same package as their plug-in/activator class). The concerned bundles are:
fr.obeo.dsl.viewpoint.collab
fr.obeo.dsl.viewpoint.collab.ui
fr.obeo.dsl.viewpoint.collab.ui.activity
fr.obeo.dsl.viewpoint.collab.ui.diagram
fr.obeo.dsl.viewpoint.collab.ui.mylyn
fr.obeo.dsl.viewpoint.collab.activity.model
fr.obeo.dsl.viewpoint.collab
fr.obeo.dsl.viewpoint.collab.api.CDORepositoryManager
now has a method
getNumberOfOtherConnectedUsers
that returns the number of connected user (ignoring the system user).
fr.obeo.dsl.viewpoint.collab.api.CDORepositoryManager
now has a method
getConnectedUsers
that returns a message (String) presenting the connected user. If they are identified, then it’s a list of user IDs. Otherwise the message is the number of anonymous users currently connected to the repository.
fr.obeo.dsl.viewpoint.collab.api.CDORepositoryManager
now has a method
getOrCreateTransaction(Session, Map<String, Object>)
that allows to pass options used to initialize CDOTransaction options. This option
fr.obeo.dsl.viewpoint.collab.api.CDORepositoryManager.DEACTIVATE_LOCK_MECHANISM
has been added to deactivate lock mechanism. There is no more implicit locks taken.
fr.obeo.dsl.viewpoint.collab.api.savingpolicy.CollaborativeSavingPolicy
has two new methods
addRepresentationToRefreshBeforeCommit
and
addRepresentationToRefreshBeforeCommit
. They allow to indicate that some
DRepresentation
needs to refreshed before commit. Notice that it will only be refresh representations that have the LOCKED BY ME lock status. Those method already existed in the previous internal implementations of collaborative saving policy.
fr.obeo.dsl.viewpoint.collab.api.image.RemoteImageRegistryService.IMAGES_RESOURCE_NAME
is new constant to declare the name of the CDOResource containing shared images at the top level of the repository. It is now used instead of
org.eclipse.sirius.diagram.ui.business.api.image.ImageSelector.IMAGES_RESOURCE_NAME
.
fr.obeo.dsl.viewpoint.collab.api.util.Couple.clone()
has been removed. The constructor
fr.obeo.dsl.viewpoint.collab.api.util.Couple.Couple(Couple<K, V>)
can now be used instead. This change has been done according to Sonar rule
squid:S2975 .
fr.obeo.dsl.viewpoint.collab.activity
fr.obeo.dsl.viewpoint.collab.activity.model.api.activitymetadata.CommitMetadataExporter
have a new boolean parameter to choose if the changes associated to the commit are exported or not. These methods are
export(CDOCommitInfo, CDOCommitInfo, boolean)
,
export(final CDOSession, Instant , Instant , boolean)
,
exportToHead(final CDOSession, Instant, boolean)
,
exportAll(final CDOSession, boolean)
and
exportTo(CDOSession, Instant, boolean)
. The implementation classes
fr.obeo.dsl.viewpoint.collab.activity.model.api.activitymetadata.CDOCommitMetadataExporter
and
fr.obeo.dsl.viewpoint.collab.activity.model.api.activitymetadata.SquashingCdoCommitMetadataExporter
are changed consequently.
fr.obeo.dsl.viewpoint.collab.importer
fr.obeo.dsl.viewpoint.collab.importer.api.ImporterCDOExporter.java
has been added to be able to trigger the import of every project of a CDO repository from an application.
fr.obeo.dsl.viewpoint.collab.importer.api.ImporterConstants.java
has been added to list each arguments available for the
Importer application.
fr.obeo.dsl.viewpoint.collab.ui
fr.obeo.dsl.viewpoint.collab.ui.api.tester.CollabSessionPropertyTester
now has a property SHARED_SESSION_PROP to check if a session is shared.
fr.obeo.dsl.viewpoint.tests.collab.server
CollabTestServer.start(boolean)
has been added. The boolean parameter allows to force the server starting to drop the table of the database or to not drop it regarding its value. It overrides the cleanDB parameter given in the constructor.
fr.obeo.dsl.viewpoint.tests.collab.support
AbstractDiagramCollaborativeTest.restartServer(boolean)
has been added and allows to restart the server and to clean the database before or not regarding the parameter value.
fr.obeo.dsl.viewpoint.tests.collab.support.api.CollaborativeManager.setInteractiveAuthentication(boolean)
has been added and allows to change the interactive authentication status.
correctly added/removed into/from the resourceSet and the owning CDOResourceFolder. By default the srm management is enabled but can be disabled with the system property
fr.obeo.dsl.viewpoint.collab.disableSrmResourceManagementInUndoRedo=true
fr.obeo.dsl.viewpoint.collab
fr.obeo.dsl.viewpoint.collab.api.commit.info.CDOCommitInfoChange
has been added to decorate the impacted objects in the changes viewer of the Commit History View.
fr.obeo.dsl.viewpoint.collab.api.AbstractImporterExporter
to ease subclasses to provide their customized behavior:
Map<EObject, EObject> copyModel(CDORepositoryManager repositoryManager, boolean replaceExistingOnes, boolean exportWorkspaceImages, Map<String, String> projectNameReplacement,IProgressMonitor monitor, Set<EObject> allRootsToCopy, Set<Resource> resourcesUsedAsSources)
has been extracted from
execute()
. It is called at the end of the
execute
method and does all the model copy and transformation.
void loadAllRepresentations(ResourceSet sourceResourceSet)
has been extracted from
loadResourcesUsedAsSources
and is now called just after this method in
execute
.
fr.obeo.dsl.viewpoint.collab.api.commit.description.CommitDescriptionParticipant.getNonActivationMessage(CDOTransaction)
method has been replaced by
getWarningMessage(CDOTransaction, boolean)
which handles more general cases.
fr.obeo.dsl.viewpoint.collab.api.AbstractImporterExporter.execute(Set<URI>, CDORepositoryManager, boolean, boolean, Map<String, String>, IProgressMonitor)
has lost the boolean updateXmiid parameter.
fr.obeo.dsl.viewpoint.collab.api.AbstractImporterExporter.completeProcess(Set<Resource>, CDORepositoryManager, Set<Resource>, Map<EObject, EObject>, boolean, IProgressMonitor)
fr.obeo.dsl.viewpoint.collab.api.CDOExporter.completeProcess(Set<Resource>, CDORepositoryManager, Set<Resource>, Map<EObject, EObject>, boolean, IProgressMonitor)
has lost the boolean updateXmiid parameter.
fr.obeo.dsl.viewpoint.collab.api.CDOExporter.exportResourcesFromRepository(Set<URI>, CDORepositoryManager, boolean, boolean, Map<String, String>, IProgressMonitor)
has lost the boolean updateXmiid parameter.
fr.obeo.dsl.viewpoint.collab.api.CDOImporter.completeProcess(Set<Resource>, CDORepositoryManager, Set<Resource>, Map<EObject, EObject>, boolean, IProgressMonitor)
has lost the boolean updateXmiid parameter.
fr.obeo.dsl.viewpoint.collab.api.CDOImporter.importLocalFilesIntoRepository(Set<URI>, CDORepositoryManager, boolean, boolean, Map<String, String>, IProgressMonitor)
has lost the boolean updateXmiid parameter.
AbstractImporterExporter.handleXmiIds(Set<Resource> , Set<Resource> , Map<EObject, EObject> , boolean ,boolean , IProgressMonitor )
and its implementation in
CDOExporter
CDOImporter
have been removed.
fr.obeo.dsl.viewpoint.collab.api.commit.description.CommitDescriptionProvider
class,
getResultFromSelectedParticipant(CDOTransaction , String participantId)
has been removed,
getCommitDescriptionParticipantUserWarning(CDOTransaction)
has been added to get either explicitly selected participant or the first that answers true to canProvide().
fr.obeo.dsl.viewpoint.collab.api.commit.description.CommitDescriptionResult
class,
hasWarning()
,
getWarningMessage()
and
setWarning(String)
have been removed. The warning message is no longer hold by the
CommitDescriptionResult
but provided to the dialog box.
fr.obeo.dsl.viewpoint.collab.ui
fr.obeo.dsl.viewpoint.collab.ui.api.views.CommitInfosView
the following methods and classes have been added:
forceUpdate()
: To force the view update according to the last selected element in the workbench.
setSynchronized(boolean)
: To set whether the Commit History View should be linked with the selection.
updateFilter(String)
: To set the Commit History View text filter for filtering the commit list.
setTreeView(boolean)
: To set whether the Commit History View changes viewer layout should be a tree or flat.
CommitInfosProvider
: This provider is used by the CommitInfosView to retrieve to commit list.
fr.obeo.dsl.viewpoint.collab.ui.api.IImageKeys
,
OVR_DELETED_DECORATOR
,
OVR_ADDED_DECORATOR
and
OVR_MODIFIED_DECORATOR
have been added to decorate the changed object in the Commit History according to the change kind.
fr.obeo.dsl.viewpoint.collab.ui.api.dialogs.CommitDescriptionDialog constructor
has a new string parameter for the warning message content.
fr.obeo.dsl.viewpoint.tests.collab.support
ResourceToUploadKind
has been added to
fr.obeo.dsl.viewpoint.tests.collab.support.api.CollaborativeManager
. It is used as parameter of the new method
uploadResourcesOnRepository(ResourceToUploadKind resourceKind, Map<String, String> projectPathReplacement, String... resourcesToUpload)
and indicates in which kind of URI the given resourcesToUpload paths should be transformed. The other
uploadResourcesOnRepository
methods without this parameter use
ResourceToUploadKind.PLATFORM_PLUGIN
.
fr.obeo.dsl.viewpoint.tests.collab.support.api.CollaborativeManager.reInit()
has been added to allow tests to close all active transactions and reinit the RepositoryManager, resourceSet, the domain,the active transaction and the remote user.
fr.obeo.dsl.viewpoint.tests.collab.support.api.AbstractDiagramCollaborativeTest
now creates its
collaborativeManager
in the constructor. The new protected method
createCollaborativeManager(boolean authenticationActivated, boolean shouldBeInteractive, String userProfilePath, boolean branchingActivated, boolean auditingActivated)
allows subclasses to provide their own subclass of
fr.obeo.dsl.viewpoint.tests.collab.support.api.CollaborativeManager
.
fr.obeo.dsl.viewpoint.collab
about xmiids management removal, some methods have been removed:
fr.obeo.dsl.viewpoint.tests.collab.support.api.CollaborativeManager.uploadResourcesOnRepository(boolean updateXmiIdsResource, String...)
fr.obeo.dsl.viewpoint.tests.collab.support.api.AbstractDiagramCollaborativeTest.uploadResourcesOnRepository(boolean updateXmiIdsResource, Map<String, String>, String...)
fr.obeo.dsl.viewpoint.tests.collab.utils.AbstractCarsDiagramCollaborativeTest.genericCollaborativeSetUp(final boolean updateXmiIdsResource, Collection<String>)
-Dfr.obeo.dsl.viewpoint.collab.api.export.without.check=true
aird
resource is now locked during save. If this element is locked when save is called, a message dialog is shown to ask the user to retry later. The behavior can be disable by using the system property
-Dfr.obeo.dsl.viewpoint.collab.disableSaveProtectionByRemoteAirdLocking=false
fr.obeo.dsl.viewpoint.collab
fr.obeo.dsl.viewpoint.collab.api.AbstractImporterExporter.AbstractImporterExporter(CDOTransaction)
has been added to provide a
CDOTransaction
(like the one created on test connection) for the execution of the import/export instead of creating a new one.
fr.obeo.dsl.viewpoint.collab.api.AbstractImporterExporter.processChecksBeforeExecution(Set<EObject>, boolean)
has been added to have some validations before authorizing an export with resource override.
fr.obeo.dsl.viewpoint.collab.api.CDOImporter.processChecksBeforeExecution(Set<EObject>, boolean)
has been added to have some validations before authorizing an import with resource override. CDOImporter overrides this method to check if there is no other session connected to the repository before allowing to override resources.
fr.obeo.dsl.viewpoint.collab.api.CDOExport.processChecksBeforeExecution(Set<EObject>, boolean)
has been added to have some validations before authorizing an export with resource override. There is no additional behavior needed in this scenario.
fr.obeo.dsl.viewpoint.collab.ui
fr.obeo.dsl.viewpoint.collab.ui.api.wizards.ExportModelToRemoteWizard.performPostExportProcesses()
has been added to allow inheriting classes to add some post processes after the export action.
fr.obeo.dsl.viewpoint.tests.collab.support.api.AbstractDiagramCollaborativeTest.genericCollaborativeSetUp(boolean, Collection<String>, Set<String>)
has been added a boolean
loadVsmAndActivateViewpointsOnLocalAndRemoteUser
allowing to deactivate VSM and their viewpoints activation now occurring in the method by default.
org.eclipse.emf.cdo.common.lock.CDOLockChangeInfo.CDOViewLocksChangedEvent
and spread using the CDO API.
fr.obeo.dsl.viewpoint.collab
fr.obeo.dsl.viewpoint.collab.api.preferences.CDOSiriusPreferenceKeys.PREF_SUPPORT_LEGACY_MODE
has been added. It is required to activate the support of
CDO Legacy mode. Note that the activation of this preference might have an impact on performances for
CDO native models. The default value is false.
fr.obeo.dsl.viewpoint.collab.api.util.CDOSiriusUtil.isInCDOResource(EObject)
and
fr.obeo.dsl.viewpoint.collab.api.util.CDOSiriusUtil.isInCDOResource(CDOObject)
have been added to check if an EObject/CDOObjct belongs to a CDOResource in a faster way than checking
obj.eResource() instanceof CDOResource: the methods use the CDOState and calls eResource() only when it does not allow to infer if the resource is a CDOResource.
fr.obeo.dsl.viewpoint.collab.api.exception.ForbiddenCharacterException
is raised when invalid XML 1.0 character is detected.
fr.obeo.dsl.viewpoint.collab.api.AbstractImporterExporter.updateRepresentationTargetResources(Set<Resource>, Set<Resource>, Map<EObject, EObject>)
has been added to update the target resource in which the representation will be stored.
fr.obeo.dsl.viewpoint.collab.api.preferences.CDOSiriusPreferenceKeys.PREF_CREATE_SHARED_REP_IN_SEPARATE_RESOURCE
preference has been added to indicate whether remote representations should be held in separate resources. By default, this preference is initialized at true.
fr.obeo.dsl.viewpoint.collab/src/fr/obeo/dsl/viewpoint/collab/api/lock/LockOperation.java
interface has been added to represent pre/post actions for lock operations such as Acquire lock or Release lock.
fr.obeo.dsl.viewpoint.collab.lockoperation
extension point has been added so that pre/post actions for lock operations can be contributed.
fr.obeo.dsl.viewpoint.collab.api.AbstractImporterExporter
and
fr.obeo.dsl.viewpoint.collab.api.CDOImporter
, the method
updateTargetSemanticResourceDescriptors
has been renamed to
updateTargetResourceDescriptors
.
fr.obeo.dsl.viewpoint.collab.api.lock.CDOLockListenerJob
does not listen to
org.eclipse.emf.cdo.session.remote.CDORemoteSessionMessage
anymore in favor of
org.eclipse.emf.cdo.common.lock.CDOLockChangeInfo.CDOViewLocksChangedEvent
instead. The methods
fr.obeo.dsl.viewpoint.collab.api.lock.CDOLockListenerJob.addMessage(CDORemoteSessionMessage)
and
fr.obeo.dsl.viewpoint.collab.api.lock.CDOLockListenerJob.processLockOrUnlockNotification(Collection, CDORemoteSessionMessage)
changed to
fr.obeo.dsl.viewpoint.collab.api.lock.CDOLockListenerJob.addChangeEvent(CDOViewLocksChangedEvent)
and
fr.obeo.dsl.viewpoint.collab.api.lock.CDOLockListenerJob.processLockOrUnlockEvent(Collection, CDOViewLocksChangedEvent)
fr.obeo.dsl.viewpoint.collab.api.lock.CDOLockListener
and
fr.obeo.dsl.viewpoint.collab.api.lock.LockMessageEncoder
have been removed in order to use the CDO notifications mechanism.
fr.obeo.dsl.viewpoint.collab.api.preferences.CDOSiriusPreferenceKeys.COLLABORATIVE_MODE_ACTIVATED
has been removed. The management of this preference was partially broken with no possibility to use plugin_customization.ini. The value was forced to true during
fr.obeo.dsl.viewpoint.collab
starting.
fr.obeo.dsl.viewpoint.collab.ui
fr.obeo.dsl.viewpoint.collab.ui.api.decorators.AbstractCDODecorator.getObjectKey(Object)
has been added to make customizable the way we determine the key used for the image cache.
fr.obeo.dsl.viewpoint.collab.api.preferences.CDOSiriusPreferenceKeys.PREF_LEGACY_MODEL_DETECTION
has been added. If true and if CDOSiriusPreferenceKeys.PREF_SUPPORT_LEGACY_MODE=false a check is done to know if a legacy(not CDO Native) semantic model is detected in connect wizard when creating a new shared project. A warning pop up is displayed and a warning is logged in that case. The preference default value is false, that is the detection is disabled.
fr.obeo.dsl.viewpoint.collab.ui.api.wizards.AbstractCreateLocalProjectRemoteWizard.postSessionCreation(Session, IProgressMonitor, Runnable)
signature has changed. The
Runnable
parameter has been added to execute more code after the session has been saved. It is currently used to close the session in case of legacy model detection.
ISessionViewExtension
loaded as early as possible.
fr.obeo.dsl.viewpoint.tests.collab
fr.obeo.dsl.viewpoint.tests.collab.utils.AbstractDiagramCollaborativeTest
:
getDesignResourcePath()
to initialize test environment with custom VSM, and
createRemoteRepresentation
and
getDialectEditorRefresher(DialectEditor)
which have been moved from subclasses.
fr.obeo.dsl.viewpoint.tests.collab.support
fr.obeo.dsl.viewpoint.tests.collab.support.utils.TestsUtilCollab
has been added with the utility methods:
fr.obeo.dsl.viewpoint.tests.collab.support.TestsUtilCollab.isCDONativeModeActive()
allowing to know if the runtime calling this method has the CDO native plugins present and loaded.
fr.obeo.dsl.viewpoint.tests.collab.support.TestsUtilCollab.waitForScheduledJobs(Object, IProgressMonitor)
allowing to wait the specific scheduled jobs to be completed.
fr.obeo.dsl.viewpoint.tests.collab.support.utils.TestsUtilCollab.isCreateSharedRepresentationInSeparateResource()
allowing to know if the split of remote representations in separate resources is activated (
CDOSiriusPreferenceKeys.PREF_CREATE_SHARED_REP_IN_SEPARATE_RESOURCE
).
fr.obeo.dsl.viewpoint.tests.collab.support.utils.TestsUtilCollab.setCreateSharedRepresentationInSeparateResource(boolean)
allowing to override
CDOSiriusPreferenceKeys.PREF_CREATE_SHARED_REP_IN_SEPARATE_RESOURCE
preference.
fr.obeo.dsl.viewpoint.tests.collab.support.api.remoteuser.AbstractRemoteUserAction.installXRefOnEObjectSRMResource(EObject)
has been added to install the cross referencer on the given EObject srm resource if it has not been done.
fr.obeo.dsl.viewpoint.tests.collab.support.api.asserts.MessageReceivedListener
has been renamed to
fr.obeo.dsl.viewpoint.tests.collab.support.api.asserts.CDOViewLocksChangedEventListener
.
fr.obeo.dsl.viewpoint.tests.collab.support.api.remoteuser.RemoteUser
uses now
fr.obeo.dsl.viewpoint.tests.collab.support.api.asserts.CDOViewLocksChangedEventListener
that cause a change in
fr.obeo.dsl.viewpoint.tests.collab.support.api.remoteuser.RemoteUser
.
Minor release without API changes
Using TLS, it is now possible to encrypt communication between the client and the CDO server. The certificate used on server side have to be created using algorithm compliant with TLS version 1.2.
You can find documentation in
Administrator Manual/Starting a Collaborative Server/Activate SSL connection.
LDAP can now be used to authenticate user. It can be used alone or simultaneously with authenticated server or user profile server.
LDAP Configuration allows
filter usage that can be used to limit authentication to a predefined list.
You can find documentation in
Administrator Manual/Starting a Collaborative Server/Using default Server configurations and
Administrator Manual/Starting a Collaborative Server/Configure LDAP authentication on the Server.
fr.obeo.dsl.viewpoint.collab
fr.obeo.dsl.viewpoint.collab.api.RepositoryConnectionException
now inherit of
RuntimeException
to avoid encapsulate this first exception by the second one when a
RepositoryConnectionException
can occurs and we need to dispatch it to give feedback to end-user.
CDORepositoryManagerRegistry.getRepositoryManager()
can throw
RepositoryConnectionException
and
LifecycleException
in case of unsuccessful connection to server, before these exceptions were simply logged.
fr.obeo.dsl.viewpoint.collab.CDOSiriusActivator.logForDebug(String)
has been added to allow debug message with a simple message (without an exception).
fr.obeo.dsl.viewpoint.collab.api.preferences.CDOSiriusPreferenceKeys.PREF_DISPLAY_AUTHENTICATION_REMEMBER_ME
indicates whether the ‹remember me› checkbox should be displayed on the authentication dialog. The default value is true.
fr.obeo.dsl.viewpoint.collab.server.usermgmt.api.auth.IAuthenticatorDelegate
to declare a delegator of IAuthenticator.
fr.obeo.dsl.viewpoint.collab.api.remotesession.CollaborativeSessionQuery
with a method
isPasswordToStore()
used to request information from the server about the authentication password storage.
fr.obeo.dsl.viewpoint.collab.ui.user.profile.design
fr.obeo.dsl.viewpoint.collab.ui.user.profile.manager
has been added to add a specific user profile manager. This user profile manager allows to override the creation, update and deletion tools of the user profile editor. The class provided for this manager must implement
fr.obeo.dsl.viewpoint.collab.ui.user.profile.design.api.extension.IUserProfileManager
.
fr.obeo.dsl.viewpoint.collab.ui.user.profile.design.wizards.ConnectToUserProfileModelWizard.performFinishClosure()
has been removed. The transaction closure is done in
dispose
method.
fr.obeo.dsl.viewpoint.collab.server.usermgmt
fr.obeo.dsl.viewpoint.collab.server.usermgmt.api.manager.CollabFileUserManager
has been added so that it can be extended by client.
fr.obeo.dsl.viewpoint.collab.server.usermgmt.api.manager.CollabFileUserManagerFactory
has been added so that it can be extended by client.
fr.obeo.dsl.viewpoint.tests.collab.support
fr.obeo.dsl.viewpoint.tests.collab.support.api.remoteuser.IRemoteUser.saveSession()
now accepts
CDOUpdatable
, i.e.
CDOView
and
CDOTransaction
to wait that specified
CDOUpdatable
are invalidated by committed changes.
Minor release without API changes
fr.obeo.dsl.viewpoint.collab
fr.obeo.dsl.viewpoint.collab.api.commands.ConnectToRemoteSessionCommand
has been deprecated in favor of
fr.obeo.dsl.viewpoint.collab.api.remotesession.CollaborativeSession.addRemoteRepresentationsSet(String)
method because
ConnectToRemoteSessionCommand
is no more useful and should not be used since we now have a
TransactionalEditingDomain
by session.
fr.obeo.dsl.viewpoint.collab
fr.obeo.dsl.viewpoint.collab.api.editingdomain.CDOTransactionChangeRecorder.checkActiveTransaction(boolean)
to enable or disable the active transaction check about CDODeltaNotification filter. This method is not intended to be used by user code.
Minor release without API changes.
Warning: If you are using previous version of Collab, a migration is needed (change on
RGBValues
type in Sirius 3.0.0 is an example of change that needs a migration). To run this migration you must follow these steps:
Warning: CDO transactions are now created with the detachment notification enabled. The method
org.eclipse.emf.cdo.view.CDOView.Options.setDetachmentNotificationEnabled()
is called with true as parameter.
org.eclipse.emf.cdo
org.eclipse.emf.cdo.transaction.InvalidCrossReferenceResolver
interface from our fork has been renamed
org.eclipse.emf.cdo.transaction.CDOStaleReferenceCleaner
as the one integrated in CDO 4.4.
fr.obeo.dsl.viewpoint.collab
fr.obeo.dsl.viewpoint.collab.api.preferences.CDOSiriusPreferenceKeys.PREF_RELEASE_EXPLICIT_LOCK_ON_COMMIT
indicates whether all explicit locks should be release on user commit.
fr.obeo.dsl.viewpoint.collab.api.lock.CDOLockManager.releaseAllExplicitLocksAcquiredByTransaction(CDOTransaction)
is added to release all explicit locks acquired the transaction parameter.
CDOSiriusUtil.getCDOObject()
has been removed in favor of
CDOUtil.getCDOObject()
which is more efficient.
CDOSiriusUtil.persistRemoteResourceInformations()
has been removed as it is not useful.
CDOSiriusUtil.getRemoteResourceInfosKey()
has been removed as it is not useful.
CDOSiriusUtil.initializeConnector()
has been removed as it is not useful.
CDOSiriusUtil.persistRemoteResourceInformations()
has been removed as it is not useful.
CDOSiriusUtil.updateLocalPackageRegistryFromEObject()
has been removed as it is not useful.
updateXmiIdsResource
has been added on
fr.obeo.dsl.viewpoint.collab.api.CDOImporter.importLocalFilesIntoRepository
and
fr.obeo.dsl.viewpoint.collab.api.CDOExporter.exportResourcesFromRepository
. If false, the xmiIds resource is not updated on CDO server when importing/exporting project from server/local to local/server.
fr.obeo.dsl.viewpoint.collab.api.CDOImportExportManager
class has been removed. Instead, use
fr.obeo.dsl.viewpoint.collab.api.CDOExporter
and
fr.obeo.dsl.viewpoint.collab.api.CDOImporter
.
updateXmiIdsResource
has been added to
fr.obeo.dsl.viewpoint.collab.api.AbstractImporterExporter.handleXmiIds
to indicate whether the xmiIds remote resource will be updated or not.
URI.createURI(resourcePath, false)
.
fr.obeo.dsl.viewpoint.collab.api.CDORepositoryManager.getAirdResourceId()/setAirdResourceId()
methods have been deprecated in favor of
CDORepositoryManager.getId()/setId()
to have better named methods as a id of a
CDORepositoryManager
could be another thing than the id of an airdResource.
fr.obeo.dsl.viewpoint.collab.ui
fr.obeo.dsl.viewpoint.collab.ui.api.wizards.ConnectToRemoteWizard.performFinishClosure()
is not used anymore and is removed.
fr.obeo.dsl.viewpoint.collab.ui.api.wizards.ExportModelToRemoteWizard
. Method to overload
doImportLocalFilesOnRepository
fr.obeo.dsl.viewpoint.collab.ui.api.wizards.ExportSemanticResourceToRemoteWizard
. Method to overload
doImportSemanticResourcesOnRepository
fr.obeo.dsl.viewpoint.collab.ui.api.wizards.ImportModelFromRemoteWizard
. Method to overload
doExportRepositoryResourcesFromRepository
fr.obeo.dsl.viewpoint.collab.ui.api.views.ICollabTooltipProvider
has been added to be able to customize the tooltip for lock by other decoration.
fr.obeo.dsl.viewpoint.collab.ui.api.views.CollabTooltipProvider
has been added as a default implementation of
ICollabTooltipProvider
interface to be extended to user API.
fr.obeo.dsl.viewpoint.collab.ui
fr.obeo.dsl.viewpoint.collab.ui.api.wizards.ConnectToRemoteWizard
the method
canFinish()
has been overridden.
fr.obeo.dsl.viewpoint.collab.ui.api.wizards.ImportModelFromRemoteWizard
the method
canFinish()
has been overridden.
fr.obeo.dsl.viewpoint.collab
fr.obeo.dsl.viewpoint.collab.api.AbstractImporterExporter
the methods
checkAnyTypes()
,
checkProxies()
and
getRepresentationsResources()
were private and became protected. This does not break API and is binary compatible.
fr.obeo.dsl.viewpoint.collab
fr.obeo.dsl.viewpoint.collab.api.CDOImporter.setDisposeEditingDomainAtEnd(boolean)
when called with false in parameter, the target
TransactionalEditingDomain
is not disposed at the end of import process. By default the target
TransactionalEditingDomain
, obtained through
EditingDomainFactoryService.INSTANCE.getEditingDomainFactory().createEditingDomain()
is disposed.
fr.obeo.dsl.viewpoint.collab.api.lock.CDOLockManager.LOCK_TIMEOUT
is removed. The timeout is about implementation details and should not be used by API user.
fr.obeo.dsl.viewpoint.collab.api.remotesession.CollaborativeSession.addRemoteRepresentationsSet(String)
now returns the
DAnalysis
of the added remote representations.
fr.obeo.dsl.viewpoint.collab.api.exception.ISiriusRemoteExceptionHandler.handleAuthenticationOnEclipseRestart()
added to display feedback to end-users about unresolved authentication on restart with opened shared representation.
fr.obeo.dsl.viewpoint.collab.ui
fr.obeo.dsl.viewpoint.collab.ui.api.wizards.ConnectToRemoteWizard.addRemoteRepresentationSet(CDOTransaction, CollaborativeSession, IProgressMonitor)
now returns the
DAnalysis
of the added remote representations.
fr.obeo.dsl.viewpoint.collab.ui.user.profile.design
fr.obeo.dsl.viewpoint.collab.ui.security.design
is renamed to
fr.obeo.dsl.viewpoint.collab.ui.user.profile.design
fr.obeo.dsl.viewpoint.collab.ui.user.profile.design.preferences
: contains new Preferences keys (
AdminPermissionPreferenceKeys
) allowing to control which kind of permissions the administrator will be able to define in the user profile model
fr.obeo.dsl.viewpoint.collab.ui.user.profile.design.services
: stateless java utility methods for manipulating user profile models
fr.obeo.dsl.viewpoint.collab.ui.user.profile.design.wizards
: provides wizard to Download, Upload and Connect to Shared User Profiles Projects.
fr.obeo.dsl.viewpoint.collab.ui.user.profile.design.design
: contains the Activator used as key for preferences
Collab 7.0.0 includes a lots of API-breaking changes, as part of a global effort to improve the quality of the Sirius internals. In this milestone in particular, most of the APIs which were marked as deprecated in previous versions of Collab have been either removed (if a replacement exists) or marked as non-deprecated (if no replacement exists yet).
fr.obeo.dsl.viewpoint.collab
AddRemoteResourceCommand(CollaborativeSession,CDORepositoryManager,URI)
has been removed. Use the remaining constructor instead, which provides
IProgressMonitor
support.
Collection<CDOResource> saveRemoteResources(Set<CDOResource>, Map<?, ?>)
have been removed from
CollaborativeSavingPolicy
. Use the
Collection<CDOResource> saveRemoteResources(Set<CDOResource>, Map<?, ?>, IProgressMonitor)
method instead.
Map<EObject, EObject> fillResources(Map<Resource, List<EObject>>, Set<EObject>, Set<Resource>)
,
handleXmiIds(Set<Resource>, Set<Resource>, Map<EObject, EObject>,boolean)
and
loadResourcesUsedAsSources(Set<URI>, CDORepositoryManager, ResourceSet, Collection<Resource>)
have been removed from the
AbstractImporterExporter
and its 2 subclasses (
CDOImporter
and
CDOExporter
). Use the version using
IProgressMonitor
instead.
SiriusCloseSessionExceptionHandler
have been deleted, and replaced by the
ISiriusRemoteExceptionHandler
mechanism.
ISiriusRemoteExceptionHandler
interface has been added to handle remote exceptions (such has network breakdown or invalid credentials).
fr.obeo.dsl.viewpoint.collab.exceptionhandler
extension point has been added to provide your own
ISiriusRemoteExceptionHandler
to react to remote exceptions.
CDORepositoryManager.getRemoteExceptionHandler()
has been added to get the
ISiriusRemoteExceptionHandler
used by the current
CDORepositoryManager
.
DefaultSiriusRemoteExceptionHandler
class provides a default implementation of the
ISiriusRemoteExceptionHanlder
and may be overridden.
fr.obeo.dsl.viewpoint.collab.ui
postSessionCreation(String)
has been removed from
ImportModelFromRemoteWizard
. Use the version using
IProgressMonitor
instead.
addRemoteRepresentationSet(CDOTransaction, CollaborativeSession)
and
CollaborativeSession createLocalSession(String)
have been removed from
ConnectToRemoteWizard
. Use the versions using
IProgressMonitor
instead.
postSessionCreation(Session)
and
ensureLocalProjectExists(String)
have been removed from
AbstractCreateLocalProjectRemoteWizard
. Use the versions using
IProgressMonitor
instead.