|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@StableMinor(version="6.2", sinceVersion="6.2") public interface IPortalBaseFolder
A portal base folder represents a logical folder known to the portal. It provides operations to convert between relative (logical) and absolute (real) paths for resource inside the structure represented by it.
A portal base folder implementation must be serializable in such way that after being transferred between Lumis Portal instances, it resolves to the equivalent files in the new instance.
PortalFile
,
PortalFilePath
,
PortalBaseFolder
,
IWebsite.getWebRootBaseFolder()
Method Summary | |
---|---|
boolean |
equals(Object obj)
Indicates whether this base folder is equivalent to the given base folder. |
String |
getAbsolutePath(String relativePath)
Calculates the absolute path from a relative path to this base folder. |
String |
getRelativePath(String absolutePath)
Calculates the relative path to this base folder for the given absolute path. |
String |
toString()
A string for display purposes that identifies this base folder. |
Method Detail |
---|
String getAbsolutePath(String relativePath)
relativePath
- the relative path.
String getRelativePath(String absolutePath)
absolutePath
- the absolute path.
IllegalArgumentException
- if the given absolute path is invalid
or does not belongs to this base folder area.boolean equals(Object obj)
Equivalent base folders represent the same real folder and semantics. Two equivalent base folders have the same results on its conversions between absolute and relative paths. But it is possible to two base folders to resolve its conversions the same way, but not be considered equivalent, if they do not share the same semantics.
equals
in class Object
obj
- the object to compare to.
true
if this base folder is equivalent to a
given base folder; false
otherwise.String toString()
In special, PortalFilePath
uses this string to create its
own toString
, in the form: [base folder]:/[relative path]
.
This method should return a value that keeps that form friendly.
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |