作者:AlbertoRamirezLosill
项目:alfresco-esign-cer
constructor(
private http: HttpClient,
private alfrescoApi: AlfrescoApiService,
private appConfig: AppConfigService) {
this.ecmHost = this.appConfig.get<string>('ecmHost');
}
作者:Alfresc
项目:alfresco-ng2-component
refreshData(): void {
if (this.processInstance) {
const defaultProperties = this.initDefaultProperties();
const filteredProperties: string[] = this.appConfig.get('adf-process-instance-header.presets.properties');
this.properties = defaultProperties.filter((cardItem) => this.isValidSelection(filteredProperties, cardItem));
}
}
作者:Alfresc
项目:alfresco-ng2-component
loadApps() {
const apps = this.appConfig.get<any>('alfresco-deployed-apps', []);
apps.map((app) => {
app.theme = app.theme ? app.theme : 'theme-1';
app.icon = app.icon ? app.icon : 'favorite';
});
this.deployedApps = apps;
}
作者:Alfresc
项目:alfresco-ng2-component
private buildCreateTaskUrl(appName: string): any {
return `${this.appConfigService.get('bpmHost')}/${appName}-rb/v1/tasks`;
}
作者:Alfresc
项目:alfresco-ng2-component
private getApplicationUrl(): string {
return `${this.appConfigService.get('bpmHost')}/alfresco-deployment-service/v1/applications`;
}
作者:Alfresc
项目:alfresco-ng2-component
private getUserApi() {
return `${this.appConfigService.get('identityHost')}/users`;
}
作者:Alfresc
项目:alfresco-ng2-component
private buildRolesUrl(groupId: string): any {
return `${this.appConfigService.get('identityHost')}/groups/${groupId}/role-mappings/realm/composite`;
}
作者:Alfresc
项目:alfresco-ng2-component
private getGroupsApi() {
return `${this.appConfigService.get('identityHost')}/groups`;
}
作者:Alfresc
项目:alfresco-ng2-component
private getApplicationIdApi() {
return `${this.appConfigService.get('identityHost')}/clients`;
}
作者:Alfresc
项目:alfresco-ng2-component
private groupClientRoleMappingApi(groupId: string, clientId: string): any {
return `${this.appConfigService.get('identityHost')}/groups/${groupId}/role-mappings/clients/${clientId}`;
}