|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object lumis.portal.filesystem.PortalFilePath
@StableMinor(version="6.2", sinceVersion="4.1") public final class PortalFilePath
Represents a path to a portal file. It is internally stored as a
PortalBaseFolder
and a relative path to that folder.
Constructor Summary | |
---|---|
PortalFilePath(IPortalBaseFolder baseFolder,
String relativePath)
Creates a portal file path from a base folder and a relative path. |
|
PortalFilePath(PortalBaseFolder baseFolder,
String relativePath)
Creates a portal file path from a base folder and a relative path. |
|
PortalFilePath(String absolutePath)
Creates a portal file path from an absolute path. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
String |
getAbsolutePath()
Returns the absolute path this instance corresponds to. |
PortalBaseFolder |
getBaseFolder()
Deprecated. Since 6.2.0 replaced by getPortalBaseFolder()
due to the deprecation of PortalBaseFolder.WWW . This
deprecated implementation works if this PortalFilePath is based
on one of the enum PortalBaseFolder options, otherwise it throws
a ClassCastException . This works on a full legacy code, since
only the those enum options exist in such case. |
IPortalBaseFolder |
getPortalBaseFolder()
Returns the base folder for this path. |
String |
getRelativePath()
Returns the relative path to getBaseFolder() . |
int |
hashCode()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PortalFilePath(PortalBaseFolder baseFolder, String relativePath)
This constructor is equivalent to
PortalFilePath(IPortalBaseFolder, String)
, but is kept for
binary backwards compatibility.
baseFolder
- the base folder.relativePath
- the relative path, relative to the base folder.public PortalFilePath(IPortalBaseFolder baseFolder, String relativePath)
baseFolder
- the base folder.relativePath
- the relative path, relative to the base folder.
IllegalArgumentException
- if a PortalFilePath could not be
created due to invalid argument values.public PortalFilePath(String absolutePath)
absolutePath
- the absolute path.
IllegalArgumentException
- if the given absolute path is invalid
or does not belongs to an area that may be mapped using a portal file path.Method Detail |
---|
public String getAbsolutePath()
public String getRelativePath()
getBaseFolder()
.
@Deprecated public PortalBaseFolder getBaseFolder()
getPortalBaseFolder()
due to the deprecation of PortalBaseFolder.WWW
. This
deprecated implementation works if this PortalFilePath
is based
on one of the enum PortalBaseFolder
options, otherwise it throws
a ClassCastException
. This works on a full legacy code, since
only the those enum options exist in such case.
public IPortalBaseFolder getPortalBaseFolder()
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |