|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<PortalBaseFolder> lumis.portal.filesystem.PortalBaseFolder
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 | |
---|---|
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 from the given absolute path. |
static PortalBaseFolder |
valueOf(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're declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
finalize, 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 final PortalBaseFolder[] values()
for(PortalBaseFolder c : PortalBaseFolder.values()) System.out.println(c);
public static PortalBaseFolder valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified namepublic String getAbsolutePath(String relativePath)
relativePath
- the relative path.
public 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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |