ecosystem/shared/ecosystem.service.ts
constructor(modal: ModalService, alertService: AlertService, humanizeAppName: HumanizeAppNamePipe, translateService: TranslateService, applicationService: ApplicationService, appStateService: AppStateService, zipService: ZipService, tenantService: TenantService, inventoryService: InventoryService, wizardModalService: WizardModalService, pluginService: PluginsService)
|
||||||||||||||||||||||||||||||||||||
Parameters :
|
alertError | ||||||||
alertError(error: Error | EcosystemError)
|
||||||||
Shows an error dialog.
Parameters :
Returns :
void
|
cancelAppCreation | ||||||
cancelAppCreation(app: IApplication)
|
||||||
Parameters :
Returns :
void
|
Async canDeleteApp | ||||||
canDeleteApp(app: IApplication)
|
||||||
Parameters :
Returns :
Promise<boolean>
|
canOpenAppInBrowser | ||||||
canOpenAppInBrowser(app: IApplication)
|
||||||
Parameters :
Returns :
boolean
|
Async checkIfSubscribed | ||||||
checkIfSubscribed(app: IApplication)
|
||||||
Parameters :
Returns :
Promise<boolean>
|
Async createAppForArchive | |||||||||
createAppForArchive(archive, isPackageTypeArchive)
|
|||||||||
Parameters :
Returns :
Promise<IApplication>
|
createConfig | |||||||||
createConfig(app: IApplication, formGroupValue: FormGroup)
|
|||||||||
Parameters :
Returns :
Partial<IApplication>
|
Async deleteApp | ||||||||||||
deleteApp(app: IApplication, silent)
|
||||||||||||
Parameters :
Returns :
Promise<void>
|
Async deleteArchive | |||||||||
deleteArchive(archive: IApplicationBinary, app: IApplication)
|
|||||||||
Parameters :
Returns :
Promise<void>
|
deletePackageVersion | |||||||||
deletePackageVersion(app: IApplication, params: IApplicationVersionDeleteParams)
|
|||||||||
Parameters :
Returns :
any
|
Async deployApp | ||||||||||||
deployApp(selectedPackage: IApplication, formGroupValue, model)
|
||||||||||||
Parameters :
Returns :
Promise<IApplication>
|
Async downloadArchive | |||||||||
downloadArchive(app: IApplication, archive: Pick<IApplicationBinary | "name" | "id">)
|
|||||||||
Parameters :
Returns :
Promise<void>
|
Async fallbackToClone | ||||||||||||
fallbackToClone(application: IApplication, selectedPackage: IApplication, requestedVersion?: string)
|
||||||||||||
Parameters :
Returns :
unknown
|
filterContainString |
filterContainString(name: string, filterTerm: string)
|
Returns :
boolean
|
getAppFilterProps | ||||||||
getAppFilterProps(app: IApplication)
|
||||||||
Creates object containing properties for filtering applications on lists.
Parameters :
Returns :
AppFilterProps
Properties to filter by applications list. |
Async getApplication | ||||||
getApplication(appId: IdReference)
|
||||||
Parameters :
Returns :
Promise<IApplication>
|
getApplications | ||||||||
getApplications(customFilter: any)
|
||||||||
Parameters :
Returns :
Promise<IResultList<IApplication>>
|
Async getApplicationsFiltered | ||||||||||||
getApplicationsFiltered(customFilter: any, filterCallback)
|
||||||||||||
Parameters :
Returns :
Promise<IApplication[]>
|
getApplicationVersionObjectByTag | ||||||||||||
getApplicationVersionObjectByTag(applicationVersions: IApplicationVersion[], tagName: string)
|
||||||||||||
Gets an object that contains searched tag
Parameters :
Returns :
IApplicationVersion
Returns an object with searched tag |
getAppState | ||||||
getAppState(app: IApplication)
|
||||||
Parameters :
Returns :
ApplicationState
|
Async getArchiveManagedObject | ||||||
getArchiveManagedObject(binaryId: string)
|
||||||
Parameters :
Returns :
Promise<IManagedObject>
|
Async getBinary | |||||||||
getBinary(app: IApplication, archive: IApplicationBinary | IIdentified)
|
|||||||||
Parameters :
Returns :
Promise<ArrayBuffer>
|
Async getCumulocityJson | ||||||
getCumulocityJson(archive: File)
|
||||||
Parameters :
Returns :
Promise<IManifest | null>
|
Async getFeatureApplications | ||||||||
getFeatureApplications(customFilter: any)
|
||||||||
Parameters :
Returns :
Promise<IApplication[]>
|
Async getHostedAndPackageApplications | ||||||||
getHostedAndPackageApplications(customFilter: any)
|
||||||||
Parameters :
Returns :
Promise<IApplication[]>
|
getHumanizedAppName | ||||||
getHumanizedAppName(app: IApplication)
|
||||||
Parameters :
Returns :
Promise<string>
|
Async getMicroservices |
getMicroservices()
|
Returns :
Promise<IApplication[]>
|
Async getPackageApplications | ||||||||
getPackageApplications(customFilter: any)
|
||||||||
Parameters :
Returns :
Promise<IApplication[]>
|
getPackageContentState | ||||||
getPackageContentState(app: IApplication)
|
||||||
Parameters :
Returns :
ApplicationState
|
getUniqueAppConfig | |||||||||
getUniqueAppConfig(srcApp: IApplication, existingApps: IApplication[])
|
|||||||||
Parameters :
Returns :
IApplication
|
Async getWebApplications | ||||||||
getWebApplications(customFilter: any)
|
||||||||
Parameters :
Returns :
Promise<IApplication[]>
|
hasExports | ||||||
hasExports(app: IApplication)
|
||||||
Parameters :
Returns :
boolean
|
Async hasSubscribedAppParent | ||||||
hasSubscribedAppParent(app: IApplication)
|
||||||
Parameters :
Returns :
Promise<boolean>
|
isApplication | ||||||
isApplication(app: IApplication)
|
||||||
Parameters :
Returns :
boolean
|
isCustomMicroservice | ||||||
isCustomMicroservice(app: IApplication)
|
||||||
Parameters :
Returns :
boolean
|
isExternal | ||||||
isExternal(app: IApplication)
|
||||||
Parameters :
Returns :
boolean
|
isFeature | ||||||
isFeature(app: IApplication)
|
||||||
Parameters :
Returns :
boolean
|
isMicroservice | ||||||
isMicroservice(app: IApplication)
|
||||||
Parameters :
Returns :
boolean
|
Async isMicroserviceHostingAllowed |
isMicroserviceHostingAllowed()
|
Returns :
Promise<boolean>
|
Async isOverwrittenByCustomApp | ||||||
isOverwrittenByCustomApp(app: IApplication)
|
||||||
Parameters :
Returns :
Promise<boolean>
|
isOwner | ||||||
isOwner(app: IApplication)
|
||||||
Parameters :
Returns :
boolean
|
isPackage | ||||||
isPackage(app: IApplication)
|
||||||
Parameters :
Returns :
boolean
|
isPackageBlueprint | ||||||
isPackageBlueprint(app: IApplication)
|
||||||
Parameters :
Returns :
boolean
|
isPlugin | ||||||
isPlugin(app: IApplication)
|
||||||
Parameters :
Returns :
boolean
|
isPluginsPackage | ||||||
isPluginsPackage(app: IApplication)
|
||||||
Parameters :
Returns :
boolean
|
isUnpacked | ||||||
isUnpacked(app: IApplication)
|
||||||
Parameters :
Returns :
boolean
|
Async isValidAppType | |||||||||
isValidAppType(archive: File, appType: ApplicationType)
|
|||||||||
Parameters :
Returns :
Promise<boolean>
|
Async listArchives | ||||||
listArchives(appId: string | number | IApplication)
|
||||||
Parameters :
Returns :
Promise<IApplicationBinary[]>
|
openApp | ||||
openApp(app)
|
||||
Parameters :
Returns :
void
|
Async reactivateArchive | ||||||
reactivateArchive(app: IApplication)
|
||||||
Parameters :
Returns :
Promise<void>
|
Async removeOldestArchive | |||||||||
removeOldestArchive(app: IApplication, archives: IApplicationBinary[])
|
|||||||||
Parameters :
Returns :
Promise<void>
|
setAppActiveVersion | |||||||||
setAppActiveVersion(app: IApplication, activeVersionId: string)
|
|||||||||
Parameters :
Returns :
Promise<IApplication>
|
setAvailabilityToPrivateIfNotSetAlready | ||||||
setAvailabilityToPrivateIfNotSetAlready(app: IApplication)
|
||||||
Parameters :
Returns :
IApplication
|
setPackageVersionTag | ||||||||||||
setPackageVersionTag(app: IApplication, version: string, tags: string[])
|
||||||||||||
Parameters :
Returns :
any
|
shouldUpgradePackage | ||||||||||||
shouldUpgradePackage(currentApplicationVersion: string, latestApp: IApplicationVersion)
|
||||||||||||
Compares currently deployed application version with application version tagged as "latest"
Parameters :
Returns :
boolean
Returns true if latest version is greater than current, otherwise false |
Async subscribeApp | ||||||
subscribeApp(app: IApplication)
|
||||||
Parameters :
Returns :
Promise<void>
|
Async unsubscribeApp | ||||||
unsubscribeApp(app: IApplication)
|
||||||
Parameters :
Returns :
Promise<void>
|
Async updateApp | ||||||||||||
updateApp(app: IApplication, deleteOnFailure)
|
||||||||||||
Parameters :
Returns :
Promise<IResult<IApplication>>
|
Async updateAppManifest | ||||||||||||
updateAppManifest(application: IApplication, selectedPackage: IApplication, requestedVersion?: string)
|
||||||||||||
Parameters :
Returns :
Promise<literal type>
|
updateUploadProgress | ||||
updateUploadProgress(event)
|
||||
Parameters :
Returns :
void
|
Async uploadArchiveToApp | ||||||||||||||||
uploadArchiveToApp(archive: File, app: IApplication, isNewVersion)
|
||||||||||||||||
Parameters :
Returns :
Promise<IApplication>
|
Async uploadBinaryFromOtherPackage | ||||||||||||||||||
uploadBinaryFromOtherPackage(selectedPackage: IApplication, applicationToUploadBinaryTo: IApplication, binaryId: string, requestedVersion?: string, useBinariesFrom?: IApplication)
|
||||||||||||||||||
Parameters :
Returns :
any
|
Async validateArchiveToAppCompatibility | |||||||||
validateArchiveToAppCompatibility(archive: File, app: IApplication)
|
|||||||||
Parameters :
Returns :
Promise<void>
|
Async validatePackageKeyAndContextPath | |||||||||
validatePackageKeyAndContextPath(manifest: IManifest, app: IApplication)
|
|||||||||
Parameters :
Returns :
any
|
Async verifyLicenses | ||||||||
verifyLicenses(pluginsToInstall: Array<LicensedApplicationPlugin>)
|
||||||||
Community plugins need to verify the license agreement. If a package is a community package, the license is shown.
Parameters :
Returns :
unknown
true if the installation can continue. |
Async verifyPluginVersionsCompatibility | ||||||||||||
verifyPluginVersionsCompatibility(pluginsToInstall: ApplicationPlugin[], app: IApplication)
|
||||||||||||
Verify versions compatibility for plugins. In case a version does not exist in the versioningMatrix we don't do anything due to backward compatibility. If a plugin version is not compatible, a warning is shown.
Parameters :
Returns :
Promise<boolean>
true if the installation can continue or false if it should be aborted. |
appDeleted |
Default value : new EventEmitter<IApplication>()
|
progress |
Type : BehaviorSubject<number>
|
Default value : new BehaviorSubject<number>(null)
|