lumis.portal.filesystem
Class PortalFile
java.lang.Object
java.io.File
lumis.portal.filesystem.PortalFile
- All Implemented Interfaces:
- Serializable, Comparable<File>
public class PortalFile
- extends File
A file that resides inside the portal's controlled file system.
Extends the File
, embedding the raising of events and portal cluster
replication.
- Since:
- 4.1.0
- See Also:
- Serialized Form
Methods inherited from class java.io.File |
canRead, canWrite, compareTo, createTempFile, createTempFile, equals, exists, getAbsoluteFile, getAbsolutePath, getCanonicalFile, getCanonicalPath, getName, getParent, getParentFile, getPath, hashCode, isAbsolute, isDirectory, isFile, isHidden, lastModified, length, list, list, listFiles, listFiles, listFiles, listRoots, toURI, toURL |
PortalFile
public PortalFile(PortalFilePath portalFilePath)
PortalFile
public PortalFile(File file)
PortalFile
public PortalFile(File parent,
String child)
PortalFile
public PortalFile(String parent,
String child)
PortalFile
public PortalFile(String pathname)
getPortalFilePath
public PortalFilePath getPortalFilePath()
- Returns the path for this portal file.
- Returns:
- the path.
- Since:
- 4.1.0
toString
public String toString()
- Overrides:
toString
in class File
getParentPortalFile
public PortalFile getParentPortalFile()
- Returns the PortalFile that is parent of this one. If this file's parent
is not a valid PortalFile (because this PortalFile is a relative root),
null
is returned;
- Returns:
- the PortalFile that is parent of this one, or null if this
PortalFile does not have a parent PortalFile.
- Since:
- 4.1.0
recursiveDelete
public void recursiveDelete()
- Recursively deletes this file and any child of it.
- Since:
- 4.1.0
createNewFile
public boolean createNewFile()
throws IOException
- Overrides:
createNewFile
in class File
- Throws:
IOException
delete
public boolean delete()
- Overrides:
delete
in class File
deleteOnExit
public void deleteOnExit()
- Overrides:
deleteOnExit
in class File
mkdir
public boolean mkdir()
- Overrides:
mkdir
in class File
mkdirs
public boolean mkdirs()
- Overrides:
mkdirs
in class File
renameTo
public boolean renameTo(File dest)
- Overrides:
renameTo
in class File
setLastModified
public boolean setLastModified(long time)
- Overrides:
setLastModified
in class File
setReadOnly
public boolean setReadOnly()
- Overrides:
setReadOnly
in class File
Lumisportal 4.1.0.071221 - Copyright © 2001-2007, Lumis. All Rights Reserved.