org.eclipse.emf.emfstore.internal.client.model.changeTracking.merging.util
Class DefaultOperationAuthorProvider

java.lang.Object
  extended by org.eclipse.emf.emfstore.internal.client.model.changeTracking.merging.util.DefaultOperationAuthorProvider
All Implemented Interfaces:
ESObserver, OperationAuthorProvider

public class DefaultOperationAuthorProvider
extends Object
implements OperationAuthorProvider

Provides the author for an operation based on the usersession of the containing change package.

Author:
mkoegel

Constructor Summary
DefaultOperationAuthorProvider(List<ChangePackage> leftChanges, List<ChangePackage> rightChanges)
          Default Constructor.
 
Method Summary
 String getAuthor(AbstractOperation operation)
          Get the author for the given operation.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultOperationAuthorProvider

public DefaultOperationAuthorProvider(List<ChangePackage> leftChanges,
                                      List<ChangePackage> rightChanges)
Default Constructor.

Parameters:
leftChanges - a list of change packages
rightChanges - another list of change packages
Method Detail

getAuthor

public String getAuthor(AbstractOperation operation)
Get the author for the given operation.

Specified by:
getAuthor in interface OperationAuthorProvider
Parameters:
operation - the operation
Returns:
an author String
See Also:
OperationAuthorProvider.getAuthor(org.eclipse.emf.emfstore.internal.server.model.versioning.operations.AbstractOperation)


Copyright © 2015. All Rights Reserved.