org.eclipse.emf.emfstore.internal.server.core.subinterfaces
Class HistorySubInterfaceImpl

java.lang.Object
  extended by org.eclipse.emf.emfstore.internal.server.core.AbstractSubEmfstoreInterface
      extended by org.eclipse.emf.emfstore.internal.server.core.subinterfaces.HistorySubInterfaceImpl

public class HistorySubInterfaceImpl
extends AbstractSubEmfstoreInterface

This subinterfaces implements all history related functionality for the EmfStoreImpl interface.

Author:
wesendon

Constructor Summary
HistorySubInterfaceImpl(AbstractEmfstoreInterface parentInterface)
          Default constructor.
 
Method Summary
 void addTag(ProjectId projectId, PrimaryVersionSpec versionSpec, TagVersionSpec tag)
          Add a tag to the specified version specifier.
 List<HistoryInfo> getHistoryInfo(ProjectId projectId, HistoryQuery<?> historyQuery)
          Returns history information for the given project.
 void removeTag(ProjectId projectId, PrimaryVersionSpec versionSpec, TagVersionSpec tag)
          Removes the tag from the specified version specifier.
 
Methods inherited from class org.eclipse.emf.emfstore.internal.server.core.AbstractSubEmfstoreInterface
execute, getResourceHelper
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HistorySubInterfaceImpl

public HistorySubInterfaceImpl(AbstractEmfstoreInterface parentInterface)
                        throws FatalESException
Default constructor.

Parameters:
parentInterface - parent interface
Throws:
FatalESException - in case of failure
Method Detail

addTag

public void addTag(ProjectId projectId,
                   PrimaryVersionSpec versionSpec,
                   TagVersionSpec tag)
            throws ESException
Add a tag to the specified version specifier.

Parameters:
projectId - the ID of a project
versionSpec - the version specifier
tag - the tag to be added
Throws:
ESException - in case of failure

removeTag

public void removeTag(ProjectId projectId,
                      PrimaryVersionSpec versionSpec,
                      TagVersionSpec tag)
               throws ESException
Removes the tag from the specified version specifier.

Parameters:
projectId - the ID of a project
versionSpec - the version specifier
tag - the tag to be removed
Throws:
ESException - in case of failure

getHistoryInfo

public List<HistoryInfo> getHistoryInfo(ProjectId projectId,
                                        HistoryQuery<?> historyQuery)
                                 throws ESException
Returns history information for the given project.

Parameters:
projectId - the ProjectId of the project whose history should be fetched
historyQuery - the history query
Returns:
a list containing HistoryInfo about the project
Throws:
ESException - in case an error occurs while fetching the history


Copyright © 2015. All Rights Reserved.