|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.sconman.SCMEventListenerAdapter net.sourceforge.sconman.ProjectSynchronizer
class ProjectSynchronizer
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 |
---|
protected Project prj
protected java.util.Set listeners
protected java.util.Set addedUris
protected java.util.Set modifiedUris
protected java.util.Set removedUris
Constructor Detail |
---|
public ProjectSynchronizer(Project prj)
Method Detail |
---|
public void addIRepositoryChangeListener(IRepositoryChangeListener listener)
IProjectSynchronizer
IRepositoryChangeListener
. It will be
notified when there is some change
addIRepositoryChangeListener
in interface IProjectSynchronizer
public void removeIRepositoryChangeListener(IRepositoryChangeListener listener)
IProjectSynchronizer
IRepositoryChangeListener
.
removeIRepositoryChangeListener
in interface IProjectSynchronizer
public void onContentAdded(java.lang.String actorLogin, java.lang.String uri)
IRepositoryChangeListener
onContentAdded
in interface IRepositoryChangeListener
public void onContentModified(java.lang.String actorLogin, java.lang.String uri)
IRepositoryChangeListener
onContentModified
in interface IRepositoryChangeListener
public void onContentRemoved(java.lang.String actorLogin, java.lang.String uri)
IRepositoryChangeListener
onContentRemoved
in interface IRepositoryChangeListener
public final void afterAddContent(Content content)
ISCMEventListener
afterAddContent
in interface ISCMEventListener
afterAddContent
in class SCMEventListenerAdapter
public final void afterRemoveContent(Content content)
ISCMEventListener
afterRemoveContent
in interface ISCMEventListener
afterRemoveContent
in class SCMEventListenerAdapter
public final void afterModifyContent(Content content)
ISCMEventListener
afterModifyContent
in interface ISCMEventListener
afterModifyContent
in class SCMEventListenerAdapter
public void init()
IRepositoryChangeListener
init
in interface IRepositoryChangeListener
public void close()
IRepositoryChangeListener
close
in interface IRepositoryChangeListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |