org.sourcejammer.project.controller
Class LabelMaker

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

public class LabelMaker
extends java.lang.Object

Title: $FileName: LabelMaker.java$

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

$Description: Used to construct label objects and files.$
$KeyWordsOff: $

Field Summary
private  Archive archive
           
private  boolean buildChangeList
           
private  java.util.Date createDate
           
private  java.lang.String description
           
private  long existingLabelID
           
private  Label label
           
private  java.lang.String labelName
           
private  NodeLibrary library
           
private  long parentProjectID
           
private  java.io.File tempLabelFile
           
private  java.lang.String userName
           
 
Constructor Summary
LabelMaker()
           
 
Method Summary
private  java.io.File buildChangeListFile()
           
private  void buildLabel(long parentProjectID, java.lang.String baseSJPath, long skipFile)
          This method recursively calls itself until it has put all of the latest versions of all the file nodes in parent (and in all ProjectNode children of parent) into label.
private  void doesExistingLabelExist()
           
 Label getLabel()
          Returns the label.
 void makeLabel()
           
private  void manageChangeList()
           
private  void manageNew()
           
private  void manageRebuild()
           
 void setArchive(Archive archive)
          Sets the archive.
 void setBuildChangeList(boolean buildChangeList)
          Sets the buildChangeList.
 void setCreateDate(java.util.Date createDate)
          Sets the createDate.
 void setDescription(java.lang.String description)
          Sets the description.
 void setExistingLabelID(long existingLabelID)
          Sets the existingLabelID.
 void setLabelName(java.lang.String labelName)
          Sets the labelName.
 void setLibrary(NodeLibrary library)
          Sets the library.
 void setParentProjectID(long parentProjectID)
          Sets the parentProjectID.
 void setUserName(java.lang.String userName)
          Sets the userName.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

label

private Label label

library

private NodeLibrary library

parentProjectID

private long parentProjectID

labelName

private java.lang.String labelName

description

private java.lang.String description

createDate

private java.util.Date createDate

existingLabelID

private long existingLabelID

archive

private Archive archive

tempLabelFile

private java.io.File tempLabelFile

userName

private java.lang.String userName

buildChangeList

private boolean buildChangeList
Constructor Detail

LabelMaker

public LabelMaker()
Method Detail

makeLabel

public void makeLabel()
               throws LabelBuildException,
                      FileAccessException,
                      SecurityException
LabelBuildException
FileAccessException
SecurityException

manageNew

private void manageNew()
                throws FileAccessException,
                       LabelBuildException,
                       SecurityException
FileAccessException
LabelBuildException
SecurityException

doesExistingLabelExist

private void doesExistingLabelExist()
                             throws SecurityException,
                                    FileAccessException,
                                    LabelBuildException
SecurityException
FileAccessException
LabelBuildException

manageRebuild

private void manageRebuild()
                    throws LabelBuildException,
                           SecurityException,
                           FileAccessException
LabelBuildException
SecurityException
FileAccessException

manageChangeList

private void manageChangeList()
                       throws SecurityException,
                              LabelBuildException,
                              FileAccessException
SecurityException
LabelBuildException
FileAccessException

buildChangeListFile

private java.io.File buildChangeListFile()
                                  throws FileAccessException,
                                         LabelBuildException,
                                         SecurityException
FileAccessException
LabelBuildException
SecurityException

buildLabel

private void buildLabel(long parentProjectID,
                        java.lang.String baseSJPath,
                        long skipFile)
                 throws LabelBuildException,
                        SecurityException,
                        FileAccessException
This method recursively calls itself until it has put all of the latest versions of all the file nodes in parent (and in all ProjectNode children of parent) into label.

LabelBuildException
SecurityException
FileAccessException

getLabel

public Label getLabel()
Returns the label.

Returns:
Label

setLibrary

public void setLibrary(NodeLibrary library)
Sets the library.

Parameters:
library - The library to set

setParentProjectID

public void setParentProjectID(long parentProjectID)
Sets the parentProjectID.

Parameters:
parentProjectID - The parentProjectID to set

setCreateDate

public void setCreateDate(java.util.Date createDate)
Sets the createDate.

Parameters:
createDate - The createDate to set

setDescription

public void setDescription(java.lang.String description)
Sets the description.

Parameters:
description - The description to set

setExistingLabelID

public void setExistingLabelID(long existingLabelID)
Sets the existingLabelID.

Parameters:
existingLabelID - The existingLabelID to set

setLabelName

public void setLabelName(java.lang.String labelName)
Sets the labelName.

Parameters:
labelName - The labelName to set

setArchive

public void setArchive(Archive archive)
Sets the archive.

Parameters:
archive - The archive to set

setUserName

public void setUserName(java.lang.String userName)
Sets the userName.

Parameters:
userName - The userName to set

setBuildChangeList

public void setBuildChangeList(boolean buildChangeList)
Sets the buildChangeList.

Parameters:
buildChangeList - The buildChangeList to set


Copyright © 2003 Soucejammer project.