|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.io.File lumis.portal.filesystem.PortalFile
@StableMinor(version="6.2", sinceVersion="4.1") public class PortalFile
A file that resides inside the portal's controlled file system.
Extends the File
, embedding the raising of events and portal cluster
replication.
Field Summary |
---|
Fields inherited from class java.io.File |
---|
pathSeparator, pathSeparatorChar, separator, separatorChar |
Constructor Summary | |
---|---|
PortalFile(File file)
|
|
PortalFile(File parent,
String child)
Creates a new portal file from a parent file and a child pathname string. |
|
PortalFile(PortalFilePath portalFilePath)
|
|
PortalFile(String pathname)
|
|
PortalFile(String parent,
String child)
|
Method Summary | |
---|---|
boolean |
createNewFile()
|
boolean |
delete()
|
void |
deleteOnExit()
|
PortalFile |
getParentPortalFile()
Returns the PortalFile that is parent of this one. |
PortalFilePath |
getPortalFilePath()
Returns the path for this portal file. |
boolean |
mkdir()
|
boolean |
mkdirs()
|
void |
recursiveDelete()
Recursively deletes this file and any child of it. |
boolean |
renameTo(File dest)
|
boolean |
setLastModified(long time)
|
boolean |
setReadOnly()
|
String |
toString()
|
Methods inherited from class java.io.File |
---|
canExecute, canRead, canWrite, compareTo, createTempFile, createTempFile, equals, exists, getAbsoluteFile, getAbsolutePath, getCanonicalFile, getCanonicalPath, getFreeSpace, getName, getParent, getParentFile, getPath, getTotalSpace, getUsableSpace, hashCode, isAbsolute, isDirectory, isFile, isHidden, lastModified, length, list, list, listFiles, listFiles, listFiles, listRoots, setExecutable, setExecutable, setReadable, setReadable, setWritable, setWritable, toURI, toURL |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PortalFile(PortalFilePath portalFilePath)
public PortalFile(File file)
public PortalFile(File parent, String child)
If the parent file is an instance of a portal file, the result portal file will
have the same PortalBaseFolder
, but
adds the child
string to the parent's relative path. The
resulting relative path must be valid and still reside inside the same
PortalBaseFolder
.
Example:
If parent
has base folder DATA
and relative path "/path"
,
and child
is "child.txt"
, the resulting portal file will have
base folder DATA
and relative path "/path/child.txt"
.
parent
- the parent file.child
- the child pathname string.
NullPointerException
- if parent
or child
is
null
.public PortalFile(String parent, String child)
public PortalFile(String pathname)
Method Detail |
---|
public PortalFilePath getPortalFilePath()
public String toString()
toString
in class File
public PortalFile getParentPortalFile()
null
is returned;
public void recursiveDelete()
public boolean createNewFile() throws IOException
createNewFile
in class File
IOException
public boolean delete()
delete
in class File
public void deleteOnExit()
deleteOnExit
in class File
public boolean mkdir()
mkdir
in class File
public boolean mkdirs()
mkdirs
in class File
public boolean renameTo(File dest)
renameTo
in class File
public boolean setLastModified(long time)
setLastModified
in class File
public boolean setReadOnly()
setReadOnly
in class File
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |