|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.ifs.beans.FolderPathResolver
The FolderPathResolver class is used to lookup PublicObjects in a Folder hierarchy via a file-system style folder path.
Field Summary | |
static java.lang.String |
CURRENT_DIRECTORY_TOKEN
The "current directory" token. |
static java.lang.String |
FOLDER_DELIMITER
The folder path delimiter. |
static char |
MATCH_ALL
The character used as the wildcard to match any (0 or more) characters. |
static char |
MATCH_ONE
The character used as the wildcard to match any single character. |
static java.lang.String |
UP_DIRECTORY_TOKEN
The "change directory UP one level" token. |
Constructor Summary | |
FolderPathResolver(LibrarySession session)
default constructor. |
Method Summary | |
static boolean |
containsWildcard(java.lang.String s)
Checks whether folder path contains any wildcards. |
PublicObject |
findPublicObjectByPath(java.lang.String path)
Returns the PublicObject for which the path specifies. |
java.lang.String |
getAbsolutePath(java.lang.String relativePath)
Gets the absolute path from a realtive path |
Folder |
getCurrentDirectory()
Get the current directory in effect. |
java.lang.String |
getCurrentPath()
Get the current file path in effect. |
static char[] |
getIllegalPathCharacters()
Get the illegal path characters. |
static char[] |
getLegalPathDelimiters()
Get the legal path delimiters. |
Folder |
getTopDirectory()
Get the top directory in effect. |
java.lang.String |
getTopPath()
Get the top file path in effect. |
void |
setCurrentDirectory(Folder folder)
Sets the current path to the specified Folder's path |
void |
setHomeFolder()
Change current folder to a home folder for the current user. |
void |
setHomeFolder(DirectoryUser user)
Set current folder to the home folder of a specified directory user |
void |
setHomeFolder(java.lang.String username)
Change current folder to a home folder for a specified user. |
void |
setHomeFolder(java.lang.String username,
java.lang.String anonymousUsername,
boolean robust)
Change current folder to a home folder for a specified user. |
void |
setRelativePath(java.lang.String path)
Change current folder to relative path |
void |
setRootFolder()
Change current folder to the Root Folder |
Field Detail |
public static final java.lang.String UP_DIRECTORY_TOKEN
public static final java.lang.String CURRENT_DIRECTORY_TOKEN
public static final java.lang.String FOLDER_DELIMITER
public static final char MATCH_ALL
public static final char MATCH_ONE
Constructor Detail |
public FolderPathResolver(LibrarySession session) throws IfsException
LibrarySession
- the sessionIfsException
- if operation fails.Method Detail |
public static char[] getIllegalPathCharacters()
public static char[] getLegalPathDelimiters()
public java.lang.String getCurrentPath() throws IfsException
IfsException
- if operation fails.public java.lang.String getTopPath() throws IfsException
IfsException
- if operation fails.public Folder getCurrentDirectory() throws IfsException
IfsException
- if operation fails.public Folder getTopDirectory() throws IfsException
IfsException
- if operation fails.public void setRootFolder() throws IfsException
IfsException
- if operation fails.public void setHomeFolder() throws IfsException
IfsException
- if operation fails.public void setHomeFolder(java.lang.String username) throws IfsException
IfsException
- if operation fails.public void setHomeFolder(DirectoryUser user) throws IfsException
IfsException
- if operation fails.public void setHomeFolder(java.lang.String username, java.lang.String anonymousUsername, boolean robust) throws IfsException
IfsException
- if operation fails.public void setCurrentDirectory(Folder folder) throws IfsException
IfsException
- if operation fails.public java.lang.String getAbsolutePath(java.lang.String relativePath) throws IfsException
relativePath
- can be absolutepublic void setRelativePath(java.lang.String path) throws IfsException
IfsException
- if operation fails.public PublicObject findPublicObjectByPath(java.lang.String path) throws IfsException
IfsException
- if operation fails.public static boolean containsWildcard(java.lang.String s) throws IfsException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |