net.sourceforge.sconman
Class ProjectSynchronizer

java.lang.Object
  extended by net.sourceforge.sconman.SCMEventListenerAdapter
      extended by net.sourceforge.sconman.ProjectSynchronizer
All Implemented Interfaces:
IProjectSynchronizer, IRepositoryChangeListener, ISCMEventListener

 class ProjectSynchronizer
extends SCMEventListenerAdapter
implements IProjectSynchronizer

Author:
mballesteros

Field Summary
protected  java.util.Set addedUris
          Set of uris that have been externally received and should not be notified
protected  java.util.Set listeners
           
protected  java.util.Set modifiedUris
          Set of uris that have been externally received and should not be notified
protected  Project prj
           
protected  java.util.Set removedUris
          Set of uris that have been externally received and should not be notified
 
Constructor Summary
ProjectSynchronizer(Project prj)
           
 
Method Summary
 void addIRepositoryChangeListener(IRepositoryChangeListener listener)
          Adds a new IRepositoryChangeListener.
 void afterAddContent(Content content)
          Called after a content is added
 void afterModifyContent(Content content)
          Called after a content is lastAccessed
 void afterRemoveContent(Content content)
          Called after a content is removed
 void close()
          Free resources
 void init()
          Initialize
 void onContentAdded(java.lang.String actorLogin, java.lang.String uri)
          Called when a content has been added to the repository
 void onContentModified(java.lang.String actorLogin, java.lang.String uri)
          Called when a content has been modified in the repository
 void onContentRemoved(java.lang.String actorLogin, java.lang.String uri)
          Called when a content has beed removed from the repository
 void removeIRepositoryChangeListener(IRepositoryChangeListener listener)
          Removes a registered IRepositoryChangeListener.
 
Methods inherited from class net.sourceforge.sconman.SCMEventListenerAdapter
afterAddRelationship, afterModifyRelatedContent, afterRemoveRelationship, afterSaveProject, beforeAddContent, beforeAddRelationship, beforeModifyContent, beforeRemoveContent, beforeRemoveRelationship, beforeSaveProject, onCategoryAdded, onCategoryModified, onCategoryRemoved, onChangeProperty, onClose, onLoadProject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

prj

protected Project prj

listeners

protected java.util.Set listeners

addedUris

protected java.util.Set addedUris
Set of uris that have been externally received and should not be notified


modifiedUris

protected java.util.Set modifiedUris
Set of uris that have been externally received and should not be notified


removedUris

protected java.util.Set removedUris
Set of uris that have been externally received and should not be notified

Constructor Detail

ProjectSynchronizer

public ProjectSynchronizer(Project prj)
Method Detail

addIRepositoryChangeListener

public void addIRepositoryChangeListener(IRepositoryChangeListener listener)
Description copied from interface: IProjectSynchronizer
Adds a new IRepositoryChangeListener. It will be notified when there is some change

Specified by:
addIRepositoryChangeListener in interface IProjectSynchronizer

removeIRepositoryChangeListener

public void removeIRepositoryChangeListener(IRepositoryChangeListener listener)
Description copied from interface: IProjectSynchronizer
Removes a registered IRepositoryChangeListener.

Specified by:
removeIRepositoryChangeListener in interface IProjectSynchronizer

onContentAdded

public void onContentAdded(java.lang.String actorLogin,
                           java.lang.String uri)
Description copied from interface: IRepositoryChangeListener
Called when a content has been added to the repository

Specified by:
onContentAdded in interface IRepositoryChangeListener

onContentModified

public void onContentModified(java.lang.String actorLogin,
                              java.lang.String uri)
Description copied from interface: IRepositoryChangeListener
Called when a content has been modified in the repository

Specified by:
onContentModified in interface IRepositoryChangeListener

onContentRemoved

public void onContentRemoved(java.lang.String actorLogin,
                             java.lang.String uri)
Description copied from interface: IRepositoryChangeListener
Called when a content has beed removed from the repository

Specified by:
onContentRemoved in interface IRepositoryChangeListener

afterAddContent

public final void afterAddContent(Content content)
Description copied from interface: ISCMEventListener
Called after a content is added

Specified by:
afterAddContent in interface ISCMEventListener
Overrides:
afterAddContent in class SCMEventListenerAdapter

afterRemoveContent

public final void afterRemoveContent(Content content)
Description copied from interface: ISCMEventListener
Called after a content is removed

Specified by:
afterRemoveContent in interface ISCMEventListener
Overrides:
afterRemoveContent in class SCMEventListenerAdapter

afterModifyContent

public final void afterModifyContent(Content content)
Description copied from interface: ISCMEventListener
Called after a content is lastAccessed

Specified by:
afterModifyContent in interface ISCMEventListener
Overrides:
afterModifyContent in class SCMEventListenerAdapter

init

public void init()
Description copied from interface: IRepositoryChangeListener
Initialize

Specified by:
init in interface IRepositoryChangeListener

close

public void close()
Description copied from interface: IRepositoryChangeListener
Free resources

Specified by:
close in interface IRepositoryChangeListener


Copyright null null. All Rights Reserved.