org.sourcejammer.server.event
Class FileChangeListenerPool

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

public class FileChangeListenerPool
extends java.lang.Object

Title: $FileName: FileChangeListenerPool.java$

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

$Description: Represents the pool of file change listeners for a single archive.$
$KeyWordsOff: $

Field Summary
private  Archive archive
           
private  java.util.ArrayList listeners
           
 
Constructor Summary
FileChangeListenerPool(Archive arch)
           
 
Method Summary
 void addListener(SJServerFileChangeListener listener)
           
private  SJServerFileEventImpl getBasicEvent(long fileID, org.sourcejammer.project.view.SJRequest request, org.sourcejammer.project.view.SJResponse response)
           
 void notifyCheckoutUndone(long fileID, org.sourcejammer.project.view.SJRequest request, org.sourcejammer.project.view.SJResponse response)
           
 void notifyFileAdded(long fileID, org.sourcejammer.project.view.SJRequest request, org.sourcejammer.project.view.SJResponse response)
           
 void notifyFileBranched(long fileID, long branchToProjID, org.sourcejammer.project.view.SJRequest request, org.sourcejammer.project.view.SJResponse response)
          Target is parent Project in which file was branched.
 void notifyFileCheckedIn(long fileID, org.sourcejammer.project.view.SJRequest request, org.sourcejammer.project.view.SJResponse response)
           
 void notifyFileCheckedOut(long fileID, org.sourcejammer.project.view.SJRequest request, org.sourcejammer.project.view.SJResponse response)
           
 void notifyFileCopied(long fileID, long targetProjectID, org.sourcejammer.project.view.SJRequest request, org.sourcejammer.project.view.SJResponse response)
           
 void notifyFileDeleted(long fileID, org.sourcejammer.project.view.SJRequest request, org.sourcejammer.project.view.SJResponse response)
           
 void notifyFileDescriptionModified(long fileID, java.lang.String previousDescription, org.sourcejammer.project.view.SJRequest request, org.sourcejammer.project.view.SJResponse response)
          Sets previous description as target in event.
 void notifyFileMoved(long fileID, long sourceProjectID, long targetProjectID, org.sourcejammer.project.view.SJRequest request, org.sourcejammer.project.view.SJResponse response)
          sourceProjectID is project file was moved from.
 void notifyFileRemoved(long fileID, long removedFromProjID, org.sourcejammer.project.view.SJRequest request, org.sourcejammer.project.view.SJResponse response)
          Target is parent ROProject from which file was removed.
 void notifyFileRenamed(long fileID, java.lang.String previousName, org.sourcejammer.project.view.SJRequest request, org.sourcejammer.project.view.SJResponse response)
          Sets previous file name as target in event.
 void notifyFileRestored(long fileID, long restoredToProjID, org.sourcejammer.project.view.SJRequest request, org.sourcejammer.project.view.SJResponse response)
          Target is parent ROProject to which file was restored.
 void notifyFileRolledBack(long fileID, long newVerID, int rolledBackToVerNum, org.sourcejammer.project.view.SJRequest request, org.sourcejammer.project.view.SJResponse response)
          Target is Long id of new version created.
 void notifyFileShared(long fileID, long shareToProjID, org.sourcejammer.project.view.SJRequest request, org.sourcejammer.project.view.SJResponse response)
          Target is new parent Project of file.
 void notifyFileShareRemoved(long fileID, long shareRemovedFromProjID, org.sourcejammer.project.view.SJRequest request, org.sourcejammer.project.view.SJResponse response)
          Target is parent Project from which share was removed.
 void notifyLatestVersionRequested(long fileID, org.sourcejammer.project.view.SJRequest request, org.sourcejammer.project.view.SJResponse response)
           
 void notifySpecificVesionRequested(long fileID, int versionNumber, java.io.File versionTempFile, org.sourcejammer.project.view.SJRequest request, org.sourcejammer.project.view.SJResponse response)
           
 
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

FileChangeListenerPool

public FileChangeListenerPool(Archive arch)
Method Detail

addListener

public void addListener(SJServerFileChangeListener listener)

getBasicEvent

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

notifyFileAdded

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

notifyLatestVersionRequested

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

notifySpecificVesionRequested

public void notifySpecificVesionRequested(long fileID,
                                          int versionNumber,
                                          java.io.File versionTempFile,
                                          org.sourcejammer.project.view.SJRequest request,
                                          org.sourcejammer.project.view.SJResponse response)
                                   throws EventListenerException
EventListenerException

notifyFileCheckedOut

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

notifyFileCheckedIn

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

notifyFileCopied

public void notifyFileCopied(long fileID,
                             long targetProjectID,
                             org.sourcejammer.project.view.SJRequest request,
                             org.sourcejammer.project.view.SJResponse response)
                      throws EventListenerException
EventListenerException

notifyFileMoved

public void notifyFileMoved(long fileID,
                            long sourceProjectID,
                            long targetProjectID,
                            org.sourcejammer.project.view.SJRequest request,
                            org.sourcejammer.project.view.SJResponse response)
                     throws EventListenerException
sourceProjectID is project file was moved from. This project will be "target" in generated event.

EventListenerException

notifyFileRenamed

public void notifyFileRenamed(long fileID,
                              java.lang.String previousName,
                              org.sourcejammer.project.view.SJRequest request,
                              org.sourcejammer.project.view.SJResponse response)
                       throws EventListenerException
Sets previous file name as target in event.

EventListenerException

notifyFileShared

public void notifyFileShared(long fileID,
                             long shareToProjID,
                             org.sourcejammer.project.view.SJRequest request,
                             org.sourcejammer.project.view.SJResponse response)
                      throws EventListenerException
Target is new parent Project of file.

EventListenerException

notifyFileBranched

public void notifyFileBranched(long fileID,
                               long branchToProjID,
                               org.sourcejammer.project.view.SJRequest request,
                               org.sourcejammer.project.view.SJResponse response)
                        throws EventListenerException
Target is parent Project in which file was branched. FileID is for new branch.

EventListenerException

notifyFileDescriptionModified

public void notifyFileDescriptionModified(long fileID,
                                          java.lang.String previousDescription,
                                          org.sourcejammer.project.view.SJRequest request,
                                          org.sourcejammer.project.view.SJResponse response)
                                   throws EventListenerException
Sets previous description as target in event.

EventListenerException

notifyFileRemoved

public void notifyFileRemoved(long fileID,
                              long removedFromProjID,
                              org.sourcejammer.project.view.SJRequest request,
                              org.sourcejammer.project.view.SJResponse response)
                       throws EventListenerException
Target is parent ROProject from which file was removed.

EventListenerException

notifyFileRestored

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

EventListenerException

notifyFileDeleted

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

notifyFileShareRemoved

public void notifyFileShareRemoved(long fileID,
                                   long shareRemovedFromProjID,
                                   org.sourcejammer.project.view.SJRequest request,
                                   org.sourcejammer.project.view.SJResponse response)
                            throws EventListenerException
Target is parent Project from which share was removed.

EventListenerException

notifyCheckoutUndone

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

notifyFileRolledBack

public void notifyFileRolledBack(long fileID,
                                 long newVerID,
                                 int rolledBackToVerNum,
                                 org.sourcejammer.project.view.SJRequest request,
                                 org.sourcejammer.project.view.SJResponse response)
                          throws EventListenerException
Target is Long id of new version created. Version number is version number rolled back to.

EventListenerException


Copyright 2003 Soucejammer project.