public class FolderUtilities extends Object
| Modifier and Type | Field and Description |
|---|---|
static char[] |
ILLEGAL_PATH_CHARACTERS
The set of illegal path and foldered object name characters for iFS
|
| Constructor and Description |
|---|
FolderUtilities() |
| Modifier and Type | Method and Description |
|---|---|
static String |
convertToLegalFolderedName(String name)
Convert the specified name into a legal name for a foldered object.
|
static String |
convertToLegalFolderedName(String name,
char replChar)
Convert the specified name into a legal name for a foldered object.
|
static PublicObject |
findObjectByAbsolutePath(LibrarySession session,
String path)
Look up an object by the specified absolute path.
|
static boolean |
folderLinksExist(LibrarySession session,
String path)
Returns true if the given absolute path contains any FolderLink objects.
|
static PropertyBundle |
getFolderIndexPropertyBundle(LibrarySession sess)
Gets the FolderIndex propertyBundle event target.
|
static boolean |
isLegalFolderedObjectName(String name)
Returns true if the given name is legal to use as the name for a
foldered object.
|
public static final char[] ILLEGAL_PATH_CHARACTERS
public static boolean folderLinksExist(LibrarySession session, String path) throws IfsException
session - the current session.path - the absolute path to test.IfsException - if the operation fails.public static boolean isLegalFolderedObjectName(String name)
name - the object name to check.public static String convertToLegalFolderedName(String name)
name - the object name to checkpublic static String convertToLegalFolderedName(String name, char replChar)
name - the object name to checkreplChar - the replacement character for bad charspublic static PublicObject findObjectByAbsolutePath(LibrarySession session, String path) throws IfsException
session - LibrarySession contextpath - the absolute object path; for example
"/A/B/C/D.doc"IfsException - if the operation fails.public static PropertyBundle getFolderIndexPropertyBundle(LibrarySession sess) throws IfsException
sess - the sessionIfsException - if operation failsCopyright © 2025. All rights reserved.