Package lumis.portal.filesystem.impl
Class LocalDataFilePortalBaseFolder
- java.lang.Object
-
- lumis.portal.filesystem.impl.LocalDataFilePortalBaseFolder
-
- All Implemented Interfaces:
java.io.Serializable
,IPortalBaseFolder
public class LocalDataFilePortalBaseFolder extends java.lang.Object implements IPortalBaseFolder
Local data file portal base folder.- Since:
- 8.0.0
- Version:
- $Revision: 17047 $ $Date: 2015-03-03 11:22:22 -0300 (Tue, 03 Mar 2015) $
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getAbsolutePath(java.lang.String relativePath)
Calculates the absolute path from a relative path to this base folder.static LocalDataFilePortalBaseFolder
getInstance()
java.lang.String
getRelativePath(java.lang.String absolutePath)
Calculates the relative path to this base folder for the given absolute path.PortalFilePath
toPortalFilePath(java.lang.String relativePath)
java.lang.String
toString()
A string for display purposes that identifies this base folder.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface lumis.portal.filesystem.IPortalBaseFolder
equals
-
-
-
-
Method Detail
-
getAbsolutePath
public java.lang.String getAbsolutePath(java.lang.String relativePath)
Description copied from interface:IPortalBaseFolder
Calculates the absolute path from a relative path to this base folder.- Specified by:
getAbsolutePath
in interfaceIPortalBaseFolder
- Parameters:
relativePath
- the relative path.- Returns:
- the absolute path.
-
getRelativePath
public java.lang.String getRelativePath(java.lang.String absolutePath)
Description copied from interface:IPortalBaseFolder
Calculates the relative path to this base folder for the given absolute path.- Specified by:
getRelativePath
in interfaceIPortalBaseFolder
- Parameters:
absolutePath
- the absolute path.- Returns:
- the calculated relative path, relative to this base folder.
-
getInstance
public static LocalDataFilePortalBaseFolder getInstance()
-
toString
public java.lang.String toString()
Description copied from interface:IPortalBaseFolder
A string for display purposes that identifies this base folder.In special,
PortalFilePath
uses this string to create its owntoString
, in the form:[base folder]:/[relative path]
. This method should return a value that keeps that form friendly.- Specified by:
toString
in interfaceIPortalBaseFolder
- Overrides:
toString
in classjava.lang.Object
- Returns:
- a string representation of this base folder.
-
toPortalFilePath
public PortalFilePath toPortalFilePath(java.lang.String relativePath)
-
-