|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.Observable
org.mftech.dawn.runtime.client.synchronization.impl.ResourceSynchronizerImpl
public class ResourceSynchronizerImpl
This classes handles the changes on the clientside
| Field Summary |
|---|
| Fields inherited from interface org.mftech.dawn.runtime.client.synchronization.ResourceSynchronizer |
|---|
LOCALLY_DELTETION_CONFLICT, NO_CONFLICT, REMOTELY_AND_LOCALLY_CHANGED_CONFLICT, REMOTELY_DELTETION_CONFLICT |
| Constructor Summary | |
|---|---|
ResourceSynchronizerImpl(org.eclipse.gmf.runtime.diagram.ui.resources.editor.parts.DiagramDocumentEditor edit,
java.lang.String projectname2,
org.eclipse.emf.ecore.resource.Resource localResource,
boolean isServerAvailable,
org.eclipse.emf.ecore.resource.ResourceSet res,
DawnElementTypeHelper elementTypeHelper,
java.lang.String pluginId)
constructor |
|
| Method Summary | |
|---|---|
void |
cleanIgnoreList()
cleans the ignore list |
java.util.Map<java.lang.String,ChangeObject> |
getChangedLocalyAndRemotellyConflicts()
|
int |
getConflictType(java.lang.String key)
returns the conflictlist for the object |
java.util.Map<java.lang.String,ChangeObject> |
getDeletedLocallyConflicts()
|
java.util.Map<java.lang.String,ChangeObject> |
getDeletedRemotelyConflicts()
|
java.util.Set<java.lang.String> |
getGloballyLocked()
|
java.util.Set<java.lang.String> |
getIgnoreList()
|
org.eclipse.emf.ecore.resource.Resource |
getLastResource()
|
java.util.Set<java.lang.String> |
getLocallyLocked()
|
java.util.Set<org.eclipse.emf.ecore.EObject> |
getSelectedElements()
|
boolean |
isConflicted()
|
boolean |
isConflicted(org.eclipse.gmf.runtime.emf.core.resources.GMFResource localResource,
DawnRemoteConnection dawnRemoteConnection)
chekcs if the resource GMFResource is in conflict with local and last resource |
void |
lastResourceChangeView(org.eclipse.gmf.runtime.notation.View newView)
|
void |
lastResourceDeleteView(org.eclipse.gmf.runtime.notation.View newView)
|
void |
loadLastResource()
|
int |
lockObjectsLocally(java.util.List<org.eclipse.gef.EditPart> selectedElements,
DawnRemoteConnection dawnRemoteConnection)
locks the objects on the server in the sepcific project |
boolean |
publish(org.eclipse.gmf.runtime.emf.core.resources.GMFResource localResource,
DawnRemoteConnection dawnRemoteConnection)
sends the local Resources to the server. |
void |
resolveChangedLocalyAndRemotellyConflict(java.lang.String xmiId)
resolve the locally and globally change conflict for the view behind the xmiid |
void |
resolveDeletedLocallyConflict(java.lang.String xmiId)
|
void |
resolveDeletedRemotellyConflict(java.lang.String xmiId)
|
void |
saveLastResource(org.eclipse.emf.ecore.resource.Resource localResource)
|
void |
setChangedLocalyAndRemotellyConflicts(java.util.Map<java.lang.String,ChangeObject> changedLocalyAndRemotellyConflicts)
|
void |
setDeletedLocallyConflicts(java.util.Map<java.lang.String,ChangeObject> delectConflicts)
|
void |
setDeletedRemotelyConflicts(java.util.Map<java.lang.String,ChangeObject> deletedRemotelyConflicts)
|
void |
setGloballyLocked(java.util.Set<java.lang.String> lockedObjects)
|
void |
setIgnored(org.eclipse.emf.ecore.EObject obj)
|
void |
setIgnored(java.lang.String id)
|
void |
setIgnoreList(java.util.Set<java.lang.String> ignoreList)
|
void |
setLastResource(org.eclipse.emf.ecore.resource.Resource lastResource)
|
void |
setLocallyLocked(java.util.Set<java.lang.String> locallyLocked)
sets the locally locked elements |
void |
setRemoteLocks(java.util.Map<java.lang.String,java.lang.Integer> lockedObjects)
sets all locks from remote |
void |
setSelectedElements(java.util.Set<org.eclipse.emf.ecore.EObject> selectedElements)
|
static void |
synchronizeDiagramXMI(org.eclipse.emf.ecore.resource.Resource oldResouce,
org.eclipse.emf.ecore.resource.Resource newResource)
This messages synchronizes the XMI id of the client diagram with the server diagram. |
void |
unIgnored(java.lang.String id)
|
int |
unlockObjects(java.util.List<org.eclipse.gef.EditPart> selectedElements,
DawnRemoteConnection dawnRemoteConnection)
unlocks all Objects from the list |
boolean |
update(org.eclipse.emf.ecore.resource.Resource localResouce,
org.eclipse.emf.ecore.resource.Resource serverResource,
boolean publish,
DawnRemoteConnection dawnRemoteConnection)
This method synchronizes the resources. |
void |
updateViewWithRemoteView(org.eclipse.gmf.runtime.notation.View obj)
updates obj with the information from the serverNode |
| Methods inherited from class java.util.Observable |
|---|
addObserver, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.mftech.dawn.runtime.client.synchronization.ResourceSynchronizer |
|---|
addObserver |
| Constructor Detail |
|---|
public ResourceSynchronizerImpl(org.eclipse.gmf.runtime.diagram.ui.resources.editor.parts.DiagramDocumentEditor edit,
java.lang.String projectname2,
org.eclipse.emf.ecore.resource.Resource localResource,
boolean isServerAvailable,
org.eclipse.emf.ecore.resource.ResourceSet res,
DawnElementTypeHelper elementTypeHelper,
java.lang.String pluginId)
edit - projectname2 - localResource - | Method Detail |
|---|
public java.util.Set<java.lang.String> getLocallyLocked()
getLocallyLocked in interface ResourceSynchronizerpublic void setLocallyLocked(java.util.Set<java.lang.String> locallyLocked)
setLocallyLocked in interface ResourceSynchronizerlocallyLocked - public java.util.Map<java.lang.String,ChangeObject> getChangedLocalyAndRemotellyConflicts()
getChangedLocalyAndRemotellyConflicts in interface ResourceSynchronizerpublic void setChangedLocalyAndRemotellyConflicts(java.util.Map<java.lang.String,ChangeObject> changedLocalyAndRemotellyConflicts)
setChangedLocalyAndRemotellyConflicts in interface ResourceSynchronizerchangedLocalyAndRemotellyConflicts - public java.util.Map<java.lang.String,ChangeObject> getDeletedRemotelyConflicts()
getDeletedRemotelyConflicts in interface ResourceSynchronizerpublic java.util.Set<java.lang.String> getIgnoreList()
getIgnoreList in interface ResourceSynchronizerpublic void setIgnoreList(java.util.Set<java.lang.String> ignoreList)
setIgnoreList in interface ResourceSynchronizerpublic void setDeletedRemotelyConflicts(java.util.Map<java.lang.String,ChangeObject> deletedRemotelyConflicts)
deletedRemotelyConflicts - public java.util.Map<java.lang.String,ChangeObject> getDeletedLocallyConflicts()
getDeletedLocallyConflicts in interface ResourceSynchronizerpublic void setDeletedLocallyConflicts(java.util.Map<java.lang.String,ChangeObject> delectConflicts)
setDeletedLocallyConflicts in interface ResourceSynchronizerdelectConflicts - public java.util.Set<org.eclipse.emf.ecore.EObject> getSelectedElements()
getSelectedElements in interface ResourceSynchronizerpublic void setSelectedElements(java.util.Set<org.eclipse.emf.ecore.EObject> selectedElements)
setSelectedElements in interface ResourceSynchronizerselectedElements -
public boolean publish(org.eclipse.gmf.runtime.emf.core.resources.GMFResource localResource,
DawnRemoteConnection dawnRemoteConnection)
publish in interface ResourceSynchronizerlocalResource -
public void cleanIgnoreList()
cleanIgnoreList in interface ResourceSynchronizer
public boolean update(org.eclipse.emf.ecore.resource.Resource localResouce,
org.eclipse.emf.ecore.resource.Resource serverResource,
boolean publish,
DawnRemoteConnection dawnRemoteConnection)
throws java.lang.Exception
update in interface ResourceSynchronizerresource -
java.lang.Exception
java.io.IOException
public boolean isConflicted(org.eclipse.gmf.runtime.emf.core.resources.GMFResource localResource,
DawnRemoteConnection dawnRemoteConnection)
throws java.io.IOException,
java.lang.Exception
isConflicted in interface ResourceSynchronizerlocalResource -
java.io.IOException
java.lang.Exceptionpublic boolean isConflicted()
isConflicted in interface ResourceSynchronizerpublic void lastResourceChangeView(org.eclipse.gmf.runtime.notation.View newView)
lastResourceChangeView in interface ResourceSynchronizernewView - public void lastResourceDeleteView(org.eclipse.gmf.runtime.notation.View newView)
lastResourceDeleteView in interface ResourceSynchronizernewView - public void updateViewWithRemoteView(org.eclipse.gmf.runtime.notation.View obj)
updateViewWithRemoteView in interface ResourceSynchronizerobj -
public static void synchronizeDiagramXMI(org.eclipse.emf.ecore.resource.Resource oldResouce,
org.eclipse.emf.ecore.resource.Resource newResource)
oldResouce - newResource - public void resolveDeletedRemotellyConflict(java.lang.String xmiId)
resolveDeletedRemotellyConflict in interface ResourceSynchronizerxmiId - public void resolveChangedLocalyAndRemotellyConflict(java.lang.String xmiId)
resolveChangedLocalyAndRemotellyConflict in interface ResourceSynchronizerxmiId - the id which identifies the viewpublic void resolveDeletedLocallyConflict(java.lang.String xmiId)
resolveDeletedLocallyConflict in interface ResourceSynchronizerxmiId - public int getConflictType(java.lang.String key)
getConflictType in interface ResourceSynchronizermodel -
public void unIgnored(java.lang.String id)
unIgnored in interface ResourceSynchronizerpublic org.eclipse.emf.ecore.resource.Resource getLastResource()
getLastResource in interface ResourceSynchronizerpublic void setLastResource(org.eclipse.emf.ecore.resource.Resource lastResource)
setLastResource in interface ResourceSynchronizerlastResource - public void setIgnored(java.lang.String id)
setIgnored in interface ResourceSynchronizerid - public void setIgnored(org.eclipse.emf.ecore.EObject obj)
setIgnored in interface ResourceSynchronizerobj - public void setRemoteLocks(java.util.Map<java.lang.String,java.lang.Integer> lockedObjects)
setRemoteLocks in interface ResourceSynchronizerlockedObjects - public java.util.Set<java.lang.String> getGloballyLocked()
getGloballyLocked in interface ResourceSynchronizerpublic void setGloballyLocked(java.util.Set<java.lang.String> lockedObjects)
setGloballyLocked in interface ResourceSynchronizerlockedObjects -
public int lockObjectsLocally(java.util.List<org.eclipse.gef.EditPart> selectedElements,
DawnRemoteConnection dawnRemoteConnection)
lockObjectsLocally in interface ResourceSynchronizerselectedElements -
public int unlockObjects(java.util.List<org.eclipse.gef.EditPart> selectedElements,
DawnRemoteConnection dawnRemoteConnection)
unlockObjects in interface ResourceSynchronizerselectedElements -
public void saveLastResource(org.eclipse.emf.ecore.resource.Resource localResource)
saveLastResource in interface ResourceSynchronizergmfResource - public void loadLastResource()
loadLastResource in interface ResourceSynchronizer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||