BriefcaseManager Class

Manages downloading Briefcases and downloading and uploading changesets.

Methods

Name Description
constructor(): BriefcaseManager    
acquireNewBriefcaseId(requestContext: AuthorizedClientRequestContext, iModelId: string): Promise<number> Static Acquire a new briefcaseId from iModelHub for the supplied iModelId  
create(requestContext: AuthorizedClientRequestContext, contextId: string, iModelName: string, args: CreateIModelProps): Promise<string> Static Create an iModel on iModelHub Deprecated  
deleteBriefcaseFiles(filePath: string, requestContext?: AuthorizedClientRequestContext): Promise<void> Static Delete and clean up a briefcase and all of its associated files.  
downloadBriefcase(requestContext: AuthorizedClientRequestContext, request: RequestNewBriefcaseArg): Promise<LocalBriefcaseProps> Static Download a new briefcase from iModelHub for the supplied iModelId.  
getCachedBriefcases(iModelId?: string): LocalBriefcaseProps[] Static Get a list of the local briefcase held in the briefcase cache, optionally for a single iModelId  
getFileName(briefcase: BriefcaseProps): string Static Get the name of the local file that holds, or will hold, a local briefcase in the briefcase cache.  
getIModelPath(iModelId: string): string Static Get the local path of the folder storing files that are associated with an imodel  
initialize(cacheRootDir: string, compatibilityDir?: string): void Static Initialize BriefcaseManager  
isStandaloneBriefcaseId(id: number): boolean Static Determine whether the supplied briefcaseId is a standalone briefcase Deprecated  
isValidBriefcaseId(id: number): boolean Static Determine whether the supplied briefcaseId is in the range of assigned BriefcaseIds issued by iModelHub  
releaseBriefcase(requestContext: AuthorizedClientRequestContext, briefcase: BriefcaseProps): Promise<void> Static Releases a briefcaseId from iModelHub.  

Properties

Name Type Description
cacheDir Accessor StaticReadOnly string Get the root directory for the briefcase cache  

Defined in

Last Updated: 12 June, 2024