|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.sourcejammer.project.controller.ControllerNode | +--org.sourcejammer.project.controller.FileNode
Title: SourceJammer v 0.1.0 Description: Copyright: Copyright (c) 2001 Company:
Field Summary | |
private static java.lang.String |
INDEX_SEP
|
private boolean |
mbCheckedOut
|
private boolean |
mbLimitHistorySize
|
private java.util.Date |
mdCheckedOutDate
|
private java.util.Hashtable |
mhshChildIDIndex
|
private int |
miFileHistoryStorageType
|
private int |
miFileType
|
private int |
miMaxHistorySize
|
private org.sourcejammer.project.NodeList |
moVersions
|
private java.lang.String |
msCheckedOutPath
|
private java.lang.String |
msCheckedOutToUser
|
private java.lang.String |
msDescription
|
Fields inherited from class org.sourcejammer.project.controller.ControllerNode |
lightweightView |
Constructor Summary | |
FileNode()
|
Method Summary | |
void |
addVersionNode(org.sourcejammer.project.view.NodeInfo version,
long key)
Adds a new VersionNode to this FileNode. |
int |
childCount()
Returns number of version. |
void |
deleteVersionList(long key)
|
java.util.Date |
getCheckedOutDate()
|
java.lang.String |
getCheckedOutToPath()
|
java.lang.String |
getCheckedOutToUser()
|
java.lang.String |
getDescrption()
|
ProjectNode |
getFileParent()
Deprecated. |
int |
getFileType()
Compare to org.sourcejammer.util.AppConfig.FileTypes |
int |
getHistoryStorageType()
|
org.sourcejammer.project.view.NodeInfo |
getLatestVersionNode()
Convenience method for returning most recent version node. |
int |
getMaxHistorySize()
|
org.sourcejammer.project.view.NodeInfo |
getVersionNode(int index)
Returns the VersionNode with the specified index. |
org.sourcejammer.project.view.NodeInfo |
getVersionNode(long uniqueID)
Returns version node based on unique id. |
org.sourcejammer.project.NodeList |
getVersionNodeList()
|
org.sourcejammer.project.NodeIterator |
getVersions()
Returns a NodeIterator for iterating through of all of the VersionNodes of this FileNode. |
boolean |
isCheckedOut()
|
boolean |
isLimitHistorySize()
|
static void |
main(java.lang.String[] args)
|
org.sourcejammer.project.view.NodeInfo |
removeOldestVersionNode(long key)
|
org.sourcejammer.project.view.NodeInfo |
removeVersionNode(long uniqueID,
long key)
|
void |
rollbackToVersion(int index,
long key)
Removes all versions subsequent to the version number requested. |
void |
setCheckedOut(boolean b,
long key)
|
void |
setCheckedOutDate(java.util.Date d,
long key)
|
void |
setCheckedOutToPath(java.lang.String s,
long key)
|
void |
setCheckedOutToUser(java.lang.String s,
long key)
|
void |
setDescription(java.lang.String s,
long key)
|
void |
setFileParent(ProjectNode parent,
long key)
Convenience method for setting parent as FileNode. |
void |
setFileType(int i,
long key)
|
void |
setHistoryStorageType(int i,
long key)
|
void |
setLimitHistorySize(boolean b,
long key)
|
void |
setMaxHistorySize(int i,
long key)
|
void |
setVersionList(org.sourcejammer.project.NodeList versions)
Explicitly set the entire version list for this FileNode. |
Methods inherited from class org.sourcejammer.project.controller.ControllerNode |
checkKey, compareTo, equals, getCreatedDate, getLightweightView, getLightweightViewString, getNodeName, getParent, getRootParent, getShareParent, getUniqueID, isCorrectKey, isLocked, isShared, lock, setCreatedDate, setNodeName, setParent, setShared, setShareParent, setUniqueID, store, toString, unlock, updateLightweightViewString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private org.sourcejammer.project.NodeList moVersions
private boolean mbCheckedOut
private java.util.Date mdCheckedOutDate
private java.lang.String msCheckedOutPath
private java.lang.String msCheckedOutToUser
private int miFileType
private java.lang.String msDescription
private int miFileHistoryStorageType
private boolean mbLimitHistorySize
private int miMaxHistorySize
private java.util.Hashtable mhshChildIDIndex
private static final java.lang.String INDEX_SEP
Constructor Detail |
public FileNode()
Method Detail |
public ProjectNode getFileParent()
public void setFileParent(ProjectNode parent, long key)
parent
- -- parent ProjectNode.public org.sourcejammer.project.NodeIterator getVersions()
public org.sourcejammer.project.NodeList getVersionNodeList()
public void addVersionNode(org.sourcejammer.project.view.NodeInfo version, long key) throws SecurityException
version
- -- a new version.
SecurityException
public void rollbackToVersion(int index, long key) throws NoSuchVersionException
index
- -- version number to roll back to.
NoSuchVersionException
- if the index is >= number of
versions in this FileNode.public org.sourcejammer.project.view.NodeInfo getLatestVersionNode() throws NoSuchVersionException
NoSuchVersionException
public org.sourcejammer.project.view.NodeInfo getVersionNode(int index) throws NoSuchVersionException
index
- -- index of the VersionNode to be returned.
NoSuchVersionException
- if this does
not have a version with the specified index.public org.sourcejammer.project.view.NodeInfo getVersionNode(long uniqueID) throws NoSuchVersionException
NoSuchVersionException
public org.sourcejammer.project.view.NodeInfo removeVersionNode(long uniqueID, long key) throws NoSuchVersionException
NoSuchVersionException
public org.sourcejammer.project.view.NodeInfo removeOldestVersionNode(long key) throws org.sourcejammer.project.NodeDoesNotExistException, NoSuchVersionException
org.sourcejammer.project.NodeDoesNotExistException
NoSuchVersionException
public int childCount()
childCount
in interface org.sourcejammer.project.Node
childCount
in class ControllerNode
public void setVersionList(org.sourcejammer.project.NodeList versions)
public boolean isCheckedOut()
public void setCheckedOut(boolean b, long key)
public java.util.Date getCheckedOutDate()
public void setCheckedOutDate(java.util.Date d, long key)
public java.lang.String getCheckedOutToPath()
public void setCheckedOutToPath(java.lang.String s, long key)
public java.lang.String getCheckedOutToUser()
public void setCheckedOutToUser(java.lang.String s, long key)
public void deleteVersionList(long key)
public int getFileType()
public void setDescription(java.lang.String s, long key)
public java.lang.String getDescrption()
public void setFileType(int i, long key)
public void setHistoryStorageType(int i, long key)
public int getHistoryStorageType()
public void setLimitHistorySize(boolean b, long key)
public boolean isLimitHistorySize()
public void setMaxHistorySize(int i, long key)
public int getMaxHistorySize()
public static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |