org.eclipse.emf.emfstore.internal.server.connection.xmlrpc.util
Class ShareProjectAdapter
java.lang.Object
org.eclipse.emf.common.notify.impl.AdapterImpl
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 classes/interfaces inherited from interface org.eclipse.emf.common.notify.Adapter |
org.eclipse.emf.common.notify.Adapter.Internal |
Methods inherited from class org.eclipse.emf.common.notify.impl.AdapterImpl |
getTarget, isAdapterForType, notifyChanged, setTarget, unsetTarget |
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 toprojectId
- the project id that should be attached to the session
Copyright © 2015. All Rights Reserved.