|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.sourcejammer.project.controller.ProjectController
Title: $FileName: ProjectController.java$
Field Summary | |
private ServerActionPluginPool |
actionPlugins
|
private ArchiveContext |
context
|
private FileChangeListenerPool |
fileListeners
|
private ArchiveInfoFlex |
moArchive
|
private NodeLibrary |
moLibrary
|
private ProjectChangeListenerPool |
projectListeners
|
static long |
ROOT_PROJECT_ID
|
Constructor Summary | |
ProjectController()
|
Method Summary | |
long[] |
addFile(long projectID,
java.lang.String name,
java.io.File file,
org.sourcejammer.project.view.FileProperties props,
java.lang.String userName,
java.lang.String initialBranchIdentifier)
Adds a new file to this archive, at the specified location. |
long |
addNewVersion(long fileID,
java.io.File newVersion,
java.lang.String comment,
java.lang.String userName)
Adds a new version to an existing file. |
long |
addProject(long parentID,
java.lang.String name,
org.sourcejammer.project.view.SJRequest request,
org.sourcejammer.project.view.SJResponse response)
Adds a new project at the specified location (the NodeName object) to this archive. |
long |
branchFile(long fileID,
long parentProjectID,
java.lang.String userName,
java.lang.String comment,
java.lang.String newBranchIdentifier)
Creates a new branch of a shared file in parentProject. |
void |
branchProject(long projectID,
java.lang.String userName,
java.lang.String comment,
java.lang.String newBranchIdentifier,
org.sourcejammer.project.view.SJRequest request,
org.sourcejammer.project.view.SJResponse response)
Creates a new branch of all shared files in project, recursively. |
SharesCheckouts |
checkDeletedNodeShareStatus(long parentID,
int removedIndex)
Returns true if the deleted item is a file with shares or with more than one parent (removed or ordinary parents combined) or if the deleted item is a project that contains any files that meet this definition. |
void |
checkInFile(long fileID)
Set status of specified file to checked in. |
void |
checkOutFile(long fileID,
java.lang.String userName,
java.lang.String checkOutLocation)
Set status of specified file to checked out. |
protected org.sourcejammer.project.view.NodeInfo |
controllerNodeToNodeInfo(ControllerNode nd)
Builds new NodeInfo object from ControllerNode. |
private boolean |
convertTextFileAndManageKeywords(FileNode ndFile,
java.lang.String userName,
java.io.File file,
org.sourcejammer.project.view.NodeInfo ndVer,
java.lang.String comment)
Returns true if keyword expansion will be attempted. |
void |
copyFile(long fileID,
long newParentProjectID,
java.lang.String userName,
org.sourcejammer.project.view.SJRequest request,
org.sourcejammer.project.view.SJResponse response)
Copies the specified file from one project to another. |
void |
copyProject(long projectID,
long newParentProjectID,
java.lang.String userName,
java.lang.String newProjectName,
org.sourcejammer.project.view.SJRequest request,
org.sourcejammer.project.view.SJResponse response)
Copies the specified project and all children from one project to another. |
private void |
copyProjectsAndFiles(ProjectNode source,
ProjectNode target,
java.lang.String userName,
org.sourcejammer.project.view.SJRequest request,
org.sourcejammer.project.view.SJResponse response)
Copy all children of source to target, recursively. |
void |
deleteRemovedNode(long parentID,
int index,
boolean permanentlyDeleteAllShares,
org.sourcejammer.project.view.SJRequest request,
org.sourcejammer.project.view.SJResponse response)
Delete specified removed node. |
SharesCheckouts |
doesAnyFileContainMultipleParents(long projectID)
Like doesProjectContainShares, except it returns true if any file contains more than one removed parent or removed parent. |
private SharesCheckouts |
doesAnyFileContainMultipleParents(long projectID,
SharesCheckouts sc)
|
boolean |
doesProjectContainShares(long projectID)
Returns true if any file in the project tree is shared. |
ServerActionPluginPool |
getActionPlugins()
|
ArchiveContext |
getArchiveContext()
|
ArchiveInfoFlex |
getArchiveInfo()
Gives subclasses access to archive info object. |
private Brancher |
getBrancher(org.sourcejammer.project.view.SJRequest request,
org.sourcejammer.project.view.SJResponse response)
|
org.sourcejammer.project.view.Branch |
getBranches(long fileID)
Return master file object (as a Branch object) for the specified file id. |
long |
getChangeList(long labelID,
int verNewer,
int verOlder,
int eolType)
Generated change list for specified label and saves it as a temp file. |
org.sourcejammer.project.view.File |
getFile(long fileID)
Get File object (info about file). |
long |
getFileLatestVersion(long fileID,
int requestedEOL)
Get latest version of file source to temp dir and return temp file ID. |
TextLineReader |
getFileLatestVersionTLR(long fileID)
Get latest version of text file source as TextLineReader. |
FileChangeListenerPool |
getFileListeners()
|
FileNode |
getFileNode(long fileID)
Allows "master control" to look at file info to verify check out, check in, file type, etc. |
Delta |
getFileVersionDelta(org.sourcejammer.project.view.NodeInfo ver)
Get specified delta object for file. |
Delta |
getFileVersionTextDelta(org.sourcejammer.project.view.NodeInfo ver)
Get specified delta object for file. |
Label |
getLabelContentList(long labelID,
int versionNumber)
Returns the Label object (which contains the sourcejammer path and version number for each object in the labeled version) with the specified name. |
java.io.File |
getLatestVersionSourceFilePointer(long fileID)
Returns java.io.File object for latest version's source. |
NodeLibrary |
getNodeLibrary()
|
java.lang.String |
getPathToProject(long projectID)
|
org.sourcejammer.project.view.Project |
getProject(long projectID)
Get Project object (info about project). |
ProjectChangeListenerPool |
getProjectListeners()
|
ProjectNode |
getProjectNode(long projectID)
Be careful with this direct reference to a ProjectNode object in the cache. |
java.util.Vector |
getRemovedNodes(long projectID)
Returns a Vector of NodeInfo objects, one for each node that has been removed (but not permanently deleted) from the parent project. |
private RemoverRestorer |
getRemover(org.sourcejammer.project.view.SJRequest request,
org.sourcejammer.project.view.SJResponse response)
|
org.sourcejammer.project.view.Project |
getRootProject()
Returns the view Project for the root node of the archive for this ProjectController. |
long |
getUniqueIDFromPath(long parentID,
java.lang.String path)
Returns unique id based on a path. |
java.lang.String |
getVersionComment(long versionID)
Get the comment for the specified version. |
java.io.File |
getVersionCommentFilePointer(long fileID,
int versionNumber)
Returns java.io.File object for requested version's comment file. |
java.io.File |
getVersionSourceFilePointer(long fileID,
int versionNumber)
Returns java.io.File object for requested version's source. |
private boolean |
isChildOfProject(long parentProjectID,
long childProjectID)
Returns true if child project is a child of parent project. |
private boolean |
isProjectRemoved(ProjectNode proj)
|
void |
makeLabeledVersion(java.lang.String name,
java.lang.String description,
long parentProjectID,
java.lang.String userName)
Create and save a new labeled version with the passed-in name and description and containing all of the latest versions that are children of parent. |
void |
moveFile(long fileID,
long parentProjectID,
long newParentProjectID,
java.lang.String userName)
Moves the specified file from one project to another. |
void |
moveProject(long projectID,
long newParentProjectID,
java.lang.String newProjectName)
Moves the specified project from one project to another. |
protected org.sourcejammer.project.view.Project |
projectNodeToProject(ProjectNode ndProject)
|
void |
rebuildLabel(long labelID,
java.lang.String description,
long parentProjectID,
java.lang.String userName,
boolean buildChangeList)
|
void |
releaseFileNode(FileNode nd)
Release a file node. |
void |
removeFile(long parentID,
long fileID,
org.sourcejammer.project.view.SJRequest request,
org.sourcejammer.project.view.SJResponse response)
Remove specified file from specified project. |
void |
removeFileFromAllParents(long fileID,
org.sourcejammer.project.view.SJRequest request,
org.sourcejammer.project.view.SJResponse response)
Remove specified file from all parent projects. |
void |
removeFileShare(long fileID,
long parentProjectID)
Remove a share from a file. |
void |
removeProject(long parentID,
long projectID,
org.sourcejammer.project.view.SJRequest request,
org.sourcejammer.project.view.SJResponse response)
Remove specified project from the project hierarchy. |
void |
removeProjectAndRemoveFilesFromAllParents(long projectID,
org.sourcejammer.project.view.SJRequest request,
org.sourcejammer.project.view.SJResponse response)
Remove specified project from the project hierarchy. |
void |
removeProjectShare(long projectID,
org.sourcejammer.project.view.SJRequest request,
org.sourcejammer.project.view.SJResponse response)
Recursively removes shares from all shared files. |
private void |
removeShareProjectsAndFiles(ProjectNode source,
org.sourcejammer.project.view.SJRequest request,
org.sourcejammer.project.view.SJResponse response)
|
java.lang.String |
renameFile(long parentID,
long fileID,
java.lang.String newName)
Returns previous file name. |
java.lang.String |
renameProject(long parentID,
long projectID,
java.lang.String newName)
Returns previous project name. |
void |
restoreRemovedNode(long parentID,
java.lang.String newName,
int index,
org.sourcejammer.project.view.SJRequest request,
org.sourcejammer.project.view.SJResponse response)
Restores a project or file node that was previously removed from the archive. |
java.io.File |
retrieveVersionDeltaFile(org.sourcejammer.project.view.NodeInfo versionNode)
|
void |
setArchiveContext(ArchiveContext context)
|
void |
setArchiveInfo(ArchiveInfoFlex info)
Sets the ArchiveInfo object for this ProjectController. |
java.lang.String |
setFileDescription(long fileID,
java.lang.String description)
Changes description of a file. |
void |
setNodeLibrary(NodeLibrary lib)
Set the NodeLibrary object for this archive. |
void |
setPlugins(java.util.ArrayList plugins)
|
void |
setVersionComment(long fileID,
int version,
java.lang.String comment)
Set the comment of the specified version. |
void |
shareFile(long fileID,
long newParentProjectID)
Creates a new share for the specified file in the specified project. |
void |
shareProject(long projectID,
long newParentProjectID,
java.lang.String newProjectName,
java.lang.String userName,
org.sourcejammer.project.view.SJRequest request,
org.sourcejammer.project.view.SJResponse response)
Recurses through the project specified by projectID and creates a new share for each file in newParentProject. |
private void |
shareProjectsAndFiles(ProjectNode source,
ProjectNode target,
java.lang.String userName,
org.sourcejammer.project.view.SJRequest request,
org.sourcejammer.project.view.SJResponse response)
|
private java.lang.String[] |
versionListToStringArray(FileNode file)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final long ROOT_PROJECT_ID
private ArchiveInfoFlex moArchive
private ArchiveContext context
private NodeLibrary moLibrary
private FileChangeListenerPool fileListeners
private ServerActionPluginPool actionPlugins
private ProjectChangeListenerPool projectListeners
Constructor Detail |
public ProjectController()
Method Detail |
public void setArchiveContext(ArchiveContext context)
setArchiveContext
in interface Archive
public ArchiveContext getArchiveContext()
getArchiveContext
in interface Archive
public FileChangeListenerPool getFileListeners()
getFileListeners
in interface Archive
public ProjectChangeListenerPool getProjectListeners()
getProjectListeners
in interface Archive
public ServerActionPluginPool getActionPlugins()
getActionPlugins
in interface Archive
public NodeLibrary getNodeLibrary()
getNodeLibrary
in interface Archive
public void setPlugins(java.util.ArrayList plugins)
public void setArchiveInfo(ArchiveInfoFlex info) throws FileAccessException
FileAccessException
public void setNodeLibrary(NodeLibrary lib)
public ArchiveInfoFlex getArchiveInfo()
getArchiveInfo
in interface Archive
private Brancher getBrancher(org.sourcejammer.project.view.SJRequest request, org.sourcejammer.project.view.SJResponse response)
private RemoverRestorer getRemover(org.sourcejammer.project.view.SJRequest request, org.sourcejammer.project.view.SJResponse response)
public java.lang.String getPathToProject(long projectID) throws SecurityException, ProjectDoesNotExistException, FileAccessException
getPathToProject
in interface Archive
SecurityException
ProjectDoesNotExistException
FileAccessException
public SharesCheckouts checkDeletedNodeShareStatus(long parentID, int removedIndex) throws ProjectDoesNotExistException, FileAccessException, SecurityException, org.sourcejammer.project.NodeDoesNotExistException, FileDoesNotExistException
Archive
checkDeletedNodeShareStatus
in interface Archive
ProjectDoesNotExistException
FileAccessException
SecurityException
org.sourcejammer.project.NodeDoesNotExistException
FileDoesNotExistException
public SharesCheckouts doesAnyFileContainMultipleParents(long projectID) throws FileAccessException, SecurityException, ProjectDoesNotExistException, FileDoesNotExistException
FileAccessException
SecurityException
ProjectDoesNotExistException
FileDoesNotExistException
private SharesCheckouts doesAnyFileContainMultipleParents(long projectID, SharesCheckouts sc) throws FileAccessException, SecurityException, ProjectDoesNotExistException, FileDoesNotExistException
FileAccessException
SecurityException
ProjectDoesNotExistException
FileDoesNotExistException
public boolean doesProjectContainShares(long projectID) throws FileAccessException, SecurityException, ProjectDoesNotExistException, FileDoesNotExistException
Archive
doesProjectContainShares
in interface Archive
FileAccessException
SecurityException
ProjectDoesNotExistException
FileDoesNotExistException
private boolean isProjectRemoved(ProjectNode proj) throws FileAccessException, SecurityException, ProjectDoesNotExistException
FileAccessException
SecurityException
ProjectDoesNotExistException
public org.sourcejammer.project.view.Branch getBranches(long fileID) throws SecurityException, FileDoesNotExistException, FileAccessException
Archive
getBranches
in interface Archive
SecurityException
FileDoesNotExistException
FileAccessException
public long branchFile(long fileID, long parentProjectID, java.lang.String userName, java.lang.String comment, java.lang.String newBranchIdentifier) throws SecurityException, FileDoesNotExistException, FileAccessException, NoSuchVersionException, ProjectDoesNotExistException, org.sourcejammer.project.NodeDoesNotExistException, org.sourcejammer.project.NodeExistsException
branchFile
in interface Archive
SecurityException
FileDoesNotExistException
FileAccessException
NoSuchVersionException
ProjectDoesNotExistException
org.sourcejammer.project.NodeDoesNotExistException
org.sourcejammer.project.NodeExistsException
public void branchProject(long projectID, java.lang.String userName, java.lang.String comment, java.lang.String newBranchIdentifier, org.sourcejammer.project.view.SJRequest request, org.sourcejammer.project.view.SJResponse response) throws FileAccessException, SecurityException, ProjectDoesNotExistException, org.sourcejammer.project.NodeExistsException, NoSuchVersionException, FileDoesNotExistException, org.sourcejammer.project.NodeDoesNotExistException
Archive
branchProject
in interface Archive
FileAccessException
SecurityException
ProjectDoesNotExistException
org.sourcejammer.project.NodeExistsException
NoSuchVersionException
FileDoesNotExistException
org.sourcejammer.project.NodeDoesNotExistException
public void removeFileShare(long fileID, long parentProjectID) throws SecurityException, FileDoesNotExistException, FileAccessException, ProjectDoesNotExistException, NoSuchVersionException, org.sourcejammer.project.NodeDoesNotExistException
removeFileShare
in interface Archive
SecurityException
FileDoesNotExistException
FileAccessException
ProjectDoesNotExistException
NoSuchVersionException
org.sourcejammer.project.NodeDoesNotExistException
public void removeProjectShare(long projectID, org.sourcejammer.project.view.SJRequest request, org.sourcejammer.project.view.SJResponse response) throws FileAccessException, FileDoesNotExistException, SecurityException, ProjectDoesNotExistException, NoSuchVersionException, org.sourcejammer.project.NodeDoesNotExistException
removeProjectShare
in interface Archive
FileAccessException
FileDoesNotExistException
SecurityException
ProjectDoesNotExistException
NoSuchVersionException
org.sourcejammer.project.NodeDoesNotExistException
private void removeShareProjectsAndFiles(ProjectNode source, org.sourcejammer.project.view.SJRequest request, org.sourcejammer.project.view.SJResponse response) throws FileAccessException, FileDoesNotExistException, SecurityException, ProjectDoesNotExistException, NoSuchVersionException, org.sourcejammer.project.NodeDoesNotExistException
FileAccessException
FileDoesNotExistException
SecurityException
ProjectDoesNotExistException
NoSuchVersionException
org.sourcejammer.project.NodeDoesNotExistException
public void shareFile(long fileID, long newParentProjectID) throws SecurityException, FileDoesNotExistException, FileAccessException, ProjectDoesNotExistException, NoSuchVersionException, org.sourcejammer.project.NodeExistsException
shareFile
in interface Archive
SecurityException
FileDoesNotExistException
FileAccessException
ProjectDoesNotExistException
NoSuchVersionException
org.sourcejammer.project.NodeExistsException
public void shareProject(long projectID, long newParentProjectID, java.lang.String newProjectName, java.lang.String userName, org.sourcejammer.project.view.SJRequest request, org.sourcejammer.project.view.SJResponse response) throws FileAccessException, SecurityException, ProjectDoesNotExistException, org.sourcejammer.project.NodeExistsException, NoSuchVersionException, FileDoesNotExistException
Archive
shareProject
in interface Archive
FileAccessException
SecurityException
ProjectDoesNotExistException
org.sourcejammer.project.NodeExistsException
NoSuchVersionException
FileDoesNotExistException
private void shareProjectsAndFiles(ProjectNode source, ProjectNode target, java.lang.String userName, org.sourcejammer.project.view.SJRequest request, org.sourcejammer.project.view.SJResponse response) throws FileAccessException, FileDoesNotExistException, ProjectDoesNotExistException, SecurityException, NoSuchVersionException, org.sourcejammer.project.NodeExistsException
FileAccessException
FileDoesNotExistException
ProjectDoesNotExistException
SecurityException
NoSuchVersionException
org.sourcejammer.project.NodeExistsException
public void copyFile(long fileID, long newParentProjectID, java.lang.String userName, org.sourcejammer.project.view.SJRequest request, org.sourcejammer.project.view.SJResponse response) throws org.sourcejammer.project.NodeExistsException, org.sourcejammer.project.NodeDoesNotExistException, SecurityException, FileAccessException, FileDoesNotExistException, NoSuchVersionException
copyFile
in interface Archive
org.sourcejammer.project.NodeExistsException
org.sourcejammer.project.NodeDoesNotExistException
SecurityException
FileAccessException
FileDoesNotExistException
NoSuchVersionException
public void moveFile(long fileID, long parentProjectID, long newParentProjectID, java.lang.String userName) throws org.sourcejammer.project.NodeExistsException, FileAccessException, SecurityException, NoSuchVersionException, org.sourcejammer.project.NodeDoesNotExistException, FileDoesNotExistException
moveFile
in interface Archive
org.sourcejammer.project.NodeExistsException
FileAccessException
SecurityException
NoSuchVersionException
org.sourcejammer.project.NodeDoesNotExistException
FileDoesNotExistException
public void moveProject(long projectID, long newParentProjectID, java.lang.String newProjectName) throws org.sourcejammer.project.NodeExistsException, FileAccessException, SecurityException, NoSuchVersionException, org.sourcejammer.project.NodeDoesNotExistException, ProjectDoesNotExistException
moveProject
in interface Archive
org.sourcejammer.project.NodeExistsException
FileAccessException
SecurityException
NoSuchVersionException
org.sourcejammer.project.NodeDoesNotExistException
ProjectDoesNotExistException
public void copyProject(long projectID, long newParentProjectID, java.lang.String userName, java.lang.String newProjectName, org.sourcejammer.project.view.SJRequest request, org.sourcejammer.project.view.SJResponse response) throws org.sourcejammer.project.NodeExistsException, org.sourcejammer.project.NodeDoesNotExistException, SecurityException, FileAccessException, FileDoesNotExistException, NoSuchVersionException, ProjectDoesNotExistException
Archive
copyProject
in interface Archive
org.sourcejammer.project.NodeExistsException
org.sourcejammer.project.NodeDoesNotExistException
SecurityException
FileAccessException
FileDoesNotExistException
NoSuchVersionException
ProjectDoesNotExistException
private void copyProjectsAndFiles(ProjectNode source, ProjectNode target, java.lang.String userName, org.sourcejammer.project.view.SJRequest request, org.sourcejammer.project.view.SJResponse response) throws NoSuchVersionException, FileDoesNotExistException, FileAccessException, SecurityException, org.sourcejammer.project.NodeDoesNotExistException, org.sourcejammer.project.NodeExistsException, ProjectDoesNotExistException
NoSuchVersionException
FileDoesNotExistException
FileAccessException
SecurityException
org.sourcejammer.project.NodeDoesNotExistException
org.sourcejammer.project.NodeExistsException
ProjectDoesNotExistException
public org.sourcejammer.project.view.Project getRootProject() throws FileAccessException, SecurityException
getRootProject
in interface Archive
FileAccessException
SecurityException
public long addProject(long parentID, java.lang.String name, org.sourcejammer.project.view.SJRequest request, org.sourcejammer.project.view.SJResponse response) throws FileAccessException, ProjectDoesNotExistException, org.sourcejammer.project.NodeExistsException, SecurityException
addProject
in interface Archive
FileAccessException
ProjectDoesNotExistException
org.sourcejammer.project.NodeExistsException
SecurityException
public long[] addFile(long projectID, java.lang.String name, java.io.File file, org.sourcejammer.project.view.FileProperties props, java.lang.String userName, java.lang.String initialBranchIdentifier) throws FileAccessException, ProjectDoesNotExistException, FileAlreadyExistsException, SecurityException, TextFileException
addFile
in interface Archive
FileAccessException
ProjectDoesNotExistException
FileAlreadyExistsException
SecurityException
TextFileException
public java.lang.String setFileDescription(long fileID, java.lang.String description) throws FileAccessException, FileDoesNotExistException, SecurityException
setFileDescription
in interface Archive
FileAccessException
FileDoesNotExistException
SecurityException
public long addNewVersion(long fileID, java.io.File newVersion, java.lang.String comment, java.lang.String userName) throws FileAccessException, FileDoesNotExistException, TextFileException, SecurityException, EndOfSourceException, InvalidSourceException, WrongFileTypeException
addNewVersion
in interface Archive
FileAccessException
FileDoesNotExistException
TextFileException
SecurityException
EndOfSourceException
InvalidSourceException
WrongFileTypeException
public ProjectNode getProjectNode(long projectID) throws SecurityException, FileAccessException, ProjectDoesNotExistException
getProjectNode
in interface Archive
SecurityException
FileAccessException
ProjectDoesNotExistException
public org.sourcejammer.project.view.Project getProject(long projectID) throws FileAccessException, ProjectDoesNotExistException, SecurityException
getProject
in interface Archive
FileAccessException
ProjectDoesNotExistException
SecurityException
private boolean convertTextFileAndManageKeywords(FileNode ndFile, java.lang.String userName, java.io.File file, org.sourcejammer.project.view.NodeInfo ndVer, java.lang.String comment) throws UserDoesNotExistException, TextFileException, FileAccessException
UserDoesNotExistException
TextFileException
FileAccessException
public org.sourcejammer.project.view.File getFile(long fileID) throws FileAccessException, FileDoesNotExistException, SecurityException
getFile
in interface Archive
FileAccessException
FileDoesNotExistException
SecurityException
private java.lang.String[] versionListToStringArray(FileNode file)
public java.io.File getLatestVersionSourceFilePointer(long fileID) throws FileAccessException, FileDoesNotExistException, SecurityException
getLatestVersionSourceFilePointer
in interface Archive
FileAccessException
FileDoesNotExistException
SecurityException
public java.io.File getVersionSourceFilePointer(long fileID, int versionNumber) throws FileAccessException, FileDoesNotExistException, SecurityException
getVersionSourceFilePointer
in interface Archive
FileAccessException
FileDoesNotExistException
SecurityException
public java.io.File getVersionCommentFilePointer(long fileID, int versionNumber) throws FileAccessException, FileDoesNotExistException, SecurityException
getVersionCommentFilePointer
in interface Archive
FileAccessException
FileDoesNotExistException
SecurityException
public long getFileLatestVersion(long fileID, int requestedEOL) throws FileAccessException, FileDoesNotExistException, TextFileException, SecurityException
getFileLatestVersion
in interface Archive
FileAccessException
FileDoesNotExistException
TextFileException
SecurityException
public TextLineReader getFileLatestVersionTLR(long fileID) throws FileAccessException, FileDoesNotExistException, TextFileException, SecurityException
getFileLatestVersionTLR
in interface Archive
FileAccessException
FileDoesNotExistException
TextFileException
SecurityException
public Delta getFileVersionDelta(org.sourcejammer.project.view.NodeInfo ver) throws FileAccessException, NoSuchVersionException, WrongFileTypeException
getFileVersionDelta
in interface Archive
FileAccessException
NoSuchVersionException
WrongFileTypeException
public Delta getFileVersionTextDelta(org.sourcejammer.project.view.NodeInfo ver) throws FileAccessException, NoSuchVersionException, WrongFileTypeException
getFileVersionTextDelta
in interface Archive
FileAccessException
NoSuchVersionException
WrongFileTypeException
public void removeProject(long parentID, long projectID, org.sourcejammer.project.view.SJRequest request, org.sourcejammer.project.view.SJResponse response) throws FileAccessException, ProjectDoesNotExistException, SecurityException
removeProject
in interface Archive
FileAccessException
ProjectDoesNotExistException
SecurityException
public void removeProjectAndRemoveFilesFromAllParents(long projectID, org.sourcejammer.project.view.SJRequest request, org.sourcejammer.project.view.SJResponse response) throws FileAccessException, ProjectDoesNotExistException, SecurityException
removeProjectAndRemoveFilesFromAllParents
in interface Archive
FileAccessException
ProjectDoesNotExistException
SecurityException
public void removeFile(long parentID, long fileID, org.sourcejammer.project.view.SJRequest request, org.sourcejammer.project.view.SJResponse response) throws FileAccessException, ProjectDoesNotExistException, FileDoesNotExistException, SecurityException
removeFile
in interface Archive
FileAccessException
ProjectDoesNotExistException
FileDoesNotExistException
SecurityException
public void removeFileFromAllParents(long fileID, org.sourcejammer.project.view.SJRequest request, org.sourcejammer.project.view.SJResponse response) throws FileAccessException, ProjectDoesNotExistException, FileDoesNotExistException, SecurityException
removeFileFromAllParents
in interface Archive
FileAccessException
ProjectDoesNotExistException
FileDoesNotExistException
SecurityException
public java.io.File retrieveVersionDeltaFile(org.sourcejammer.project.view.NodeInfo versionNode) throws FileAccessException, WrongFileTypeException
retrieveVersionDeltaFile
in interface Archive
FileAccessException
WrongFileTypeException
public void setVersionComment(long fileID, int version, java.lang.String comment) throws FileAccessException, FileDoesNotExistException, NoSuchVersionException, SecurityException
setVersionComment
in interface Archive
FileAccessException
FileDoesNotExistException
NoSuchVersionException
SecurityException
public java.lang.String getVersionComment(long versionID) throws FileAccessException, ProjectDoesNotExistException, FileDoesNotExistException, NoSuchVersionException
getVersionComment
in interface Archive
FileAccessException
ProjectDoesNotExistException
FileDoesNotExistException
NoSuchVersionException
public void checkOutFile(long fileID, java.lang.String userName, java.lang.String checkOutLocation) throws FileAccessException, FileDoesNotExistException, CheckOutException, SecurityException
checkOutFile
in interface Archive
FileAccessException
FileDoesNotExistException
CheckOutException
SecurityException
public void checkInFile(long fileID) throws FileAccessException, FileDoesNotExistException, CheckInException, SecurityException
checkInFile
in interface Archive
FileAccessException
FileDoesNotExistException
CheckInException
SecurityException
public long getUniqueIDFromPath(long parentID, java.lang.String path) throws FileAccessException, ProjectDoesNotExistException, org.sourcejammer.project.NodeDoesNotExistException, SecurityException
Archive
getUniqueIDFromPath
in interface Archive
FileAccessException
ProjectDoesNotExistException
org.sourcejammer.project.NodeDoesNotExistException
SecurityException
public FileNode getFileNode(long fileID) throws FileDoesNotExistException, FileAccessException, SecurityException
getFileNode
in interface Archive
FileDoesNotExistException
FileAccessException
SecurityException
public void releaseFileNode(FileNode nd) throws FileAccessException
releaseFileNode
in interface Archive
FileAccessException
private boolean isChildOfProject(long parentProjectID, long childProjectID) throws FileAccessException, ProjectDoesNotExistException, SecurityException
FileAccessException
ProjectDoesNotExistException
SecurityException
public void restoreRemovedNode(long parentID, java.lang.String newName, int index, org.sourcejammer.project.view.SJRequest request, org.sourcejammer.project.view.SJResponse response) throws FileAccessException, ProjectDoesNotExistException, FileDoesNotExistException, org.sourcejammer.project.NodeDoesNotExistException, org.sourcejammer.project.NodeExistsException, SecurityException
restoreRemovedNode
in interface Archive
parentID
- -- ID of the project from which
the node was removed.newName
- -- a new name for the removed node.index
- -- Index value of the removed node in the
removed nodes list (see getRemovedNodes()).
FileAccessException
ProjectDoesNotExistException
FileDoesNotExistException
org.sourcejammer.project.NodeDoesNotExistException
org.sourcejammer.project.NodeExistsException
SecurityException
public java.lang.String renameFile(long parentID, long fileID, java.lang.String newName) throws FileAccessException, ProjectDoesNotExistException, FileDoesNotExistException, org.sourcejammer.project.NodeExistsException, SecurityException
renameFile
in interface Archive
FileAccessException
ProjectDoesNotExistException
FileDoesNotExistException
org.sourcejammer.project.NodeExistsException
SecurityException
public java.lang.String renameProject(long parentID, long projectID, java.lang.String newName) throws FileAccessException, ProjectDoesNotExistException, org.sourcejammer.project.NodeExistsException, SecurityException
Archive
renameProject
in interface Archive
FileAccessException
ProjectDoesNotExistException
org.sourcejammer.project.NodeExistsException
SecurityException
public void deleteRemovedNode(long parentID, int index, boolean permanentlyDeleteAllShares, org.sourcejammer.project.view.SJRequest request, org.sourcejammer.project.view.SJResponse response) throws FileAccessException, FileDoesNotExistException, ProjectDoesNotExistException, SecurityException, org.sourcejammer.project.NodeDoesNotExistException
deleteRemovedNode
in interface Archive
FileAccessException
FileDoesNotExistException
ProjectDoesNotExistException
SecurityException
org.sourcejammer.project.NodeDoesNotExistException
public java.util.Vector getRemovedNodes(long projectID) throws FileAccessException, ProjectDoesNotExistException, SecurityException
getRemovedNodes
in interface Archive
projectID
- -- project id to return a list of removed nodes for.
FileAccessException
ProjectDoesNotExistException
SecurityException
public void makeLabeledVersion(java.lang.String name, java.lang.String description, long parentProjectID, java.lang.String userName) throws LabelBuildException, FileAccessException, SecurityException
makeLabeledVersion
in interface Archive
LabelBuildException
FileAccessException
SecurityException
public void rebuildLabel(long labelID, java.lang.String description, long parentProjectID, java.lang.String userName, boolean buildChangeList) throws LabelBuildException, FileAccessException, SecurityException
rebuildLabel
in interface Archive
LabelBuildException
FileAccessException
SecurityException
public long getChangeList(long labelID, int verNewer, int verOlder, int eolType) throws org.sourcejammer.project.NodeDoesNotExistException, FileAccessException, FileDoesNotExistException, SecurityException, EndOfSourceException, InvalidSourceException, WrongFileTypeException, NoSuchVersionException, TextFileException, ProjectDoesNotExistException
getChangeList
in interface Archive
org.sourcejammer.project.NodeDoesNotExistException
FileAccessException
FileDoesNotExistException
SecurityException
EndOfSourceException
InvalidSourceException
WrongFileTypeException
NoSuchVersionException
TextFileException
ProjectDoesNotExistException
public Label getLabelContentList(long labelID, int versionNumber) throws org.sourcejammer.project.NodeDoesNotExistException, FileAccessException, FileDoesNotExistException, SecurityException, EndOfSourceException, InvalidSourceException, WrongFileTypeException, NoSuchVersionException, TextFileException, ProjectDoesNotExistException
getLabelContentList
in interface Archive
org.sourcejammer.project.NodeDoesNotExistException
FileAccessException
FileDoesNotExistException
SecurityException
EndOfSourceException
InvalidSourceException
WrongFileTypeException
NoSuchVersionException
TextFileException
ProjectDoesNotExistException
protected org.sourcejammer.project.view.Project projectNodeToProject(ProjectNode ndProject) throws SecurityException, ProjectDoesNotExistException, FileAccessException, FileDoesNotExistException, org.sourcejammer.project.NodeExistsException
SecurityException
ProjectDoesNotExistException
FileAccessException
FileDoesNotExistException
org.sourcejammer.project.NodeExistsException
protected org.sourcejammer.project.view.NodeInfo controllerNodeToNodeInfo(ControllerNode nd) throws NoSuchVersionException
NoSuchVersionException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |