@StableMinor(version="7.1", sinceVersion="4.1") public final class PortalFilePath extends Object implements Serializable
PortalBaseFolder
and a relative path to that folder.Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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() |
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.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()
Lumisportal 7.1.1.140331 - Copyright © 2006–2014 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.