|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.Observable | +--com.enderak.procol.common.util.EnhancedObservable | +--com.enderak.procol.common.model.ProColProject | +--com.enderak.procol.server.model.ProColServerProject
The project model for the ProColServer
Field Summary | |
java.util.Vector |
connectionList
the list of connections that have this project open |
Fields inherited from class com.enderak.procol.common.model.ProColProject |
downloadingFiles, j, name, NUM_VERSIONS, projectDir, projectFilesDir, projectFilesRootNode, projectFilesURI, projectURI |
Constructor Summary | |
ProColServerProject(java.net.URI projectRootIn,
java.lang.String name,
boolean loadFilesNow)
Constructor for the ProColServerProject |
Method Summary | |
void |
addConnection(ServerConnection connectionIn)
Adds a Connection to the project |
int |
addDownloadFile(byte[] infoIn,
java.lang.String userNameIn)
Adds a file to be downloaded to the download list |
int |
checkIn(java.net.URI fileURI,
ProColUser user)
Checks in a file |
void |
closeAllConnections()
closes all connections associated with this project |
int |
deleteFile(java.net.URI fileURI)
deletes a file from the disk |
java.util.Vector |
getAllowedUsers()
Gets the users allowed access to this project |
java.net.URI |
getBugListURI()
Gets the URI for the bug list |
java.net.URI |
getCalendarURI()
Gets the URI for the calendar list |
ServerConnection |
getConnectionFor(java.lang.String user)
Returns the connection for a certain user |
java.util.Vector |
getConnections()
Returns the open connections associated with this project |
int |
getOptimalStringBufferSize(javax.swing.tree.DefaultMutableTreeNode rootNode)
Quickly gets the optimal Stringbuffer size for a tree when sending file info Due to using leafs instead of children of rootNode, this only really works right for a complete tree Need to fix to work with subtree |
java.net.URI |
getPrivateMessagesURI()
Gets the URI for the private messages directory |
java.lang.String |
getProjectDescription()
Gets the description for this project |
java.net.URI |
getPublicMessagesURI()
Gets the URI for the public messages list |
java.net.URI |
getTodoListURI()
Gets the URI for the todo list |
java.util.Vector |
getUserList()
Gets the userList attribute of the ProColServer class |
void |
loadFiles()
Loads the files for this project |
int |
moveFile(java.net.URI sourceURI,
java.net.URI destURI)
moves a file on the disk |
int |
newFile(java.net.URI fileURI,
boolean isDirectory)
creates a new file or directory |
void |
removeConnection(ServerConnection connectionIn)
Removes a Connection to the project |
void |
unloadFiles()
unloads the files for this project |
int |
writeFile(java.lang.String filePath,
byte[] dataIn,
java.lang.String userName)
writes a file to the disk, overrides write(byte[]) from com.enderak.procol.common.model.ProColProject to do backups, etc |
Methods inherited from class com.enderak.procol.common.model.ProColProject |
createFile, createFile, getFileInTree, getFileInTree, getName, getNodeForFile, getNodeForFile, getProjectFilesRootNode, getProjectFilesURI, getProjectURI, printTree, writeFile |
Methods inherited from class com.enderak.procol.common.util.EnhancedObservable |
forceNotify, forceNotify |
Methods inherited from class java.util.Observable |
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public java.util.Vector connectionList
Constructor Detail |
public ProColServerProject(java.net.URI projectRootIn, java.lang.String name, boolean loadFilesNow)
projectRootIn
- The root URIloadFilesNow
- true if files should be loaded now, or false if
loading should be deferredname
- The name of this projectMethod Detail |
public final void loadFiles()
public int checkIn(java.net.URI fileURI, ProColUser user)
fileURI
- The URI for the file to check inuser
- The user checking in the file
public void addConnection(ServerConnection connectionIn)
connectionIn
- The Connection to addpublic void removeConnection(ServerConnection connectionIn)
connectionIn
- The Connection to removepublic void closeAllConnections()
public java.util.Vector getUserList()
public java.lang.String getProjectDescription()
public int getOptimalStringBufferSize(javax.swing.tree.DefaultMutableTreeNode rootNode)
rootNode
- Description of the Parameter
public ServerConnection getConnectionFor(java.lang.String user)
user
- The user name
public java.util.Vector getConnections()
public java.util.Vector getAllowedUsers()
public java.net.URI getPrivateMessagesURI()
public java.net.URI getPublicMessagesURI()
public java.net.URI getTodoListURI()
public java.net.URI getBugListURI()
public java.net.URI getCalendarURI()
public int addDownloadFile(byte[] infoIn, java.lang.String userNameIn)
infoIn
- file info from the client - version, changelog, etcuserNameIn
- user uploading the file
public int writeFile(java.lang.String filePath, byte[] dataIn, java.lang.String userName)
dataIn
- The file datafilePath
- the file's pathuserName
- user uploading the file
public int deleteFile(java.net.URI fileURI)
fileURI
- the file to delete
public int moveFile(java.net.URI sourceURI, java.net.URI destURI)
sourceURI
- the source filedestURI
- the destination file
public int newFile(java.net.URI fileURI, boolean isDirectory)
fileURI
- The file to createisDirectory
- True if file to create is a directory, false if a file
public void unloadFiles()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |