org.sourcejammer.project.controller
Class Brancher

java.lang.Object
  |
  +--org.sourcejammer.project.controller.Brancher

public class Brancher
extends java.lang.Object

Title: $FileName: Brancher.java$

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

$Description: Object that controls branching of files/projects.$
$KeyWordsOff: $

Field Summary
private  ArchiveInfoFlex moArchive
           
private  NodeLibrary moLibrary
           
private  Archive parentArchve
           
private  org.sourcejammer.project.view.SJRequest request
           
private  org.sourcejammer.project.view.SJResponse response
           
 
Constructor Summary
Brancher(NodeLibrary lib, ArchiveInfoFlex arch)
           
Brancher(NodeLibrary lib, ArchiveInfoFlex arch, org.sourcejammer.project.view.SJRequest request, org.sourcejammer.project.view.SJResponse response, Archive parentArchive)
           
 
Method Summary
 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 branchProjectsAndFiles(ProjectNode source, java.lang.String userName, java.lang.String comment, java.lang.String newBranchIdentifier)
           
private  void buildBranchVersion(FileNode fileNode, long key, java.lang.String userName, long prevUniqueID, java.lang.String comment)
           
private  FileNode buildNewFileNode(FileNode oldFileNode, FileNode newFileNode, long parentProjectID, long key)
           
private  void buildNewFullVersion(FileNode newFileNode, long key, java.lang.String userName)
           
private  org.sourcejammer.project.view.NodeInfo copyVersion(org.sourcejammer.project.view.NodeInfo version, java.lang.String userName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

moLibrary

private NodeLibrary moLibrary

moArchive

private ArchiveInfoFlex moArchive

request

private org.sourcejammer.project.view.SJRequest request

response

private org.sourcejammer.project.view.SJResponse response

parentArchve

private Archive parentArchve
Constructor Detail

Brancher

public Brancher(NodeLibrary lib,
                ArchiveInfoFlex arch)

Brancher

public Brancher(NodeLibrary lib,
                ArchiveInfoFlex arch,
                org.sourcejammer.project.view.SJRequest request,
                org.sourcejammer.project.view.SJResponse response,
                Archive parentArchive)
Method Detail

branchProjectsAndFiles

public void branchProjectsAndFiles(ProjectNode source,
                                   java.lang.String userName,
                                   java.lang.String comment,
                                   java.lang.String newBranchIdentifier)
                            throws org.sourcejammer.project.NodeExistsException,
                                   org.sourcejammer.project.NodeDoesNotExistException,
                                   ProjectDoesNotExistException,
                                   NoSuchVersionException,
                                   FileAccessException,
                                   FileDoesNotExistException,
                                   SecurityException
org.sourcejammer.project.NodeExistsException
org.sourcejammer.project.NodeDoesNotExistException
ProjectDoesNotExistException
NoSuchVersionException
FileAccessException
FileDoesNotExistException
SecurityException

branchFile

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
Creates a new branch of a shared file in parentProject.

SecurityException
FileDoesNotExistException
FileAccessException
NoSuchVersionException
ProjectDoesNotExistException
org.sourcejammer.project.NodeDoesNotExistException
org.sourcejammer.project.NodeExistsException

buildBranchVersion

private void buildBranchVersion(FileNode fileNode,
                                long key,
                                java.lang.String userName,
                                long prevUniqueID,
                                java.lang.String comment)
                         throws NoSuchVersionException,
                                FileAccessException,
                                SecurityException
NoSuchVersionException
FileAccessException
SecurityException

buildNewFullVersion

private void buildNewFullVersion(FileNode newFileNode,
                                 long key,
                                 java.lang.String userName)
                          throws NoSuchVersionException,
                                 SecurityException,
                                 FileAccessException
NoSuchVersionException
SecurityException
FileAccessException

copyVersion

private org.sourcejammer.project.view.NodeInfo copyVersion(org.sourcejammer.project.view.NodeInfo version,
                                                           java.lang.String userName)
                                                    throws FileAccessException
FileAccessException

buildNewFileNode

private FileNode buildNewFileNode(FileNode oldFileNode,
                                  FileNode newFileNode,
                                  long parentProjectID,
                                  long key)
                           throws SecurityException
SecurityException


Copyright © 2003 Soucejammer project.