File

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

Index

Properties
Methods

Constructor

constructor(http: HttpClient, notificationService: QppNotificationService, userService: UserService)
Parameters :
Name Type Optional
http HttpClient No
notificationService QppNotificationService No
userService UserService No

Methods

createBranch
createBranch(assetId: number, versionInfo: VersionInfo, branchName: string, isCurrent: boolean)

Create branch

Parameters :
Name Type Optional Description
assetId number No

Asset Id

versionInfo VersionInfo No

Version info

branchName string No

Branch name

isCurrent boolean No

Is current

Returns : Observable<any>

Observable

deleteBranch
deleteBranch(assetId: number, branchId: number)

Delete branch

Parameters :
Name Type Optional Description
assetId number No

Asset Id

branchId number No

Branch id

Returns : Observable<void>

Observable

getAllBranches
getAllBranches()

Get all branches

Returns : Observable<any>

Observable

getAllBranchesForAsset
getAllBranchesForAsset(assetId: number)

Get all branches for asset

Parameters :
Name Type Optional Description
assetId number No

Asset Id

Returns : Observable<any>

Observable

getAllSubBranches
getAllSubBranches(assetId: number, branchId: number)

Get all sub branches

Parameters :
Name Type Optional Description
assetId number No

Asset Id

branchId number No

Branch id

Returns : Observable<any>

Observable

getAllSubBranchesWithVersion
getAllSubBranchesWithVersion(assetId: number, branchId: number)

Get all sub branches

Parameters :
Name Type Optional Description
assetId number No

Asset Id

branchId number No

Branch id

Returns : Observable<any>

Observable

getAssetBranch
getAssetBranch(assetId: number, branchId: number)

Get asset branch

Parameters :
Name Type Optional Description
assetId number No

Asset Id

branchId number No

Branch id

Returns : Observable<any>

Observable

getAssetBranchWithVersion
getAssetBranchWithVersion(assetId: number, branchId: number)

Get asset branch with version

Parameters :
Name Type Optional Description
assetId number No

Asset Id

branchId number No

Branch id

Returns : Observable<any>

Observable

getAssetsBranch
getAssetsBranch(assetsInfo: literal type[])

Get assets branch

Parameters :
Name Type Optional Description
assetsInfo literal type[] No

Array of object containg asset Id and branchId

Returns : Observable<any>

Observable

hasSubBranches
hasSubBranches(assetId: number, branchId: number)

Has sub branches

Parameters :
Name Type Optional Description
assetId number No

Asset Id

branchId number No

Branch id

Returns : Observable<boolean>

Observable

publishNotification
publishNotification(assetId: number, branchId: number, changeType: BRANCH_NOTIFICATION)
Parameters :
Name Type Optional
assetId number No
branchId number No
changeType BRANCH_NOTIFICATION No
Returns : void
registerForBranchNotification
registerForBranchNotification()
Returns : Observable<any>
renameBranch
renameBranch(assetId: number, branchId: number, branchName: string)

Rename branch

Parameters :
Name Type Optional Description
assetId number No

Asset Id

branchId number No

Branch id

branchName string No
Returns : Observable<void>

Observable

Properties

branchNotification$
Default value : new Subject<{ assetId: number, branchId: number, changeType: BRANCH_NOTIFICATION }>()

result-matching ""

    No results matching ""