org.sourcejammer.server.event
Class ProjectChangeListenerPool

java.lang.Object
  |
  +--org.sourcejammer.server.event.ProjectChangeListenerPool

public class ProjectChangeListenerPool
extends java.lang.Object

Title: $FileName: ProjectChangeListenerPool.java$

Version:
$VerNum: 3$
Author:
$AuthorName: Rob MacGrogan$

$Description: A pool of project listeners. Listeners easily notified using this class.$
$KeyWordsOff: $

Field Summary
private  Archive archive
           
private  java.util.ArrayList listeners
           
 
Constructor Summary
ProjectChangeListenerPool(Archive arch)
           
 
Method Summary
 void addListener(SJServerProjectChangeListener listener)
           
private  SJServerProjectEventImpl getBasicEvent(long projectID, org.sourcejammer.project.view.SJRequest request, org.sourcejammer.project.view.SJResponse response)
           
 void notifyProjectAdded(long projectID, org.sourcejammer.project.view.SJRequest request, org.sourcejammer.project.view.SJResponse response)
           
 void notifyProjectDeleted(long projectID, org.sourcejammer.project.view.SJRequest request, org.sourcejammer.project.view.SJResponse response)
           
 void notifyProjectMoved(long projectID, long sourceProjectID, long targetProjID, org.sourcejammer.project.view.SJRequest request, org.sourcejammer.project.view.SJResponse response)
          Target is parent ROProject to which project was moved.
 void notifyProjectRemoved(long projectID, long removedFromProjID, org.sourcejammer.project.view.SJRequest request, org.sourcejammer.project.view.SJResponse response)
          Target is parent ROProject from which projectwas removed.
 void notifyProjectRenamed(long projectID, java.lang.String previousName, org.sourcejammer.project.view.SJRequest request, org.sourcejammer.project.view.SJResponse response)
          Target is previous name of project.
 void notifyProjectRestored(long projectID, long restoredToProjID, org.sourcejammer.project.view.SJRequest request, org.sourcejammer.project.view.SJResponse response)
          Target is parent ROProject to which project was restored.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

listeners

private java.util.ArrayList listeners

archive

private Archive archive
Constructor Detail

ProjectChangeListenerPool

public ProjectChangeListenerPool(Archive arch)
Method Detail

addListener

public void addListener(SJServerProjectChangeListener listener)

getBasicEvent

private SJServerProjectEventImpl getBasicEvent(long projectID,
                                               org.sourcejammer.project.view.SJRequest request,
                                               org.sourcejammer.project.view.SJResponse response)
                                        throws EventListenerException
EventListenerException

notifyProjectAdded

public void notifyProjectAdded(long projectID,
                               org.sourcejammer.project.view.SJRequest request,
                               org.sourcejammer.project.view.SJResponse response)
                        throws EventListenerException
EventListenerException

notifyProjectRenamed

public void notifyProjectRenamed(long projectID,
                                 java.lang.String previousName,
                                 org.sourcejammer.project.view.SJRequest request,
                                 org.sourcejammer.project.view.SJResponse response)
                          throws EventListenerException
Target is previous name of project.

EventListenerException

notifyProjectRemoved

public void notifyProjectRemoved(long projectID,
                                 long removedFromProjID,
                                 org.sourcejammer.project.view.SJRequest request,
                                 org.sourcejammer.project.view.SJResponse response)
                          throws EventListenerException
Target is parent ROProject from which projectwas removed.

EventListenerException

notifyProjectDeleted

public void notifyProjectDeleted(long projectID,
                                 org.sourcejammer.project.view.SJRequest request,
                                 org.sourcejammer.project.view.SJResponse response)
                          throws EventListenerException
EventListenerException

notifyProjectRestored

public void notifyProjectRestored(long projectID,
                                  long restoredToProjID,
                                  org.sourcejammer.project.view.SJRequest request,
                                  org.sourcejammer.project.view.SJResponse response)
                           throws EventListenerException
Target is parent ROProject to which project was restored.

EventListenerException

notifyProjectMoved

public void notifyProjectMoved(long projectID,
                               long sourceProjectID,
                               long targetProjID,
                               org.sourcejammer.project.view.SJRequest request,
                               org.sourcejammer.project.view.SJResponse response)
                        throws EventListenerException
Target is parent ROProject to which project was moved.

EventListenerException


Copyright 2003 Soucejammer project.