import { IPSModelSortable } from '../ipsmodel-sortable'; import { IPSDataEntity } from '../dataentity/ipsdata-entity'; import { IPSSysDataSyncAgent } from './ipssys-data-sync-agent'; import { IPSSysSFPlugin } from './ipssys-sfplugin'; import { IPSSysUtil } from './ipssys-util'; import { IPSSubSysServiceAPI } from '../service/ipssub-sys-service-api'; import { IPSSysModelGroup } from '../system/ipssys-model-group'; import { IPSSystemModule } from '../system/ipssystem-module'; import { PSModelObjectImpl } from '../psmodel-object-impl'; export class PSSysUtilImpl extends PSModelObjectImpl implements IPSSysUtil, IPSModelSortable { get authAccessTokenUrl(): string { return this.M.authAccessTokenUrl; } get authClientId(): string { return this.M.authClientId; } get authClientSecret(): string { return this.M.authClientSecret; } get authMode(): 'NONE' | 'AUTHORIZATION_CODE' | 'PASSWORD' | 'CLIENT_CREDENTIALS' | 'IMPLICIT' | 'USER' | 'USER2' { return this.M.authMode; } get authParam(): string { return this.M.authParam; } get authParam2(): string { return this.M.authParam2; } get codeName(): string { return this.M.codeName; } get dynaModelFilePath(): string { return this.M.dynaModelFilePath; } get extendMode(): 0 | 2 { return this.M.extendMode != null ? this.M.extendMode : 0; } protected inpssysdatasyncagent: IPSSysDataSyncAgent | null = null; getInPSSysDataSyncAgent(): IPSSysDataSyncAgent | null { if (this.inpssysdatasyncagent != null) return this.inpssysdatasyncagent; const value = this.M.getInPSSysDataSyncAgent; if (value == null) { return null; } this.inpssysdatasyncagent = this.getPSModel4('res.IPSSysDataSyncAgent', value, 'getInPSSysDataSyncAgent') as IPSSysDataSyncAgent; return this.inpssysdatasyncagent; } get inPSSysDataSyncAgent(): IPSSysDataSyncAgent | null { return this.getInPSSysDataSyncAgent(); } getInPSSysDataSyncAgentMust(): IPSSysDataSyncAgent { const value = this.getInPSSysDataSyncAgent(); if (value == null) { throw new Error('未指定输入系统数据同步代理对象'); } return value; } get mOSFilePath(): string { return this.M.mOSFilePath; } get memo(): string { return this.M.memo; } get name(): string { return this.M.name; } get orderValue(): number { return this.M.orderValue != null ? this.M.orderValue : 99999; } protected outpssysdatasyncagent: IPSSysDataSyncAgent | null = null; getOutPSSysDataSyncAgent(): IPSSysDataSyncAgent | null { if (this.outpssysdatasyncagent != null) return this.outpssysdatasyncagent; const value = this.M.getOutPSSysDataSyncAgent; if (value == null) { return null; } this.outpssysdatasyncagent = this.getPSModel4('res.IPSSysDataSyncAgent', value, 'getOutPSSysDataSyncAgent') as IPSSysDataSyncAgent; return this.outpssysdatasyncagent; } get outPSSysDataSyncAgent(): IPSSysDataSyncAgent | null { return this.getOutPSSysDataSyncAgent(); } getOutPSSysDataSyncAgentMust(): IPSSysDataSyncAgent { const value = this.getOutPSSysDataSyncAgent(); if (value == null) { throw new Error('未指定输出系统数据同步代理对象'); } return value; } protected pssubsysserviceapi: IPSSubSysServiceAPI | null = null; getPSSubSysServiceAPI(): IPSSubSysServiceAPI | null { if (this.pssubsysserviceapi != null) return this.pssubsysserviceapi; const value = this.M.getPSSubSysServiceAPI; if (value == null) { return null; } this.pssubsysserviceapi = this.getPSModel4('service.IPSSubSysServiceAPI', value, 'getPSSubSysServiceAPI') as IPSSubSysServiceAPI; return this.pssubsysserviceapi; } get psSubSysServiceAPI(): IPSSubSysServiceAPI | null { return this.getPSSubSysServiceAPI(); } getPSSubSysServiceAPIMust(): IPSSubSysServiceAPI { const value = this.getPSSubSysServiceAPI(); if (value == null) { throw new Error('未指定外部服务接口'); } return value; } protected pssysmodelgroup: IPSSysModelGroup | null = null; getPSSysModelGroup(): IPSSysModelGroup | null { if (this.pssysmodelgroup != null) return this.pssysmodelgroup; const value = this.M.getPSSysModelGroup; if (value == null) { return null; } this.pssysmodelgroup = this.getPSModel4('system.IPSSysModelGroup', value, 'getPSSysModelGroup') as IPSSysModelGroup; return this.pssysmodelgroup; } get psSysModelGroup(): IPSSysModelGroup | null { return this.getPSSysModelGroup(); } getPSSysModelGroupMust(): IPSSysModelGroup { const value = this.getPSSysModelGroup(); if (value == null) { throw new Error('未指定系统模型组'); } return value; } protected pssyssfplugin: IPSSysSFPlugin | null = null; getPSSysSFPlugin(): IPSSysSFPlugin | null { if (this.pssyssfplugin != null) return this.pssyssfplugin; const value = this.M.getPSSysSFPlugin; if (value == null) { return null; } this.pssyssfplugin = this.getPSModel4('res.IPSSysSFPlugin', value, 'getPSSysSFPlugin') as IPSSysSFPlugin; return this.pssyssfplugin; } get psSysSFPlugin(): IPSSysSFPlugin | null { return this.getPSSysSFPlugin(); } getPSSysSFPluginMust(): IPSSysSFPlugin { const value = this.getPSSysSFPlugin(); if (value == null) { throw new Error('未指定后台扩展插件'); } return value; } protected pssystemmodule: IPSSystemModule | null = null; getPSSystemModule(): IPSSystemModule | null { if (this.pssystemmodule != null) return this.pssystemmodule; const value = this.M.getPSSystemModule; if (value == null) { return null; } this.pssystemmodule = this.getPSModel4('system.IPSSystemModule', value, 'getPSSystemModule') as IPSSystemModule; return this.pssystemmodule; } get psSystemModule(): IPSSystemModule | null { return this.getPSSystemModule(); } getPSSystemModuleMust(): IPSSystemModule { const value = this.getPSSystemModule(); if (value == null) { throw new Error('未指定系统模块'); } return value; } get rTMOSFilePath(): string { return this.M.rTMOSFilePath; } get rTObjectName(): string { return this.M.rTObjectName; } get serviceParam(): string { return this.M.serviceParam; } get serviceParam2(): string { return this.M.serviceParam2; } get servicePath(): string { return this.M.servicePath; } get userCat(): string { return this.M.userCat; } get userTag(): string { return this.M.userTag; } get userTag2(): string { return this.M.userTag2; } get userTag3(): string { return this.M.userTag3; } get userTag4(): string { return this.M.userTag4; } protected utilpsde: IPSDataEntity | null = null; getUtilPSDE(): IPSDataEntity | null { if (this.utilpsde != null) return this.utilpsde; const value = this.M.getUtilPSDE; if (value == null) { return null; } this.utilpsde = this.getPSModel4('dataentity.IPSDataEntity', value, 'getUtilPSDE') as IPSDataEntity; return this.utilpsde; } get utilPSDE(): IPSDataEntity | null { return this.getUtilPSDE(); } getUtilPSDEMust(): IPSDataEntity { const value = this.getUtilPSDE(); if (value == null) { throw new Error('未指定功能实体'); } return value; } protected utilpsde10: IPSDataEntity | null = null; getUtilPSDE10(): IPSDataEntity | null { if (this.utilpsde10 != null) return this.utilpsde10; const value = this.M.getUtilPSDE10; if (value == null) { return null; } this.utilpsde10 = this.getPSModel4('dataentity.IPSDataEntity', value, 'getUtilPSDE10') as IPSDataEntity; return this.utilpsde10; } get utilPSDE10(): IPSDataEntity | null { return this.getUtilPSDE10(); } getUtilPSDE10Must(): IPSDataEntity { const value = this.getUtilPSDE10(); if (value == null) { throw new Error('未指定功能实体10'); } return value; } get utilPSDE10Name(): string { return this.M.utilPSDE10Name; } protected utilpsde11: IPSDataEntity | null = null; getUtilPSDE11(): IPSDataEntity | null { if (this.utilpsde11 != null) return this.utilpsde11; const value = this.M.getUtilPSDE11; if (value == null) { return null; } this.utilpsde11 = this.getPSModel4('dataentity.IPSDataEntity', value, 'getUtilPSDE11') as IPSDataEntity; return this.utilpsde11; } get utilPSDE11(): IPSDataEntity | null { return this.getUtilPSDE11(); } getUtilPSDE11Must(): IPSDataEntity { const value = this.getUtilPSDE11(); if (value == null) { throw new Error('未指定功能实体11'); } return value; } protected utilpsde12: IPSDataEntity | null = null; getUtilPSDE12(): IPSDataEntity | null { if (this.utilpsde12 != null) return this.utilpsde12; const value = this.M.getUtilPSDE12; if (value == null) { return null; } this.utilpsde12 = this.getPSModel4('dataentity.IPSDataEntity', value, 'getUtilPSDE12') as IPSDataEntity; return this.utilpsde12; } get utilPSDE12(): IPSDataEntity | null { return this.getUtilPSDE12(); } getUtilPSDE12Must(): IPSDataEntity { const value = this.getUtilPSDE12(); if (value == null) { throw new Error('未指定功能实体12'); } return value; } protected utilpsde13: IPSDataEntity | null = null; getUtilPSDE13(): IPSDataEntity | null { if (this.utilpsde13 != null) return this.utilpsde13; const value = this.M.getUtilPSDE13; if (value == null) { return null; } this.utilpsde13 = this.getPSModel4('dataentity.IPSDataEntity', value, 'getUtilPSDE13') as IPSDataEntity; return this.utilpsde13; } get utilPSDE13(): IPSDataEntity | null { return this.getUtilPSDE13(); } getUtilPSDE13Must(): IPSDataEntity { const value = this.getUtilPSDE13(); if (value == null) { throw new Error('未指定功能实体13'); } return value; } protected utilpsde14: IPSDataEntity | null = null; getUtilPSDE14(): IPSDataEntity | null { if (this.utilpsde14 != null) return this.utilpsde14; const value = this.M.getUtilPSDE14; if (value == null) { return null; } this.utilpsde14 = this.getPSModel4('dataentity.IPSDataEntity', value, 'getUtilPSDE14') as IPSDataEntity; return this.utilpsde14; } get utilPSDE14(): IPSDataEntity | null { return this.getUtilPSDE14(); } getUtilPSDE14Must(): IPSDataEntity { const value = this.getUtilPSDE14(); if (value == null) { throw new Error('未指定功能实体14'); } return value; } protected utilpsde15: IPSDataEntity | null = null; getUtilPSDE15(): IPSDataEntity | null { if (this.utilpsde15 != null) return this.utilpsde15; const value = this.M.getUtilPSDE15; if (value == null) { return null; } this.utilpsde15 = this.getPSModel4('dataentity.IPSDataEntity', value, 'getUtilPSDE15') as IPSDataEntity; return this.utilpsde15; } get utilPSDE15(): IPSDataEntity | null { return this.getUtilPSDE15(); } getUtilPSDE15Must(): IPSDataEntity { const value = this.getUtilPSDE15(); if (value == null) { throw new Error('未指定功能实体15'); } return value; } protected utilpsde16: IPSDataEntity | null = null; getUtilPSDE16(): IPSDataEntity | null { if (this.utilpsde16 != null) return this.utilpsde16; const value = this.M.getUtilPSDE16; if (value == null) { return null; } this.utilpsde16 = this.getPSModel4('dataentity.IPSDataEntity', value, 'getUtilPSDE16') as IPSDataEntity; return this.utilpsde16; } get utilPSDE16(): IPSDataEntity | null { return this.getUtilPSDE16(); } getUtilPSDE16Must(): IPSDataEntity { const value = this.getUtilPSDE16(); if (value == null) { throw new Error('未指定功能实体16'); } return value; } protected utilpsde17: IPSDataEntity | null = null; getUtilPSDE17(): IPSDataEntity | null { if (this.utilpsde17 != null) return this.utilpsde17; const value = this.M.getUtilPSDE17; if (value == null) { return null; } this.utilpsde17 = this.getPSModel4('dataentity.IPSDataEntity', value, 'getUtilPSDE17') as IPSDataEntity; return this.utilpsde17; } get utilPSDE17(): IPSDataEntity | null { return this.getUtilPSDE17(); } getUtilPSDE17Must(): IPSDataEntity { const value = this.getUtilPSDE17(); if (value == null) { throw new Error('未指定功能实体17'); } return value; } protected utilpsde18: IPSDataEntity | null = null; getUtilPSDE18(): IPSDataEntity | null { if (this.utilpsde18 != null) return this.utilpsde18; const value = this.M.getUtilPSDE18; if (value == null) { return null; } this.utilpsde18 = this.getPSModel4('dataentity.IPSDataEntity', value, 'getUtilPSDE18') as IPSDataEntity; return this.utilpsde18; } get utilPSDE18(): IPSDataEntity | null { return this.getUtilPSDE18(); } getUtilPSDE18Must(): IPSDataEntity { const value = this.getUtilPSDE18(); if (value == null) { throw new Error('未指定功能实体18'); } return value; } protected utilpsde19: IPSDataEntity | null = null; getUtilPSDE19(): IPSDataEntity | null { if (this.utilpsde19 != null) return this.utilpsde19; const value = this.M.getUtilPSDE19; if (value == null) { return null; } this.utilpsde19 = this.getPSModel4('dataentity.IPSDataEntity', value, 'getUtilPSDE19') as IPSDataEntity; return this.utilpsde19; } get utilPSDE19(): IPSDataEntity | null { return this.getUtilPSDE19(); } getUtilPSDE19Must(): IPSDataEntity { const value = this.getUtilPSDE19(); if (value == null) { throw new Error('未指定功能实体19'); } return value; } protected utilpsde2: IPSDataEntity | null = null; getUtilPSDE2(): IPSDataEntity | null { if (this.utilpsde2 != null) return this.utilpsde2; const value = this.M.getUtilPSDE2; if (value == null) { return null; } this.utilpsde2 = this.getPSModel4('dataentity.IPSDataEntity', value, 'getUtilPSDE2') as IPSDataEntity; return this.utilpsde2; } get utilPSDE2(): IPSDataEntity | null { return this.getUtilPSDE2(); } getUtilPSDE2Must(): IPSDataEntity { const value = this.getUtilPSDE2(); if (value == null) { throw new Error('未指定功能实体2'); } return value; } protected utilpsde20: IPSDataEntity | null = null; getUtilPSDE20(): IPSDataEntity | null { if (this.utilpsde20 != null) return this.utilpsde20; const value = this.M.getUtilPSDE20; if (value == null) { return null; } this.utilpsde20 = this.getPSModel4('dataentity.IPSDataEntity', value, 'getUtilPSDE20') as IPSDataEntity; return this.utilpsde20; } get utilPSDE20(): IPSDataEntity | null { return this.getUtilPSDE20(); } getUtilPSDE20Must(): IPSDataEntity { const value = this.getUtilPSDE20(); if (value == null) { throw new Error('未指定功能实体20'); } return value; } get utilPSDE2Name(): string { return this.M.utilPSDE2Name; } protected utilpsde3: IPSDataEntity | null = null; getUtilPSDE3(): IPSDataEntity | null { if (this.utilpsde3 != null) return this.utilpsde3; const value = this.M.getUtilPSDE3; if (value == null) { return null; } this.utilpsde3 = this.getPSModel4('dataentity.IPSDataEntity', value, 'getUtilPSDE3') as IPSDataEntity; return this.utilpsde3; } get utilPSDE3(): IPSDataEntity | null { return this.getUtilPSDE3(); } getUtilPSDE3Must(): IPSDataEntity { const value = this.getUtilPSDE3(); if (value == null) { throw new Error('未指定功能实体3'); } return value; } get utilPSDE3Name(): string { return this.M.utilPSDE3Name; } protected utilpsde4: IPSDataEntity | null = null; getUtilPSDE4(): IPSDataEntity | null { if (this.utilpsde4 != null) return this.utilpsde4; const value = this.M.getUtilPSDE4; if (value == null) { return null; } this.utilpsde4 = this.getPSModel4('dataentity.IPSDataEntity', value, 'getUtilPSDE4') as IPSDataEntity; return this.utilpsde4; } get utilPSDE4(): IPSDataEntity | null { return this.getUtilPSDE4(); } getUtilPSDE4Must(): IPSDataEntity { const value = this.getUtilPSDE4(); if (value == null) { throw new Error('未指定功能实体4'); } return value; } get utilPSDE4Name(): string { return this.M.utilPSDE4Name; } protected utilpsde5: IPSDataEntity | null = null; getUtilPSDE5(): IPSDataEntity | null { if (this.utilpsde5 != null) return this.utilpsde5; const value = this.M.getUtilPSDE5; if (value == null) { return null; } this.utilpsde5 = this.getPSModel4('dataentity.IPSDataEntity', value, 'getUtilPSDE5') as IPSDataEntity; return this.utilpsde5; } get utilPSDE5(): IPSDataEntity | null { return this.getUtilPSDE5(); } getUtilPSDE5Must(): IPSDataEntity { const value = this.getUtilPSDE5(); if (value == null) { throw new Error('未指定功能实体5'); } return value; } get utilPSDE5Name(): string { return this.M.utilPSDE5Name; } protected utilpsde6: IPSDataEntity | null = null; getUtilPSDE6(): IPSDataEntity | null { if (this.utilpsde6 != null) return this.utilpsde6; const value = this.M.getUtilPSDE6; if (value == null) { return null; } this.utilpsde6 = this.getPSModel4('dataentity.IPSDataEntity', value, 'getUtilPSDE6') as IPSDataEntity; return this.utilpsde6; } get utilPSDE6(): IPSDataEntity | null { return this.getUtilPSDE6(); } getUtilPSDE6Must(): IPSDataEntity { const value = this.getUtilPSDE6(); if (value == null) { throw new Error('未指定功能实体6'); } return value; } get utilPSDE6Name(): string { return this.M.utilPSDE6Name; } protected utilpsde7: IPSDataEntity | null = null; getUtilPSDE7(): IPSDataEntity | null { if (this.utilpsde7 != null) return this.utilpsde7; const value = this.M.getUtilPSDE7; if (value == null) { return null; } this.utilpsde7 = this.getPSModel4('dataentity.IPSDataEntity', value, 'getUtilPSDE7') as IPSDataEntity; return this.utilpsde7; } get utilPSDE7(): IPSDataEntity | null { return this.getUtilPSDE7(); } getUtilPSDE7Must(): IPSDataEntity { const value = this.getUtilPSDE7(); if (value == null) { throw new Error('未指定功能实体7'); } return value; } get utilPSDE7Name(): string { return this.M.utilPSDE7Name; } protected utilpsde8: IPSDataEntity | null = null; getUtilPSDE8(): IPSDataEntity | null { if (this.utilpsde8 != null) return this.utilpsde8; const value = this.M.getUtilPSDE8; if (value == null) { return null; } this.utilpsde8 = this.getPSModel4('dataentity.IPSDataEntity', value, 'getUtilPSDE8') as IPSDataEntity; return this.utilpsde8; } get utilPSDE8(): IPSDataEntity | null { return this.getUtilPSDE8(); } getUtilPSDE8Must(): IPSDataEntity { const value = this.getUtilPSDE8(); if (value == null) { throw new Error('未指定功能实体8'); } return value; } get utilPSDE8Name(): string { return this.M.utilPSDE8Name; } protected utilpsde9: IPSDataEntity | null = null; getUtilPSDE9(): IPSDataEntity | null { if (this.utilpsde9 != null) return this.utilpsde9; const value = this.M.getUtilPSDE9; if (value == null) { return null; } this.utilpsde9 = this.getPSModel4('dataentity.IPSDataEntity', value, 'getUtilPSDE9') as IPSDataEntity; return this.utilpsde9; } get utilPSDE9(): IPSDataEntity | null { return this.getUtilPSDE9(); } getUtilPSDE9Must(): IPSDataEntity { const value = this.getUtilPSDE9(); if (value == null) { throw new Error('未指定功能实体9'); } return value; } get utilPSDE9Name(): string { return this.M.utilPSDE9Name; } get utilPSDEName(): string { return this.M.utilPSDEName; } get utilParams(): IModel { return this.M.utilParams; } get utilTag(): string { return this.M.utilTag; } get utilTag2(): string { return this.M.utilTag2; } get utilType(): | 'DATAAUDIT' | 'FILE' | 'APPCUSTOMIZE' | 'SAASADMIN' | 'SAASUSERAUTH' | 'SAASUSERAUTHSERVICE' | 'SAASORG' | 'SAASORGSERVICE' | 'SAASWF' | 'SAASWFSERVICE' | 'SAASCORESERVICE' | 'LOGLISTENER' | 'USER' { return this.M.utilType; } get regToSys(): boolean { return this.M.regToSys; } get tryMode(): boolean { return this.M.tryMode != null ? this.M.tryMode : false; } get cls(): string { return 'PSSysUtilImpl'; } instanceof(cls: string): boolean { if (cls == 'IPSModelObject' || cls == 'IPSModelSortable' || cls == 'IPSObject' || cls == 'dataentity.IPSDataEntityObject' || cls == 'dataentity.util.IPSDEUtil' || cls == 'res.IPSSysUtil') return true; return super.instanceof(cls); } }