|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<PortalBaseFolder>
lumis.portal.filesystem.PortalBaseFolder
@StableMinor(version="6.1", sinceVersion="4.1") public enum PortalBaseFolder
Specifies a portal standard base folder. Also provides conversions between relative paths and absolute paths for each base folder.
Enum Constant Summary | |
---|---|
DATA
Indicates the path is relative to the portal data (lumisdata/data) folder. |
|
DEF
Indicates the path is relative to the portal definition (lumisdata/def) folder. |
|
WWW
Indicates the path is relative to the portal WWW (web root) folder. |
Method Summary | |
---|---|
java.lang.String |
getAbsolutePath(java.lang.String relativePath)
Calculates the absolute path from a relative path to this base folder. |
java.lang.String |
getRelativePath(java.lang.String absolutePath)
Calculates the relative path to this base folder from the given absolute path. |
static PortalBaseFolder |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static PortalBaseFolder[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final PortalBaseFolder WWW
public static final PortalBaseFolder DATA
public static final PortalBaseFolder DEF
Method Detail |
---|
public static PortalBaseFolder[] values()
for (PortalBaseFolder c : PortalBaseFolder.values()) System.out.println(c);
public static PortalBaseFolder valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is nullpublic java.lang.String getAbsolutePath(java.lang.String relativePath)
relativePath
- the relative path.
public java.lang.String getRelativePath(java.lang.String absolutePath)
absolutePath
- the absolute path.
java.lang.IllegalArgumentException
- if the given absolute path is invalid
or does not belongs to this base folder area.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |