| java.lang.Object com.sun.portal.desktop.util.FileLookup
FileLookup | public class FileLookup (Code) | | This class provides a generic file path generation utility
for all portal data file types, be they templates, JSP.
All portal code interested in accessing data files would use
this utility to locate them on disk.
|
Method Summary | |
protected static File[] | buildPaths(String base, String type, String locale, String channel, String provider, String clientPath, String filename) | public static File | getFirstExisting(String base, String type, String locale, String channel, String provider, String clientPath, String filename) The getFirstExisting() method will return the first existing file
in the ordered search paths. | public static File | getMostSpecific(String base, String type, String locale, String channel, String provider, String clientPath, String filename) The getMostSpecificFile() method will return the first file
in the ordered search paths (whether exists or not). | protected static File[] | getOrderedPaths(String base, String type, String locale, String channel, String provider, String clientPath, String filename) The getOrderedPaths() method will return the full search order for a file;
all possible paths for the file, ordered. |
getFirstExisting | public static File getFirstExisting(String base, String type, String locale, String channel, String provider, String clientPath, String filename)(Code) | | The getFirstExisting() method will return the first existing file
in the ordered search paths.
Parameters: base - (base directory of the ps document root) Parameters: type - (an arbitrary profile-stored string) Parameters: locale - Parameters: channel - Parameters: provider - Parameters: clientPath - Parameters: filename - File first existing file in the ordered search paths. |
getMostSpecific | public static File getMostSpecific(String base, String type, String locale, String channel, String provider, String clientPath, String filename)(Code) | | The getMostSpecificFile() method will return the first file
in the ordered search paths (whether exists or not).
Parameters: base - (base directory of the ps document root) Parameters: type - (an arbitrary profile-stored string) Parameters: locale - Parameters: channel - Parameters: provider - Parameters: clientPath - Parameters: filename - File first file in the ordered search paths. |
getOrderedPaths | protected static File[] getOrderedPaths(String base, String type, String locale, String channel, String provider, String clientPath, String filename)(Code) | | The getOrderedPaths() method will return the full search order for a file;
all possible paths for the file, ordered.
Parameters: base - Parameters: type - (an arbitrary profile-stored string) Parameters: locale - Parameters: channel - Parameters: provider - Parameters: clientPath - Parameters: filename - File[] of ordered search paths. |
|
|