org.eclipse.emf.emfstore.internal.server.connection.xmlrpc.util
Class ShareProjectAdapter

java.lang.Object
  extended by org.eclipse.emf.common.notify.impl.AdapterImpl
      extended by org.eclipse.emf.emfstore.internal.server.connection.xmlrpc.util.ShareProjectAdapter
All Implemented Interfaces:
org.eclipse.emf.common.notify.Adapter, org.eclipse.emf.common.notify.Adapter.Internal

public final class ShareProjectAdapter
extends org.eclipse.emf.common.notify.impl.AdapterImpl

Utility class that keeps track of projects that a given session has shared.

Author:
emueller

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.emf.common.notify.Adapter
org.eclipse.emf.common.notify.Adapter.Internal
 
Method Summary
 void addProjectId(ProjectId projectId)
          Add a ProjectId.
static void attachTo(SessionId sessionId, ProjectId projectId)
          Attaches an adapter with the given ProjectId to the session.
 boolean removeProject(ProjectId projectId)
          Remove a ProjectId.
 
Methods inherited from class org.eclipse.emf.common.notify.impl.AdapterImpl
getTarget, isAdapterForType, notifyChanged, setTarget, unsetTarget
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

addProjectId

public void addProjectId(ProjectId projectId)
Add a ProjectId.

Parameters:
projectId - the ProjectId to be added

removeProject

public boolean removeProject(ProjectId projectId)
Remove a ProjectId.

Parameters:
projectId - the ProjectId to be removed
Returns:
true, if a project has been removed, false otherwise

attachTo

public static void attachTo(SessionId sessionId,
                            ProjectId projectId)
Attaches an adapter with the given ProjectId to the session.

Parameters:
sessionId - the session the adapter should be attached to
projectId - the project id that should be attached to the session


Copyright © 2015. All Rights Reserved.