SourceJammer 1.2.0.1 May 20, 2002
Copyright (c) 2001, 2002 Robert MacGrogan

org.sourcejammer.project.model.filesys
Class FileNodeFS

java.lang.Object
  |
  +--org.sourcejammer.project.controller.ControllerNode
        |
        +--org.sourcejammer.project.controller.FileNode
              |
              +--org.sourcejammer.project.model.filesys.FileNodeFS
All Implemented Interfaces:
java.lang.Comparable, Node, NodeFS

public class FileNodeFS
extends FileNode
implements NodeFS

Title: SourceJammer v 0.1.0 Description: Copyright: Copyright (c) 2001 Company:


Constructor Summary
FileNodeFS()
           
 
Method Summary
 java.lang.String getFileName()
          Gets the name of the file used by the filesys implementation to store info on this Node.
 long getFileSysKey()
          Returns key used to lock and unlock object file on the file system.
 boolean isReadOnly()
           
 void lock(long key)
          Override the super class method to check if node is read-only.
 void setFileName(java.lang.String s, long key)
          Sets the name to the file used by filesys implementation to store info on this Node.
 void setFileSysKey(long l)
           
 void setReadOnly()
           
 void store(long key, ArchiveInfo info)
          Creates and stores the XML file for this Node.
 
Methods inherited from class org.sourcejammer.project.controller.FileNode
addVersionNode, childCount, deleteVersionList, getCheckedOutDate, getCheckedOutToPath, getCheckedOutToUser, getDescrption, getFileParent, getFileType, getHistoryStorageType, getLatestVersionNode, getMaxHistorySize, getVersionNode, getVersionNode, getVersionNodeList, getVersions, isCheckedOut, isLimitHistorySize, main, removeOldestVersionNode, removeVersionNode, rollbackToVersion, setCheckedOut, setCheckedOutDate, setCheckedOutToPath, setCheckedOutToUser, setDescription, setFileParent, setFileType, setHistoryStorageType, setLimitHistorySize, setMaxHistorySize, setVersionList
 
Methods inherited from class org.sourcejammer.project.controller.ControllerNode
checkKey, compareTo, equals, getCreatedDate, getNodeName, getParent, getRootParent, getShareParent, getUniqueID, isCorrectKey, isLocked, isShared, setCreatedDate, setNodeName, setParent, setShared, setShareParent, setUniqueID, toString, unlock
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.sourcejammer.project.model.filesys.NodeFS
getCreatedDate, getNodeName, isShared
 

Constructor Detail

FileNodeFS

public FileNodeFS()
Method Detail

setReadOnly

public void setReadOnly()

isReadOnly

public boolean isReadOnly()

lock

public void lock(long key)
          throws SecurityException
Override the super class method to check if node is read-only. If so, SecurityException is thrown.
Overrides:
lock in class ControllerNode

setFileName

public void setFileName(java.lang.String s,
                        long key)
Sets the name to the file used by filesys implementation to store info on this Node.
Specified by:
setFileName in interface NodeFS

getFileName

public java.lang.String getFileName()
Gets the name of the file used by the filesys implementation to store info on this Node.
Specified by:
getFileName in interface NodeFS

store

public void store(long key,
                  ArchiveInfo info)
           throws FileAccessException
Creates and stores the XML file for this Node.
Overrides:
store in class ControllerNode

setFileSysKey

public void setFileSysKey(long l)

getFileSysKey

public long getFileSysKey()
Description copied from interface: NodeFS
Returns key used to lock and unlock object file on the file system.
Specified by:
getFileSysKey in interface NodeFS

SourceJammer 1.2.0.1 May 20, 2002
Copyright (c) 2001, 2002 Robert MacGrogan