public abstract class FolderIndexTool extends BaseTool
| Constructor and Description |
|---|
FolderIndexTool(String[] args)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
long |
applyDeferredUpdates(LibrarySession session)
Apply deferred updates.
|
void |
changeUpdateMode(LibrarySession session,
boolean isSync)
Change update mode to either synchronous or asynchronous.
|
void |
completeIndexCreation(LibrarySession session,
boolean creationDeferred)
Completes the creation of the folder index.
|
void |
createFolderIndexTables(LibrarySession session,
int maxLevel)
Create the tables that comprise the folder index.
|
void |
createInitialFolderIndexRows(LibrarySession session)
Create the tables that comprise the folder index.
|
void |
dropIndex(LibrarySession session)
Drop the folder index.
|
int |
getMaxLevel(LibrarySession session)
get the maximum folder index level.
|
boolean |
isIndexEnabled(LibrarySession session)
return true if there is a folder index enabled currently.
|
boolean |
isUpdateModeSynchronous(LibrarySession session)
return true if the update mode of the folder index is synchronous.
|
void |
promoteFolder(LibrarySession session,
Folder folder,
int newLevel)
Promote a folder to a higher index level.
|
void |
promoteFoldersByPath(LibrarySession session,
String[] paths,
int newLevel)
Promote folders to a higher index level.
|
void |
rebuildIndex(LibrarySession session)
Rebuild index.
|
void |
resetFolderIndexRows(LibrarySession session)
Delete all rows form the folder index except for the "self" rows
used to register each existing folder.
|
void |
setUseExistsClause(LibrarySession session,
boolean useExists)
Update the 'UseExistsClause' property on the FolderIndex
propertyBundle event target.
|
disconnectSession, establishSession, establishSession, gatherCredentials, getDatabaseType, getDatabaseUrl, getDomain, getDomainDisplayName, getExitCode, getParameterTable, getSchemaName, getSchemaPassword, getServiceConfigurationName, getServiceName, isVerboseLoggingEnabled, log, log, log, printStackTrace, setExitCode, showBanner, showExiting, startServicepublic FolderIndexTool(String[] args)
args - the command-line argumentspublic boolean isIndexEnabled(LibrarySession session) throws IfsException
session - the sessionIfsException - if operation failspublic int getMaxLevel(LibrarySession session) throws IfsException
session - the sessionIfsException - if operation failspublic boolean isUpdateModeSynchronous(LibrarySession session) throws IfsException
session - the sessionIfsException - if operation failspublic void createFolderIndexTables(LibrarySession session, int maxLevel) throws IfsException
session - the sessionIfsException - if operation failspublic void createInitialFolderIndexRows(LibrarySession session) throws IfsException
session - the sessionIfsException - if operation failspublic void resetFolderIndexRows(LibrarySession session) throws IfsException
session - the sessionIfsException - if operation failspublic void dropIndex(LibrarySession session) throws IfsException
session - the sessionIfsException - if operation failspublic void completeIndexCreation(LibrarySession session, boolean creationDeferred) throws IfsException
session - the sessionIfsException - if operation failspublic void changeUpdateMode(LibrarySession session, boolean isSync) throws IfsException
session - the sessionisSync - the desired update mode;
true indicates synchronous,
false indicates asynchronousIfsException - if operation failspublic void promoteFolder(LibrarySession session, Folder folder, int newLevel) throws IfsException
session - the sessionfolder - the folder to promotenewLevel - the new levelIfsException - if operation failspublic void promoteFoldersByPath(LibrarySession session, String[] paths, int newLevel) throws IfsException
session - the sessionpaths - the folders to promote (the paths)newLevel - the new levelIfsException - if operation failspublic void rebuildIndex(LibrarySession session) throws IfsException
session - the sessionIfsException - if operation failspublic long applyDeferredUpdates(LibrarySession session) throws IfsException
session - the sessionIfsException - if operation failspublic void setUseExistsClause(LibrarySession session, boolean useExists) throws IfsException
session - the sessionuseExists - the desired value for the search propertyIfsException - if operation failsCopyright © 2025. All rights reserved.