|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--vc.corba.server.ProjectElementContainer | +--vc.corba.server.DirectoryContainer
DirectoryContainer holds the directory object and it maintains the relations/references with other objects on the behalf of the directory object. It also has the methods to deal with the operations related to the directory object. It is like an association between the directory information and the related classes.
Field Summary | |
Directory |
currentDirectory
Actual directory object that represents the information about the directory |
java.util.Vector |
diskMaps
Holds the apping between this and the file system directory for all the users |
java.util.Vector |
files
Holds the dependent files of this directory |
protected DirectoryContainer |
parentDirectory
Maintains the back reference to the Parent container |
java.util.Vector |
subDirectories
Holds the subdirectories of this directory |
java.util.Vector |
versionHistory
Maintains the details of each version/label for the project elements |
Constructor Summary | |
DirectoryContainer(Directory currentDirectory,
DirectoryContainer parentDirectory)
Constructs the DirectoryContainer object from the Directory and the Parent objects |
Method Summary | |
FileContainer |
addFile(File childFile)
Adds a file as the child of this directory |
void |
addNewLabelVersion(LabelVersionMap labelVersionMap)
Adds one more LabelVersionMap object to the collection of LabelVersionMaps set to it |
void |
addSubDirectory(DirectoryContainer subDirectoryContainer)
Adds an another DirectoryContainer object a the subdirectory of this Directory |
void |
destroyCurrentDirectory()
Destroys the current directory and the dependent objects by requesting them to destroy themselves. |
void |
getChildrenRecursively(java.util.Vector directoryVector,
java.util.Vector fileVector,
boolean recursively)
Gets all the child files and subdirectories of the current folder and the subdirectoriess to it. |
DirDiskMap |
getDiskMap(java.lang.String user)
Gets a diskmap set for a particular user |
DirDiskMap |
getDiskMap(java.lang.String user,
boolean returnEmptyDiskMap)
Gets an actual diskmap set for a particular user or an empty diskmap if the intended diskmap is not found |
DirDiskMap[] |
getDiskMaps()
Gets all the diskmaps set for a particular project element |
File[] |
getFiles()
Gets the information of all the child files of this directory |
void |
getFilesRecursively(java.util.Vector fileHolder)
Gets all the child files of the current folder and the subfolders to it. |
HistoryElement |
getHistoryElement(LabelVersionMap currentLabelVersionMap)
Gets the history element for the current directory along with the label/version info taken from the parameter. |
java.util.Vector |
getLabelVersions(java.lang.String user,
boolean getLabel,
boolean getVersion,
java.lang.String startTime,
java.lang.String endTime)
Gets the LabelVersionMap of this container with the matching criteria specified with the help of parameters |
DirectoryContainer |
getParentDirectory()
Returns the referenec to its parent container |
Directory[] |
getSubDirectories(java.lang.String userID)
Gets the subdirectories of this directory with the information personalized to a particulare user like the directory mapped to a project for a user |
java.lang.String |
getVersionForLabel(java.lang.String labelName)
Gets the Version name for a particular label mapped to. |
void |
removeVersion(java.lang.String labelName,
java.lang.String versionName)
Removes a LabelVersionMap with the matching Label and Version names |
void |
setDiskMap(DirDiskMap diskMap)
Adds one more diskmap object to the collection of diskmaps set to it |
void |
setLabelVersionAsLatest(LabelVersionMap labelVersionMap,
boolean removeLatest)
Sets a aprticular LabelVersionMap as the latest |
void |
setParentDirectory(DirectoryContainer parentDirectory)
Sets the refernvece to a DirectoryContainer as its parent container |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public Directory currentDirectory
public java.util.Vector subDirectories
public java.util.Vector files
protected DirectoryContainer parentDirectory
public java.util.Vector diskMaps
public java.util.Vector versionHistory
Constructor Detail |
public DirectoryContainer(Directory currentDirectory, DirectoryContainer parentDirectory)
currentDirectory
- to initialize the field currentDirectoryparentDirectory
- to initialize the field parentDirectoryMethod Detail |
public void addSubDirectory(DirectoryContainer subDirectoryContainer)
subDirectoryContainer
- the directory container of the directory object
that is to be added as the subdirectorypublic FileContainer addFile(File childFile)
childFile
- file object for whome the container will be cretaed
and added as the childpublic void destroyCurrentDirectory()
public Directory[] getSubDirectories(java.lang.String userID)
userID
- userID with reference to which the user specific properties are extracted.public File[] getFiles()
public void getFilesRecursively(java.util.Vector fileHolder)
fileHolder
- an inout parameter that carries back all the files
found recursively from the current folderpublic void getChildrenRecursively(java.util.Vector directoryVector, java.util.Vector fileVector, boolean recursively)
directoryHolder
- an inout parameter that carries back all the directories
found recursively from the current folderfileHolder
- an inout parameter that carries back all the files
found recursively from the current folderrecursively
- if this parameter is true then all the files and subdirectories
will be fetched recursively, otherwise from the current folder alonepublic HistoryElement getHistoryElement(LabelVersionMap currentLabelVersionMap)
currentLabelVersionMap
- Gives the information about the version/label to
construct the HistoryElement based on itpublic void setParentDirectory(DirectoryContainer parentDirectory)
parentDirectory
- to inirialize the field parentDirectorypublic DirectoryContainer getParentDirectory()
public void setDiskMap(DirDiskMap diskMap)
diskMap
- the new diskmap added to the collection of diskmaps set to itpublic DirDiskMap getDiskMap(java.lang.String user)
user
- user for whom the matching diskmap is to be foundpublic DirDiskMap getDiskMap(java.lang.String user, boolean returnEmptyDiskMap)
user
- user for whom the matching diskmap is to be foundreturnEmptyDiskMap
- retrns an empty diakmap if this is true and a
matching diskmap is not foundpublic DirDiskMap[] getDiskMaps()
public void addNewLabelVersion(LabelVersionMap labelVersionMap)
labelVersionMap
- the new LabelVersionMap added to the collection of LabelVersionMaps set to itpublic java.util.Vector getLabelVersions(java.lang.String user, boolean getLabel, boolean getVersion, java.lang.String startTime, java.lang.String endTime) throws java.lang.Throwable
user
- user for whom the matching LabelVersionMaps are to be foundgetLabel
- if true then the LabelVersionMaps related to labels will be returnedgetVersion
- if true then the LabelVersionMaps related to versions will be returnedstartTime
- LabelVersionMaps created on or after this time will only be returnedendTime
- LabelVersionMaps created on or before this time will only be returnedpublic void setLabelVersionAsLatest(LabelVersionMap labelVersionMap, boolean removeLatest)
labelVersionMap
- LabelVersionMap instance that is to be set as the latest one.removeLatest
- if true then the existing latest LabelVersionMap will be deletedpublic java.lang.String getVersionForLabel(java.lang.String labelName)
labelName
- LabelName for which the matching version name is to be returnedpublic void removeVersion(java.lang.String labelName, java.lang.String versionName)
labelName
- label whose matching LabelVersionMap is to be deletedversionName
- version whose matching LabelVersionMap is to be deleted
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |