com.corrspt.xeo.tests
Class FakeIFile
java.lang.Object
com.corrspt.xeo.tests.FakeIFile
- All Implemented Interfaces:
- netgest.io.iFile
public class FakeIFile
- extends java.lang.Object
- implements netgest.io.iFile
| Fields inherited from interface netgest.io.iFile |
DEFAULT_METADATA |
|
Constructor Summary |
FakeIFile(java.io.File theFile)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FakeIFile
public FakeIFile(java.io.File theFile)
addChild
public boolean addChild(netgest.io.iFile arg0)
throws netgest.io.iFileException
- Specified by:
addChild in interface netgest.io.iFile
- Throws:
netgest.io.iFileException
addMetadata
public void addMetadata(netgest.io.metadata.iMetadataItem arg0)
throws netgest.io.iFileException
- Specified by:
addMetadata in interface netgest.io.iFile
- Throws:
netgest.io.iFileException
canRead
public boolean canRead()
- Specified by:
canRead in interface netgest.io.iFile
canWrite
public boolean canWrite()
- Specified by:
canWrite in interface netgest.io.iFile
checkIn
public boolean checkIn()
throws netgest.io.iFilePermissionDenied
- Specified by:
checkIn in interface netgest.io.iFile
- Throws:
netgest.io.iFilePermissionDenied
checkOut
public boolean checkOut()
throws netgest.io.iFilePermissionDenied
- Specified by:
checkOut in interface netgest.io.iFile
- Throws:
netgest.io.iFilePermissionDenied
close
public boolean close()
- Specified by:
close in interface netgest.io.iFile
createNewFile
public boolean createNewFile()
throws java.io.IOException,
netgest.io.iFilePermissionDenied
- Specified by:
createNewFile in interface netgest.io.iFile
- Throws:
java.io.IOException
netgest.io.iFilePermissionDenied
delete
public boolean delete()
throws netgest.io.iFilePermissionDenied
- Specified by:
delete in interface netgest.io.iFile
- Throws:
netgest.io.iFilePermissionDenied
exists
public boolean exists()
- Specified by:
exists in interface netgest.io.iFile
getAbsolutePath
public java.lang.String getAbsolutePath()
- Specified by:
getAbsolutePath in interface netgest.io.iFile
getAllMetadata
public java.util.List<netgest.io.metadata.iMetadataItem> getAllMetadata()
throws netgest.io.iFileException
- Specified by:
getAllMetadata in interface netgest.io.iFile
- Throws:
netgest.io.iFileException
getAuthor
public java.lang.String getAuthor()
- Specified by:
getAuthor in interface netgest.io.iFile
getCategory
public java.lang.String getCategory()
- Specified by:
getCategory in interface netgest.io.iFile
getCheckOutUser
public java.lang.String getCheckOutUser()
- Specified by:
getCheckOutUser in interface netgest.io.iFile
getCopy
public netgest.io.iFile getCopy()
- Specified by:
getCopy in interface netgest.io.iFile
getDefaultMetadata
public netgest.io.metadata.iMetadataItem getDefaultMetadata()
- Specified by:
getDefaultMetadata in interface netgest.io.iFile
getDescription
public java.lang.String getDescription()
- Specified by:
getDescription in interface netgest.io.iFile
getFileToDeleteOnCommit
public java.lang.String[] getFileToDeleteOnCommit()
- Specified by:
getFileToDeleteOnCommit in interface netgest.io.iFile
getFileToDeleteOnRollback
public java.lang.String[] getFileToDeleteOnRollback()
- Specified by:
getFileToDeleteOnRollback in interface netgest.io.iFile
getId
public java.lang.String getId()
- Specified by:
getId in interface netgest.io.iFile
getInputStream
public java.io.InputStream getInputStream()
throws netgest.io.iFilePermissionDenied
- Specified by:
getInputStream in interface netgest.io.iFile
- Throws:
netgest.io.iFilePermissionDenied
getKey
public long getKey()
- Specified by:
getKey in interface netgest.io.iFile
getMetadata
public netgest.io.metadata.iMetadataItem getMetadata(java.lang.String arg0)
throws netgest.io.iFileException
- Specified by:
getMetadata in interface netgest.io.iFile
- Throws:
netgest.io.iFileException
getMetadataByName
public java.util.List<netgest.io.metadata.iMetadataItem> getMetadataByName(java.lang.String arg0)
throws netgest.io.iFileException
- Specified by:
getMetadataByName in interface netgest.io.iFile
- Throws:
netgest.io.iFileException
getMetadataTypes
public java.util.List<java.lang.String> getMetadataTypes()
- Specified by:
getMetadataTypes in interface netgest.io.iFile
getName
public java.lang.String getName()
- Specified by:
getName in interface netgest.io.iFile
getParent
public java.lang.String getParent()
- Specified by:
getParent in interface netgest.io.iFile
getParentFile
public netgest.io.iFile getParentFile()
- Specified by:
getParentFile in interface netgest.io.iFile
getPath
public java.lang.String getPath()
- Specified by:
getPath in interface netgest.io.iFile
getURI
public java.lang.String getURI()
- Specified by:
getURI in interface netgest.io.iFile
getVersion
public long getVersion()
- Specified by:
getVersion in interface netgest.io.iFile
getVersionUser
public java.lang.String getVersionUser()
- Specified by:
getVersionUser in interface netgest.io.iFile
inTransaction
public boolean inTransaction()
- Specified by:
inTransaction in interface netgest.io.iFile
isCheckedIn
public boolean isCheckedIn()
- Specified by:
isCheckedIn in interface netgest.io.iFile
isCheckedOut
public boolean isCheckedOut()
- Specified by:
isCheckedOut in interface netgest.io.iFile
isDirectory
public boolean isDirectory()
- Specified by:
isDirectory in interface netgest.io.iFile
isFile
public boolean isFile()
- Specified by:
isFile in interface netgest.io.iFile
isVersioned
public boolean isVersioned()
- Specified by:
isVersioned in interface netgest.io.iFile
lastModified
public long lastModified()
- Specified by:
lastModified in interface netgest.io.iFile
length
public long length()
- Specified by:
length in interface netgest.io.iFile
list
public java.lang.String[] list()
throws netgest.io.iFilePermissionDenied
- Specified by:
list in interface netgest.io.iFile
- Throws:
netgest.io.iFilePermissionDenied
list
public java.lang.String[] list(netgest.io.iFilenameFilter arg0)
throws netgest.io.iFilePermissionDenied
- Specified by:
list in interface netgest.io.iFile
- Throws:
netgest.io.iFilePermissionDenied
listFiles
public netgest.io.iFile[] listFiles()
throws netgest.io.iFilePermissionDenied
- Specified by:
listFiles in interface netgest.io.iFile
- Throws:
netgest.io.iFilePermissionDenied
listFiles
public netgest.io.iFile[] listFiles(netgest.io.iFileFilter arg0)
throws netgest.io.iFilePermissionDenied
- Specified by:
listFiles in interface netgest.io.iFile
- Throws:
netgest.io.iFilePermissionDenied
makeVersioned
public boolean makeVersioned()
throws netgest.io.iFilePermissionDenied
- Specified by:
makeVersioned in interface netgest.io.iFile
- Throws:
netgest.io.iFilePermissionDenied
mkdir
public boolean mkdir()
throws netgest.io.iFilePermissionDenied
- Specified by:
mkdir in interface netgest.io.iFile
- Throws:
netgest.io.iFilePermissionDenied
mkdirs
public boolean mkdirs()
throws netgest.io.iFilePermissionDenied
- Specified by:
mkdirs in interface netgest.io.iFile
- Throws:
netgest.io.iFilePermissionDenied
removeMetadata
public void removeMetadata(java.lang.String arg0)
- Specified by:
removeMetadata in interface netgest.io.iFile
renameTo
public boolean renameTo(netgest.io.iFile arg0)
throws netgest.io.iFilePermissionDenied
- Specified by:
renameTo in interface netgest.io.iFile
- Throws:
netgest.io.iFilePermissionDenied
rollback
public void rollback(netgest.bo.runtime.EboContext arg0)
- Specified by:
rollback in interface netgest.io.iFile
save
public boolean save(netgest.bo.runtime.EboContext arg0)
throws netgest.io.iFileException
- Specified by:
save in interface netgest.io.iFile
- Throws:
netgest.io.iFileException
setAuthor
public void setAuthor(java.lang.String arg0)
- Specified by:
setAuthor in interface netgest.io.iFile
setBinaryStream
public void setBinaryStream(java.io.InputStream arg0)
throws netgest.io.iFilePermissionDenied
- Specified by:
setBinaryStream in interface netgest.io.iFile
- Throws:
netgest.io.iFilePermissionDenied
setCategory
public void setCategory(java.lang.String arg0)
- Specified by:
setCategory in interface netgest.io.iFile
setCheckOutUser
public void setCheckOutUser(java.lang.String arg0)
- Specified by:
setCheckOutUser in interface netgest.io.iFile
setDescription
public void setDescription(java.lang.String arg0)
- Specified by:
setDescription in interface netgest.io.iFile
setReadOnly
public boolean setReadOnly()
throws netgest.io.iFilePermissionDenied
- Specified by:
setReadOnly in interface netgest.io.iFile
- Throws:
netgest.io.iFilePermissionDenied
setVersionUser
public void setVersionUser(java.lang.String arg0)
- Specified by:
setVersionUser in interface netgest.io.iFile
updateFile
public void updateFile(netgest.io.iFile arg0)
- Specified by:
updateFile in interface netgest.io.iFile