File

platform-components-ng/projects/platform-components-lib/src/lib/components/collection/service/asset-checkin-service.ts

Description

Asset checkin service

Index

Properties
Methods

Constructor

constructor(http: HttpClient, qppErrorMessageService: QppErrorMessageService)
Parameters :
Name Type Optional
http HttpClient No
qppErrorMessageService QppErrorMessageService No

Methods

checkDuplicateAssetName
checkDuplicateAssetName(assetName: string, collectionId: number)

Check duplicate asset name

Parameters :
Name Type Optional Description
assetName string No

Asset Name

collectionId number No

Collection Id

Returns : Observable<number>

Observable

checkin
checkin(files: Set, assetInfo: CheckinAssetInfo)

Check-in multiple files

Parameters :
Name Type Optional Description
files Set<File> No

Files

assetInfo CheckinAssetInfo No

Asset info

Returns : CheckinStatus

CheckinStatus

checkinFolder
checkinFolder(files: Set, assetInfo: CheckinAssetInfo)

Check-in a folder

Parameters :
Name Type Optional Description
files Set<File> No

Files

assetInfo CheckinAssetInfo No

Asset info

Returns : CheckinStatus

CheckinStatus

getSaveRevisionUrl
getSaveRevisionUrl(assetId: number, attributeValues: any, isMinorVersion: boolean, branchId: number, createNewBranch: boolean, branchName: string)

Get save revision url

Parameters :
Name Type Optional Description
assetId number No

Asset id of asset

attributeValues any No

Attribute values

isMinorVersion boolean No

Is minor version

branchId number No

Branch id

createNewBranch boolean No
branchName string No
Returns : Observable<any>

Observable

isAssetExistsWithName
isAssetExistsWithName(assetName: string, collectionId: number)

Is asset exists with name

Parameters :
Name Type Optional
assetName string No
collectionId number No
Returns : Observable<number>

Observable

Async saveRevision
saveRevision(file: File, assetId: number, attributeValues?: QppAssetWorkflowAttributes, assetVersionInfo?: VersionInfo)

Check-in a new revision of a file.

Parameters :
Name Type Optional Description
file File No

File

assetId number No

Asset id of asset

attributeValues QppAssetWorkflowAttributes Yes

Attribute values

assetVersionInfo VersionInfo Yes
Returns : Promise<CheckinStatus>

Promise

Properties

assetCreated
Default value : new EventEmitter<{ assetId?: number, collectionId?: number, isCollection: boolean, branchId?: number, oldBranchId?: number }>()
checkStatusInterval
Type : any
overallProgressSubscription
Type : Subscription
overallStatusSubscription
Type : Subscription
pollMap
Default value : new Map<string, object>()

result-matching ""

    No results matching ""