@lcap/nasl 2.16.0 → 2.16.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/out/server/naslStdlibMap.js +28 -28
- package/out/server/naslStdlibMap.js.map +1 -1
- package/package.json +1 -1
- package/{stdlib → sandbox/stdlib}/nasl.annotation.ts +0 -0
- package/{stdlib → sandbox/stdlib}/nasl.auth.ts +0 -0
- package/{stdlib → sandbox/stdlib}/nasl.browser.ts +0 -0
- package/{stdlib → sandbox/stdlib}/nasl.collection.ts +0 -0
- package/{stdlib → sandbox/stdlib}/nasl.configuration.ts +0 -0
- package/{stdlib → sandbox/stdlib}/nasl.core.ts +0 -0
- package/{stdlib → sandbox/stdlib}/nasl.interface.ts +0 -0
- package/{stdlib → sandbox/stdlib}/nasl.io.ts +0 -0
- package/{stdlib → sandbox/stdlib}/nasl.langUtil.ts +0 -0
- package/{stdlib → sandbox/stdlib}/nasl.logging.ts +0 -0
- package/{stdlib → sandbox/stdlib}/nasl.process.ts +0 -0
- package/{stdlib → sandbox/stdlib}/nasl.ui.definition.ts +0 -0
- package/{stdlib → sandbox/stdlib}/nasl.ui.ts +0 -0
- package/{stdlib → sandbox/stdlib}/nasl.util.ts +0 -0
- package/{stdlib → sandbox/stdlib}/nasl.validation.ts +0 -0
- package/sandbox/tsconfig.json +11 -0
- package/src/server/naslStdlibMap.ts +28 -28
- package/ts-worker/src/start.js +1 -1
- package/out/automate/template/process.d.ts +0 -9
- package/out/automate/template/process.js +0 -11787
- package/out/automate/template/process.js.map +0 -1
- package/out/concepts/AnonymousFunction__.d.ts +0 -170
- package/out/concepts/AnonymousFunction__.js +0 -439
- package/out/concepts/AnonymousFunction__.js.map +0 -1
- package/out/concepts/AssignmentLine__.d.ts +0 -40
- package/out/concepts/AssignmentLine__.js +0 -109
- package/out/concepts/AssignmentLine__.js.map +0 -1
- package/out/concepts/BatchAssignment__.d.ts +0 -248
- package/out/concepts/BatchAssignment__.js +0 -742
- package/out/concepts/BatchAssignment__.js.map +0 -1
- package/out/concepts/ConstructArgument__.d.ts +0 -40
- package/out/concepts/ConstructArgument__.js +0 -108
- package/out/concepts/ConstructArgument__.js.map +0 -1
- package/out/concepts/Construct__.d.ts +0 -189
- package/out/concepts/Construct__.js +0 -340
- package/out/concepts/Construct__.js.map +0 -1
- package/out/concepts/MatchCase__.d.ts +0 -256
- package/out/concepts/MatchCase__.js +0 -584
- package/out/concepts/MatchCase__.js.map +0 -1
- package/out/concepts/Match__.d.ts +0 -117
- package/out/concepts/Match__.js +0 -434
- package/out/concepts/Match__.js.map +0 -1
- package/out/concepts/OqlQueryComponent__.d.ts +0 -73
- package/out/concepts/OqlQueryComponent__.js +0 -395
- package/out/concepts/OqlQueryComponent__.js.map +0 -1
- package/out/concepts/SelectMembers__.d.ts +0 -141
- package/out/concepts/SelectMembers__.js +0 -290
- package/out/concepts/SelectMembers__.js.map +0 -1
- package/out/debug/apps/e576d732-d6d0-4b90-a542-c9be77f79527/embedded/zysnew/datasources/defaultDS/entities/EEfef.ts +0 -43
- package/out/debug/apps/e576d732-d6d0-4b90-a542-c9be77f79527/embedded/zysnew/datasources/defaultDS/entities/Entity1_123.ts +0 -49
- package/out/debug/apps/e576d732-d6d0-4b90-a542-c9be77f79527/embedded/zysnew/datasources/defaultDS/entities/LCAPPerResMapping.ts +0 -46
- package/out/debug/apps/e576d732-d6d0-4b90-a542-c9be77f79527/embedded/zysnew/datasources/defaultDS/entities/LCAPPermission.ts +0 -45
- package/out/debug/apps/e576d732-d6d0-4b90-a542-c9be77f79527/embedded/zysnew/datasources/defaultDS/entities/LCAPResource.ts +0 -46
- package/out/debug/apps/e576d732-d6d0-4b90-a542-c9be77f79527/embedded/zysnew/datasources/defaultDS/entities/LCAPRole.ts +0 -47
- package/out/debug/apps/e576d732-d6d0-4b90-a542-c9be77f79527/embedded/zysnew/datasources/defaultDS/entities/LCAPRolePerMapping.ts +0 -46
- package/out/debug/apps/e576d732-d6d0-4b90-a542-c9be77f79527/embedded/zysnew/datasources/defaultDS/entities/LCAPUserRoleMapping.ts +0 -47
- package/out/debug/apps/e576d732-d6d0-4b90-a542-c9be77f79527/embedded/zysnew/datasources/defaultDS/entities/StudentForReportCcc.ts +0 -43
- package/out/debug/apps/e576d732-d6d0-4b90-a542-c9be77f79527/embedded/zysnew/datasources/defaultDS/entities/StudentForReportSss.ts +0 -43
- package/out/debug/apps/e576d732-d6d0-4b90-a542-c9be77f79527/embedded/zysnew/datasources/defaultDS.ts +0 -5
- package/out/debug/apps/e576d732-d6d0-4b90-a542-c9be77f79527/embedded/zysnew/dependencies/log-tool/logics/debug.ts +0 -6
- package/out/debug/apps/e576d732-d6d0-4b90-a542-c9be77f79527/embedded/zysnew/dependencies/log-tool/logics/error.ts +0 -6
- package/out/debug/apps/e576d732-d6d0-4b90-a542-c9be77f79527/embedded/zysnew/dependencies/log-tool/logics/info.ts +0 -6
- package/out/debug/apps/e576d732-d6d0-4b90-a542-c9be77f79527/embedded/zysnew/dependencies/log-tool/logics/warn.ts +0 -6
- package/out/debug/apps/e576d732-d6d0-4b90-a542-c9be77f79527/embedded/zysnew/entities/EEfef.ts +0 -43
- package/out/debug/apps/e576d732-d6d0-4b90-a542-c9be77f79527/embedded/zysnew/entities/Entity1_123.ts +0 -49
- package/out/debug/apps/e576d732-d6d0-4b90-a542-c9be77f79527/embedded/zysnew/entities/LCAPPerResMapping.ts +0 -46
- package/out/debug/apps/e576d732-d6d0-4b90-a542-c9be77f79527/embedded/zysnew/entities/LCAPPermission.ts +0 -45
- package/out/debug/apps/e576d732-d6d0-4b90-a542-c9be77f79527/embedded/zysnew/entities/LCAPResource.ts +0 -46
- package/out/debug/apps/e576d732-d6d0-4b90-a542-c9be77f79527/embedded/zysnew/entities/LCAPRole.ts +0 -47
- package/out/debug/apps/e576d732-d6d0-4b90-a542-c9be77f79527/embedded/zysnew/entities/LCAPRolePerMapping.ts +0 -46
- package/out/debug/apps/e576d732-d6d0-4b90-a542-c9be77f79527/embedded/zysnew/entities/LCAPUserRoleMapping.ts +0 -47
- package/out/debug/apps/e576d732-d6d0-4b90-a542-c9be77f79527/embedded/zysnew/entities/StudentForReportCcc.ts +0 -43
- package/out/debug/apps/e576d732-d6d0-4b90-a542-c9be77f79527/embedded/zysnew/entities/StudentForReportSss.ts +0 -43
- package/out/debug/apps/e576d732-d6d0-4b90-a542-c9be77f79527/embedded/zysnew/enums/Enum1_bbb.ts +0 -17
- package/out/debug/apps/e576d732-d6d0-4b90-a542-c9be77f79527/embedded/zysnew/interfaceDependencies/nuims/interfaces/LcpGetUser.ts +0 -6
- package/out/debug/apps/e576d732-d6d0-4b90-a542-c9be77f79527/embedded/zysnew/interfaceDependencies/nuims/interfaces/LcpGetUserList.ts +0 -6
- package/out/debug/apps/e576d732-d6d0-4b90-a542-c9be77f79527/embedded/zysnew/interfaceDependencies/nuims/structures/ApiReturnOfLcpGetUser.ts +0 -9
- package/out/debug/apps/e576d732-d6d0-4b90-a542-c9be77f79527/embedded/zysnew/interfaceDependencies/nuims/structures/ApiReturnOfLcpGetUserList.ts +0 -12
- package/out/debug/apps/e576d732-d6d0-4b90-a542-c9be77f79527/embedded/zysnew/interfaceDependencies/nuims/structures/LcpGetUserListBody.ts +0 -6
- package/out/debug/apps/e576d732-d6d0-4b90-a542-c9be77f79527/embedded/zysnew/interfaceDependencies/nuims/structures/LcpUserInfo.ts +0 -16
- package/out/debug/apps/e576d732-d6d0-4b90-a542-c9be77f79527/embedded/zysnew/interfaceDependencies/nuims/structures/UserFilter.ts +0 -14
- package/out/debug/apps/e576d732-d6d0-4b90-a542-c9be77f79527/embedded/zysnew/interfaceDependencies/nuims/structures/UserInfo.ts +0 -16
- package/out/debug/apps/e576d732-d6d0-4b90-a542-c9be77f79527/embedded/zysnew/interfaceDependencies/nuims/structures/UserInfoExtendInfo.ts +0 -10
- package/out/debug/apps/e576d732-d6d0-4b90-a542-c9be77f79527/embedded/zysnew/interfaces/getUserResources.ts +0 -7
- package/out/debug/apps/e576d732-d6d0-4b90-a542-c9be77f79527/embedded/zysnew/interfaces/roleBindUsers.ts +0 -7
- package/out/debug/apps/e576d732-d6d0-4b90-a542-c9be77f79527/embedded/zysnew/interfaces/unBindUsers.ts +0 -7
- package/out/debug/apps/e576d732-d6d0-4b90-a542-c9be77f79527/embedded/zysnew/logics/LCAPGetMappingByPermissionIdAndResourceId.ts +0 -22
- package/out/debug/apps/e576d732-d6d0-4b90-a542-c9be77f79527/embedded/zysnew/logics/LCAPGetMappingIdByRoleIdAndUserId.ts +0 -25
- package/out/debug/apps/e576d732-d6d0-4b90-a542-c9be77f79527/embedded/zysnew/logics/LCAPGetPermissionByRoleId.ts +0 -32
- package/out/debug/apps/e576d732-d6d0-4b90-a542-c9be77f79527/embedded/zysnew/logics/LCAPGetResourceListByRoleId.ts +0 -31
- package/out/debug/apps/e576d732-d6d0-4b90-a542-c9be77f79527/embedded/zysnew/logics/LCAPGetRoleBindUserList.ts +0 -17
- package/out/debug/apps/e576d732-d6d0-4b90-a542-c9be77f79527/embedded/zysnew/logics/LCAPGetRolePermissionList.ts +0 -18
- package/out/debug/apps/e576d732-d6d0-4b90-a542-c9be77f79527/embedded/zysnew/logics/LCAPGetScopeResourceByRoleId.ts +0 -22
- package/out/debug/apps/e576d732-d6d0-4b90-a542-c9be77f79527/embedded/zysnew/logics/LCAPGetUserResources.ts +0 -40
- package/out/debug/apps/e576d732-d6d0-4b90-a542-c9be77f79527/embedded/zysnew/logics/LCAPIsAlreadBindUserIdList.ts +0 -21
- package/out/debug/apps/e576d732-d6d0-4b90-a542-c9be77f79527/embedded/zysnew/logics/LCAPIsRoleNameRepeated.ts +0 -22
- package/out/debug/apps/e576d732-d6d0-4b90-a542-c9be77f79527/embedded/zysnew/logics/LCAPLoadAddRoleUserSelectLCAPRole.ts +0 -14
- package/out/debug/apps/e576d732-d6d0-4b90-a542-c9be77f79527/embedded/zysnew/logics/LCAPLoadPermissionManagementTableView.ts +0 -16
- package/out/debug/apps/e576d732-d6d0-4b90-a542-c9be77f79527/embedded/zysnew/logics/LCAPLoadPermissionResourceListView.ts +0 -14
- package/out/debug/apps/e576d732-d6d0-4b90-a542-c9be77f79527/embedded/zysnew/logics/LCAPLoadResourceTableView.ts +0 -15
- package/out/debug/apps/e576d732-d6d0-4b90-a542-c9be77f79527/embedded/zysnew/logics/LCAPLoadRoleManagementTableView.ts +0 -16
- package/out/debug/apps/e576d732-d6d0-4b90-a542-c9be77f79527/embedded/zysnew/logics/LCAPLoadUserRoleMappingTableView.ts +0 -19
- package/out/debug/apps/e576d732-d6d0-4b90-a542-c9be77f79527/embedded/zysnew/logics/LCAPRoleBindUsers.ts +0 -47
- package/out/debug/apps/e576d732-d6d0-4b90-a542-c9be77f79527/embedded/zysnew/logics/isExistRoleId.ts +0 -24
- package/out/debug/apps/e576d732-d6d0-4b90-a542-c9be77f79527/embedded/zysnew/logics/loadAddRoleUserTableView.ts +0 -18
- package/out/debug/apps/e576d732-d6d0-4b90-a542-c9be77f79527/embedded/zysnew/logics/loadDashboardTableView.ts +0 -15
- package/out/debug/apps/e576d732-d6d0-4b90-a542-c9be77f79527/embedded/zysnew/logics/loadDashboardTableView1.ts +0 -16
- package/out/debug/apps/e576d732-d6d0-4b90-a542-c9be77f79527/embedded/zysnew/logics/logic1.ts +0 -8
- package/out/debug/apps/e576d732-d6d0-4b90-a542-c9be77f79527/embedded/zysnew/logics/logic2.ts +0 -10
- package/out/debug/apps/e576d732-d6d0-4b90-a542-c9be77f79527/embedded/zysnew/logics/logic3.ts +0 -9
- package/out/debug/apps/e576d732-d6d0-4b90-a542-c9be77f79527/embedded/zysnew/logics/unBindUsers.ts +0 -54
- package/out/debug/apps/e576d732-d6d0-4b90-a542-c9be77f79527/embedded/zysnew/roles/DEV-AdminRole.ts +0 -5
- package/out/debug/apps/e576d732-d6d0-4b90-a542-c9be77f79527/embedded/zysnew/structures/GetMappingIdByRoleIdAndUserIdStructure.ts +0 -6
- package/out/debug/apps/e576d732-d6d0-4b90-a542-c9be77f79527/embedded/zysnew/structures/GetPermissionByRoleIdStructure.ts +0 -6
- package/out/debug/apps/e576d732-d6d0-4b90-a542-c9be77f79527/embedded/zysnew/structures/GetRoleBindUserListStructure.ts +0 -6
- package/out/debug/apps/e576d732-d6d0-4b90-a542-c9be77f79527/embedded/zysnew/structures/IsExistRoleIdStructure.ts +0 -6
- package/out/debug/apps/e576d732-d6d0-4b90-a542-c9be77f79527/embedded/zysnew/structures/LCAPGetMappingByPermissionIdAndResourceIdStructure.ts +0 -6
- package/out/debug/apps/e576d732-d6d0-4b90-a542-c9be77f79527/embedded/zysnew/structures/LCAPGetResourceListByRoleIdStructure.ts +0 -9
- package/out/debug/apps/e576d732-d6d0-4b90-a542-c9be77f79527/embedded/zysnew/structures/LCAPGetRoleListByNameStructure.ts +0 -6
- package/out/debug/apps/e576d732-d6d0-4b90-a542-c9be77f79527/embedded/zysnew/structures/LCAPGetRolePermissionListStructure.ts +0 -7
- package/out/debug/apps/e576d732-d6d0-4b90-a542-c9be77f79527/embedded/zysnew/structures/LCAPGetScopeResourceByRoleIdStructure.ts +0 -9
- package/out/debug/apps/e576d732-d6d0-4b90-a542-c9be77f79527/embedded/zysnew/structures/LCAPGetUserResourcesStructure.ts +0 -9
- package/out/debug/apps/e576d732-d6d0-4b90-a542-c9be77f79527/embedded/zysnew/structures/LCAPRoleBindUsersBody.ts +0 -7
- package/out/debug/apps/e576d732-d6d0-4b90-a542-c9be77f79527/embedded/zysnew/structures/LoadAddRoleUserSelectLCAPRoleStructure.ts +0 -6
- package/out/debug/apps/e576d732-d6d0-4b90-a542-c9be77f79527/embedded/zysnew/structures/LoadAddRoleUserTableViewStructure.ts +0 -7
- package/out/debug/apps/e576d732-d6d0-4b90-a542-c9be77f79527/embedded/zysnew/structures/LoadDashboardTableView1Structure.ts +0 -6
- package/out/debug/apps/e576d732-d6d0-4b90-a542-c9be77f79527/embedded/zysnew/structures/LoadDashboardTableViewStructure.ts +0 -6
- package/out/debug/apps/e576d732-d6d0-4b90-a542-c9be77f79527/embedded/zysnew/structures/LoadPermissionManagementTableViewStructure.ts +0 -6
- package/out/debug/apps/e576d732-d6d0-4b90-a542-c9be77f79527/embedded/zysnew/structures/LoadPermissionResourceListViewStructure.ts +0 -6
- package/out/debug/apps/e576d732-d6d0-4b90-a542-c9be77f79527/embedded/zysnew/structures/LoadPermissionResourceTableViewStructure.ts +0 -6
- package/out/debug/apps/e576d732-d6d0-4b90-a542-c9be77f79527/embedded/zysnew/structures/LoadRoleManagementTableViewStructure.ts +0 -6
- package/out/debug/apps/e576d732-d6d0-4b90-a542-c9be77f79527/embedded/zysnew/structures/LoadURMTableViewStructure.ts +0 -7
- package/out/debug/apps/e576d732-d6d0-4b90-a542-c9be77f79527/embedded/zysnew/structures/ResourceResult.ts +0 -7
- package/out/debug/apps/e576d732-d6d0-4b90-a542-c9be77f79527/embedded/zysnew/structures/Structure1.ts +0 -7
- package/out/debug/apps/e576d732-d6d0-4b90-a542-c9be77f79527/embedded/zysnew/structures/Structure1_32aa.ts +0 -5
- package/out/server/stdlib/nasl.annotation.d.ts +0 -4
- package/out/server/stdlib/nasl.annotation.js +0 -1
- package/out/server/stdlib/nasl.annotation.js.map +0 -1
- package/out/server/stdlib/nasl.auth.d.ts +0 -30
- package/out/server/stdlib/nasl.auth.js +0 -1
- package/out/server/stdlib/nasl.auth.js.map +0 -1
- package/out/server/stdlib/nasl.browser.d.ts +0 -5
- package/out/server/stdlib/nasl.browser.js +0 -1
- package/out/server/stdlib/nasl.browser.js.map +0 -1
- package/out/server/stdlib/nasl.collection.d.ts +0 -22
- package/out/server/stdlib/nasl.collection.js +0 -1
- package/out/server/stdlib/nasl.collection.js.map +0 -1
- package/out/server/stdlib/nasl.configuration.d.ts +0 -3
- package/out/server/stdlib/nasl.configuration.js +0 -1
- package/out/server/stdlib/nasl.configuration.js.map +0 -1
- package/out/server/stdlib/nasl.core.d.ts +0 -104
- package/out/server/stdlib/nasl.core.js +0 -1
- package/out/server/stdlib/nasl.core.js.map +0 -1
- package/out/server/stdlib/nasl.interface.d.ts +0 -7
- package/out/server/stdlib/nasl.interface.js +0 -1
- package/out/server/stdlib/nasl.interface.js.map +0 -1
- package/out/server/stdlib/nasl.langUtil.d.ts +0 -28
- package/out/server/stdlib/nasl.langUtil.js +0 -1
- package/out/server/stdlib/nasl.langUtil.js.map +0 -1
- package/out/server/stdlib/nasl.process.d.ts +0 -50
- package/out/server/stdlib/nasl.process.js +0 -1
- package/out/server/stdlib/nasl.process.js.map +0 -1
- package/out/server/stdlib/nasl.ui.d.ts +0 -186
- package/out/server/stdlib/nasl.ui.definition.d.ts +0 -1072
- package/out/server/stdlib/nasl.ui.definition.js +0 -632
- package/out/server/stdlib/nasl.ui.definition.js.map +0 -1
- package/out/server/stdlib/nasl.ui.js +0 -1
- package/out/server/stdlib/nasl.ui.js.map +0 -1
- package/out/server/stdlib/nasl.util.d.ts +0 -74
- package/out/server/stdlib/nasl.util.js +0 -4
- package/out/server/stdlib/nasl.util.js.map +0 -1
- package/out/server/stdlib/nasl.validation.d.ts +0 -32
- package/out/server/stdlib/nasl.validation.js +0 -1
- package/out/server/stdlib/nasl.validation.js.map +0 -1
- package/out/service/logic/api.d.ts +0 -9
- package/out/service/logic/api.js +0 -11
- package/out/service/logic/api.js.map +0 -1
- package/out/service/logic/index.d.ts +0 -2
- package/out/service/logic/index.js +0 -10
- package/out/service/logic/index.js.map +0 -1
- package/out/stdlib/nasl.annotation.d.ts +0 -4
- package/out/stdlib/nasl.annotation.js +0 -1
- package/out/stdlib/nasl.annotation.js.map +0 -1
- package/out/stdlib/nasl.auth.d.ts +0 -43
- package/out/stdlib/nasl.auth.js +0 -1
- package/out/stdlib/nasl.auth.js.map +0 -1
- package/out/stdlib/nasl.browser.d.ts +0 -6
- package/out/stdlib/nasl.browser.js +0 -1
- package/out/stdlib/nasl.browser.js.map +0 -1
- package/out/stdlib/nasl.collection.d.ts +0 -22
- package/out/stdlib/nasl.collection.js +0 -1
- package/out/stdlib/nasl.collection.js.map +0 -1
- package/out/stdlib/nasl.configuration.d.ts +0 -4
- package/out/stdlib/nasl.configuration.js +0 -1
- package/out/stdlib/nasl.configuration.js.map +0 -1
- package/out/stdlib/nasl.core.d.ts +0 -142
- package/out/stdlib/nasl.core.js +0 -1
- package/out/stdlib/nasl.core.js.map +0 -1
- package/out/stdlib/nasl.interface.d.ts +0 -7
- package/out/stdlib/nasl.interface.js +0 -1
- package/out/stdlib/nasl.interface.js.map +0 -1
- package/out/stdlib/nasl.io.d.ts +0 -4
- package/out/stdlib/nasl.io.js +0 -1
- package/out/stdlib/nasl.io.js.map +0 -1
- package/out/stdlib/nasl.langUtil.d.ts +0 -28
- package/out/stdlib/nasl.langUtil.js +0 -9
- package/out/stdlib/nasl.langUtil.js.map +0 -1
- package/out/stdlib/nasl.logging.d.ts +0 -6
- package/out/stdlib/nasl.logging.js +0 -1
- package/out/stdlib/nasl.logging.js.map +0 -1
- package/out/stdlib/nasl.process.d.ts +0 -60
- package/out/stdlib/nasl.process.js +0 -1
- package/out/stdlib/nasl.process.js.map +0 -1
- package/out/stdlib/nasl.ui.d.ts +0 -202
- package/out/stdlib/nasl.ui.definition.d.ts +0 -1141
- package/out/stdlib/nasl.ui.definition.js +0 -675
- package/out/stdlib/nasl.ui.definition.js.map +0 -1
- package/out/stdlib/nasl.ui.js +0 -1
- package/out/stdlib/nasl.ui.js.map +0 -1
- package/out/stdlib/nasl.util.d.ts +0 -74
- package/out/stdlib/nasl.util.js +0 -4
- package/out/stdlib/nasl.util.js.map +0 -1
- package/out/stdlib/nasl.validation.d.ts +0 -32
- package/out/stdlib/nasl.validation.js +0 -1
- package/out/stdlib/nasl.validation.js.map +0 -1
- package/out/templator/sql-parser/index.d.ts +0 -1
- package/out/templator/sql-parser/index.js +0 -228
- package/out/templator/sql-parser/index.js.map +0 -1
- package/out/templator/sql-parser/parser.js +0 -26664
- package/out/templator/sql-parser/parser.js.map +0 -1
- package/test.log +0 -580
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
namespace apis.nuims.interfaces {
|
|
2
|
-
export function LcpGetUserList({Offset, Limit, Body}:{ Offset?: nasl.core.Long, Limit?: nasl.core.Long, Body?: apis.nuims.structures.LcpGetUserListBody}): apis.nuims.structures.ApiReturnOfLcpGetUserList{
|
|
3
|
-
let result: apis.nuims.structures.ApiReturnOfLcpGetUserList;
|
|
4
|
-
return result
|
|
5
|
-
}
|
|
6
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
namespace apis.nuims.structures {
|
|
2
|
-
export class ApiReturnOfLcpGetUser {
|
|
3
|
-
__name: 'apis.nuims.structures.ApiReturnOfLcpGetUser';
|
|
4
|
-
RequestId: nasl.core.String;
|
|
5
|
-
Message: nasl.core.String;
|
|
6
|
-
Data: apis.nuims.structures.LcpUserInfo;
|
|
7
|
-
Code: nasl.core.String;
|
|
8
|
-
}
|
|
9
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
namespace apis.nuims.structures {
|
|
2
|
-
export class ApiReturnOfLcpGetUserList {
|
|
3
|
-
__name: 'apis.nuims.structures.ApiReturnOfLcpGetUserList';
|
|
4
|
-
RequestId: nasl.core.String;
|
|
5
|
-
Message: nasl.core.String;
|
|
6
|
-
Data: nasl.collection.List<apis.nuims.structures.LcpUserInfo>;
|
|
7
|
-
Limit: nasl.core.String;
|
|
8
|
-
Count: nasl.core.String;
|
|
9
|
-
Code: nasl.core.String;
|
|
10
|
-
Offset: nasl.core.String;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
namespace apis.nuims.structures {
|
|
2
|
-
export class LcpUserInfo {
|
|
3
|
-
__name: 'apis.nuims.structures.LcpUserInfo';
|
|
4
|
-
Status: nasl.core.String;
|
|
5
|
-
UserInfoExtend: apis.nuims.structures.UserInfoExtendInfo;
|
|
6
|
-
UserName: nasl.core.String;
|
|
7
|
-
Email: nasl.core.String;
|
|
8
|
-
UserId: nasl.core.String;
|
|
9
|
-
Phone: nasl.core.String;
|
|
10
|
-
CreateDateTime: nasl.core.String;
|
|
11
|
-
UpdateDateTime: nasl.core.String;
|
|
12
|
-
LoginCount: nasl.core.Integer;
|
|
13
|
-
LastLoginDateTime: nasl.core.String;
|
|
14
|
-
Source: nasl.core.String;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
namespace apis.nuims.structures {
|
|
2
|
-
export class UserFilter {
|
|
3
|
-
__name: 'apis.nuims.structures.UserFilter';
|
|
4
|
-
Company: nasl.core.String;
|
|
5
|
-
UserName: nasl.core.String;
|
|
6
|
-
Email: nasl.core.String;
|
|
7
|
-
JobLevel: nasl.core.String;
|
|
8
|
-
Phone: nasl.core.String;
|
|
9
|
-
JobNum: nasl.core.String;
|
|
10
|
-
RealName: nasl.core.String;
|
|
11
|
-
JobYear: nasl.core.String;
|
|
12
|
-
Source: nasl.core.String;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
namespace apis.nuims.structures {
|
|
2
|
-
export class UserInfo {
|
|
3
|
-
__name: 'apis.nuims.structures.UserInfo';
|
|
4
|
-
Status: nasl.core.String;
|
|
5
|
-
LastLoginTime: nasl.core.Long;
|
|
6
|
-
UserInfoExtend: apis.nuims.structures.UserInfoExtendInfo;
|
|
7
|
-
UserName: nasl.core.String;
|
|
8
|
-
Email: nasl.core.String;
|
|
9
|
-
UserId: nasl.core.String;
|
|
10
|
-
Phone: nasl.core.String;
|
|
11
|
-
CreateTime: nasl.core.Long;
|
|
12
|
-
UpdateTime: nasl.core.Long;
|
|
13
|
-
LoginCount: nasl.core.Integer;
|
|
14
|
-
Source: nasl.core.String;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
namespace apis.nuims.structures {
|
|
2
|
-
export class UserInfoExtendInfo {
|
|
3
|
-
__name: 'apis.nuims.structures.UserInfoExtendInfo';
|
|
4
|
-
Company: nasl.core.String;
|
|
5
|
-
JobLevel: nasl.core.String;
|
|
6
|
-
JobNum: nasl.core.String;
|
|
7
|
-
RealName: nasl.core.String;
|
|
8
|
-
JobYear: nasl.core.String;
|
|
9
|
-
}
|
|
10
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
namespace app.interfaces {
|
|
2
|
-
export function getUserResources({userId}:{ userId: nasl.core.String}): nasl.collection.List<app.structures.ResourceResult>{
|
|
3
|
-
let logic =app.logics.LCAPGetUserResources
|
|
4
|
-
let __return: nasl.collection.List<app.structures.ResourceResult>;
|
|
5
|
-
return __return;
|
|
6
|
-
}
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
namespace app.interfaces {
|
|
2
|
-
export function roleBindUsers({param1, roleBindUsersBody}:{ param1?: nasl.core.String, roleBindUsersBody: app.structures.LCAPRoleBindUsersBody}): nasl.core.Long{
|
|
3
|
-
let logic =app.logics.LCAPRoleBindUsers
|
|
4
|
-
let __return: nasl.core.Long;
|
|
5
|
-
return __return;
|
|
6
|
-
}
|
|
7
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
namespace app.logics {
|
|
2
|
-
export function LCAPGetMappingByPermissionIdAndResourceId(permissionId: nasl.core.Long, resourceId: nasl.core.Long): nasl.collection.List<nasl.core.Long>{
|
|
3
|
-
let variable1: nasl.collection.PageOf<app.structures.LCAPGetMappingByPermissionIdAndResourceIdStructure>;
|
|
4
|
-
let variable2: nasl.core.Long;
|
|
5
|
-
let mappingIdList: nasl.collection.List<nasl.core.Long>;
|
|
6
|
-
|
|
7
|
-
nasl.util.Clear(mappingIdList)
|
|
8
|
-
variable1 = (function(): nasl.collection.PageOf< app.structures.LCAPGetMappingByPermissionIdAndResourceIdStructure> {
|
|
9
|
-
nasl.langUtil.FROM(new nasl.langUtil.Collection<[app.dataSources.defaultDS.entities.LCAPPerResMapping]>() )
|
|
10
|
-
.WHERE(() => nasl.core.and(new app.dataSources.defaultDS.entities.LCAPPerResMapping().permissionId == permissionId,new app.dataSources.defaultDS.entities.LCAPPerResMapping().resourceId == resourceId))
|
|
11
|
-
.LIMIT(() => [new nasl.core.Integer(1), new nasl.core.Integer(20)])
|
|
12
|
-
|
|
13
|
-
return;
|
|
14
|
-
})();
|
|
15
|
-
;
|
|
16
|
-
variable1.content.__slice( new nasl.core.Integer(0), variable1.content.length).__forEach((item, i) => {
|
|
17
|
-
nasl.util.Add(mappingIdList, item.lCAPPerResMapping.id)
|
|
18
|
-
})
|
|
19
|
-
|
|
20
|
-
return mappingIdList;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
namespace app.logics {
|
|
2
|
-
export function LCAPGetMappingIdByRoleIdAndUserId(roleId: nasl.core.Long, userId: nasl.core.String): nasl.core.Long{
|
|
3
|
-
let variable1: nasl.collection.PageOf<app.structures.GetMappingIdByRoleIdAndUserIdStructure>;
|
|
4
|
-
let variable2: app.structures.GetMappingIdByRoleIdAndUserIdStructure;
|
|
5
|
-
let result: nasl.core.Long;
|
|
6
|
-
|
|
7
|
-
result = new nasl.core.Integer(0);
|
|
8
|
-
variable1 = (function(): nasl.collection.PageOf< app.structures.GetMappingIdByRoleIdAndUserIdStructure> {
|
|
9
|
-
nasl.langUtil.FROM(new nasl.langUtil.Collection<[app.dataSources.defaultDS.entities.LCAPUserRoleMapping]>() )
|
|
10
|
-
.LIMIT(() => [new nasl.core.Integer(1), new nasl.core.Integer(2000)])
|
|
11
|
-
|
|
12
|
-
return;
|
|
13
|
-
})();
|
|
14
|
-
;
|
|
15
|
-
variable1.content.__slice( new nasl.core.Integer(0), variable1.content.length).__forEach((item, i) => {
|
|
16
|
-
if (nasl.core.ensureBoolean(nasl.core.and(item.lCAPUserRoleMapping.roleId == roleId,item.lCAPUserRoleMapping.userId == userId))) {
|
|
17
|
-
result = item.lCAPUserRoleMapping.id;
|
|
18
|
-
} else {
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
})
|
|
22
|
-
|
|
23
|
-
return result;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
namespace app.logics {
|
|
2
|
-
export function LCAPGetPermissionByRoleId(roleId: nasl.core.Long): nasl.collection.List<app.dataSources.defaultDS.entities.LCAPPermission>{
|
|
3
|
-
let variable1: nasl.collection.PageOf<app.structures.GetPermissionByRoleIdStructure>;
|
|
4
|
-
let permissionId: nasl.core.Long;
|
|
5
|
-
let rolePermissionMappingList: nasl.collection.List<app.structures.GetPermissionByRoleIdStructure>;
|
|
6
|
-
let permissionInfo: app.dataSources.defaultDS.entities.LCAPPermission;
|
|
7
|
-
let permissionList: nasl.collection.List<app.dataSources.defaultDS.entities.LCAPPermission>;
|
|
8
|
-
|
|
9
|
-
if (nasl.core.ensureBoolean(roleId == null)) {
|
|
10
|
-
return permissionList;
|
|
11
|
-
} else {
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
variable1 = (function(): nasl.collection.PageOf< app.structures.GetPermissionByRoleIdStructure> {
|
|
15
|
-
nasl.langUtil.FROM(new nasl.langUtil.Collection<[app.dataSources.defaultDS.entities.LCAPRolePerMapping]>() )
|
|
16
|
-
.WHERE(() => new app.dataSources.defaultDS.entities.LCAPRolePerMapping().roleId == roleId)
|
|
17
|
-
.LIMIT(() => [new nasl.core.Integer(1), new nasl.core.Integer(20)])
|
|
18
|
-
|
|
19
|
-
return;
|
|
20
|
-
})();
|
|
21
|
-
;
|
|
22
|
-
rolePermissionMappingList = variable1.content;
|
|
23
|
-
rolePermissionMappingList.__slice( new nasl.core.Integer(0), rolePermissionMappingList.length).__forEach((item, i) => {
|
|
24
|
-
permissionId = item.lCAPRolePerMapping.permissionId;
|
|
25
|
-
permissionInfo = app.dataSources.defaultDS.entities.LCAPPermission.logics.get( permissionId);
|
|
26
|
-
;
|
|
27
|
-
nasl.util.Add(permissionList, permissionInfo)
|
|
28
|
-
})
|
|
29
|
-
|
|
30
|
-
return permissionList;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
namespace app.logics {
|
|
2
|
-
export function LCAPGetResourceListByRoleId(roleId: nasl.core.Long): nasl.collection.List<app.dataSources.defaultDS.entities.LCAPResource>{
|
|
3
|
-
let variable1: nasl.collection.PageOf<app.structures.LCAPGetResourceListByRoleIdStructure>;
|
|
4
|
-
let variable3: app.dataSources.defaultDS.entities.LCAPResource;
|
|
5
|
-
let resultResourceList: nasl.collection.List<app.dataSources.defaultDS.entities.LCAPResource>;
|
|
6
|
-
|
|
7
|
-
variable1 = (function(): nasl.collection.PageOf< app.structures.LCAPGetResourceListByRoleIdStructure> {
|
|
8
|
-
nasl.langUtil.FROM(new nasl.langUtil.Collection<[app.dataSources.defaultDS.entities.LCAPRolePerMapping]>()
|
|
9
|
-
.INNER_JOIN(new nasl.langUtil.Collection<[app.dataSources.defaultDS.entities.LCAPPermission]>())
|
|
10
|
-
.ON(() => new app.dataSources.defaultDS.entities.LCAPRolePerMapping().permissionId == new app.dataSources.defaultDS.entities.LCAPPermission().id)
|
|
11
|
-
.INNER_JOIN(new nasl.langUtil.Collection<[app.dataSources.defaultDS.entities.LCAPPerResMapping]>())
|
|
12
|
-
.ON(() => new app.dataSources.defaultDS.entities.LCAPPermission().id == new app.dataSources.defaultDS.entities.LCAPPerResMapping().permissionId)
|
|
13
|
-
.INNER_JOIN(new nasl.langUtil.Collection<[app.dataSources.defaultDS.entities.LCAPResource]>())
|
|
14
|
-
.ON(() => new app.dataSources.defaultDS.entities.LCAPPerResMapping().resourceId == new app.dataSources.defaultDS.entities.LCAPResource().id)
|
|
15
|
-
)
|
|
16
|
-
.WHERE(() => new app.dataSources.defaultDS.entities.LCAPRolePerMapping().roleId == roleId)
|
|
17
|
-
.LIMIT(() => [new nasl.core.Integer(1), new nasl.core.Integer(2000)])
|
|
18
|
-
|
|
19
|
-
return;
|
|
20
|
-
})();
|
|
21
|
-
;
|
|
22
|
-
variable1.content.__slice( new nasl.core.Integer(0), variable1.content.length).__forEach((item, i) => {
|
|
23
|
-
variable3.id = item.lCAPResource.id;
|
|
24
|
-
variable3.name = item.lCAPResource.name;
|
|
25
|
-
variable3.description = item.lCAPResource.description;
|
|
26
|
-
nasl.util.Add(resultResourceList, variable3)
|
|
27
|
-
})
|
|
28
|
-
|
|
29
|
-
return resultResourceList;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
namespace app.logics {
|
|
2
|
-
export function LCAPGetRoleBindUserList(inputRoleId: nasl.core.Long): nasl.collection.List<app.structures.GetRoleBindUserListStructure>{
|
|
3
|
-
let variable1: nasl.collection.PageOf<app.structures.GetRoleBindUserListStructure>;
|
|
4
|
-
let result: nasl.collection.List<app.structures.GetRoleBindUserListStructure>;
|
|
5
|
-
|
|
6
|
-
variable1 = (function(): nasl.collection.PageOf< app.structures.GetRoleBindUserListStructure> {
|
|
7
|
-
nasl.langUtil.FROM(new nasl.langUtil.Collection<[app.dataSources.defaultDS.entities.LCAPUserRoleMapping]>() )
|
|
8
|
-
.WHERE(() => new app.dataSources.defaultDS.entities.LCAPUserRoleMapping().roleId == inputRoleId)
|
|
9
|
-
.LIMIT(() => [new nasl.core.Integer(1), new nasl.core.Integer(2000)])
|
|
10
|
-
|
|
11
|
-
return;
|
|
12
|
-
})();
|
|
13
|
-
;
|
|
14
|
-
result = variable1.content;
|
|
15
|
-
return result;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
namespace app.logics {
|
|
2
|
-
export function LCAPGetRolePermissionList(inputRoleId: nasl.core.Long): nasl.collection.PageOf<app.structures.LCAPGetRolePermissionListStructure>{
|
|
3
|
-
let result: nasl.collection.PageOf<app.structures.LCAPGetRolePermissionListStructure>;
|
|
4
|
-
|
|
5
|
-
result = (function(): nasl.collection.PageOf< app.structures.LCAPGetRolePermissionListStructure> {
|
|
6
|
-
nasl.langUtil.FROM(new nasl.langUtil.Collection<[app.dataSources.defaultDS.entities.LCAPRolePerMapping]>()
|
|
7
|
-
.INNER_JOIN(new nasl.langUtil.Collection<[app.dataSources.defaultDS.entities.LCAPPermission]>())
|
|
8
|
-
.ON(() => new app.dataSources.defaultDS.entities.LCAPRolePerMapping().permissionId == new app.dataSources.defaultDS.entities.LCAPPermission().id)
|
|
9
|
-
)
|
|
10
|
-
.WHERE(() => new app.dataSources.defaultDS.entities.LCAPRolePerMapping().roleId == inputRoleId)
|
|
11
|
-
.LIMIT(() => [new nasl.core.Integer(1), new nasl.core.Integer(2000)])
|
|
12
|
-
|
|
13
|
-
return;
|
|
14
|
-
})();
|
|
15
|
-
;
|
|
16
|
-
return result;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
namespace app.logics {
|
|
2
|
-
export function LCAPGetScopeResourceByRoleId(roleId: nasl.core.Long): nasl.collection.PageOf<app.structures.LCAPGetScopeResourceByRoleIdStructure>{
|
|
3
|
-
let result: nasl.collection.PageOf<app.structures.LCAPGetScopeResourceByRoleIdStructure>;
|
|
4
|
-
|
|
5
|
-
result = (function(): nasl.collection.PageOf< app.structures.LCAPGetScopeResourceByRoleIdStructure> {
|
|
6
|
-
nasl.langUtil.FROM(new nasl.langUtil.Collection<[app.dataSources.defaultDS.entities.LCAPRolePerMapping]>()
|
|
7
|
-
.INNER_JOIN(new nasl.langUtil.Collection<[app.dataSources.defaultDS.entities.LCAPPermission]>())
|
|
8
|
-
.ON(() => new app.dataSources.defaultDS.entities.LCAPRolePerMapping().permissionId == new app.dataSources.defaultDS.entities.LCAPPermission().id)
|
|
9
|
-
.INNER_JOIN(new nasl.langUtil.Collection<[app.dataSources.defaultDS.entities.LCAPPerResMapping]>())
|
|
10
|
-
.ON(() => new app.dataSources.defaultDS.entities.LCAPPermission().id == new app.dataSources.defaultDS.entities.LCAPPerResMapping().permissionId)
|
|
11
|
-
.INNER_JOIN(new nasl.langUtil.Collection<[app.dataSources.defaultDS.entities.LCAPResource]>())
|
|
12
|
-
.ON(() => new app.dataSources.defaultDS.entities.LCAPPerResMapping().resourceId == new app.dataSources.defaultDS.entities.LCAPResource().id)
|
|
13
|
-
)
|
|
14
|
-
.WHERE(() => new app.dataSources.defaultDS.entities.LCAPRolePerMapping().roleId == roleId)
|
|
15
|
-
.LIMIT(() => [new nasl.core.Integer(1), new nasl.core.Integer(2000)])
|
|
16
|
-
|
|
17
|
-
return;
|
|
18
|
-
})();
|
|
19
|
-
;
|
|
20
|
-
return result;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
namespace app.logics {
|
|
2
|
-
export function LCAPGetUserResources(userId: nasl.core.String): nasl.collection.List<app.structures.ResourceResult>{
|
|
3
|
-
let variable1: nasl.collection.PageOf<app.structures.LCAPGetUserResourcesStructure>;
|
|
4
|
-
let variable2: nasl.collection.List<nasl.core.String>;
|
|
5
|
-
let variable3: app.structures.ResourceResult;
|
|
6
|
-
let variable4: nasl.collection.List<app.structures.ResourceResult>;
|
|
7
|
-
let variable5: app.structures.ResourceResult;
|
|
8
|
-
let result: nasl.collection.List<app.structures.ResourceResult>;
|
|
9
|
-
|
|
10
|
-
variable1 = (function(): nasl.collection.PageOf< app.structures.LCAPGetUserResourcesStructure> {
|
|
11
|
-
nasl.langUtil.FROM(new nasl.langUtil.Collection<[app.dataSources.defaultDS.entities.LCAPUserRoleMapping]>()
|
|
12
|
-
.INNER_JOIN(new nasl.langUtil.Collection<[app.dataSources.defaultDS.entities.LCAPRolePerMapping]>())
|
|
13
|
-
.ON(() => new app.dataSources.defaultDS.entities.LCAPUserRoleMapping().roleId == new app.dataSources.defaultDS.entities.LCAPRolePerMapping().roleId)
|
|
14
|
-
.INNER_JOIN(new nasl.langUtil.Collection<[app.dataSources.defaultDS.entities.LCAPPerResMapping]>())
|
|
15
|
-
.ON(() => new app.dataSources.defaultDS.entities.LCAPRolePerMapping().permissionId == new app.dataSources.defaultDS.entities.LCAPPerResMapping().permissionId)
|
|
16
|
-
.INNER_JOIN(new nasl.langUtil.Collection<[app.dataSources.defaultDS.entities.LCAPResource]>())
|
|
17
|
-
.ON(() => new app.dataSources.defaultDS.entities.LCAPPerResMapping().resourceId == new app.dataSources.defaultDS.entities.LCAPResource().id)
|
|
18
|
-
)
|
|
19
|
-
.WHERE(() => new app.dataSources.defaultDS.entities.LCAPUserRoleMapping().userId == userId)
|
|
20
|
-
.LIMIT(() => [new nasl.core.Integer(1), new nasl.core.Integer(2000)])
|
|
21
|
-
|
|
22
|
-
return;
|
|
23
|
-
})();
|
|
24
|
-
;
|
|
25
|
-
variable1.content.__slice( new nasl.core.Integer(0), variable1.content.length).__forEach((item, i) => {
|
|
26
|
-
if (nasl.core.ensureBoolean(nasl.util.Contains(variable2, item.lCAPResource.name))) {
|
|
27
|
-
} else {
|
|
28
|
-
nasl.util.Add(variable2, item.lCAPResource.name)
|
|
29
|
-
variable3.resourceValue = item.lCAPResource.name;
|
|
30
|
-
variable3.resourceType = item.lCAPResource.type;
|
|
31
|
-
variable5 = nasl.util.Clone(variable3);
|
|
32
|
-
nasl.util.Add(variable4, variable5)
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
})
|
|
36
|
-
|
|
37
|
-
result = variable4;
|
|
38
|
-
return result;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
namespace app.logics {
|
|
2
|
-
export function LCAPIsAlreadBindUserIdList(newUserId: nasl.core.String, inputRoleId: nasl.core.Long): nasl.core.Boolean{
|
|
3
|
-
let userIdList: nasl.collection.List<nasl.core.String>;
|
|
4
|
-
let userList: nasl.collection.List<app.structures.GetRoleBindUserListStructure>;
|
|
5
|
-
let result: nasl.core.Boolean;
|
|
6
|
-
|
|
7
|
-
userList = app.logics.LCAPGetRoleBindUserList( inputRoleId);
|
|
8
|
-
;
|
|
9
|
-
userList.__slice( new nasl.core.Integer(0), userList.length).__forEach((item, i) => {
|
|
10
|
-
nasl.util.Add(userIdList, item.lCAPUserRoleMapping.userId)
|
|
11
|
-
})
|
|
12
|
-
|
|
13
|
-
if (nasl.core.ensureBoolean(nasl.util.Contains(userIdList, newUserId))) {
|
|
14
|
-
result = true;
|
|
15
|
-
} else {
|
|
16
|
-
result = false;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
return result;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
namespace app.logics {
|
|
2
|
-
export function LCAPIsRoleNameRepeated(roleName: nasl.core.String): nasl.core.Boolean{
|
|
3
|
-
let variable1: nasl.collection.PageOf<app.structures.LCAPGetRoleListByNameStructure>;
|
|
4
|
-
let isExist: nasl.core.Boolean;
|
|
5
|
-
|
|
6
|
-
variable1 = (function(): nasl.collection.PageOf< app.structures.LCAPGetRoleListByNameStructure> {
|
|
7
|
-
nasl.langUtil.FROM(new nasl.langUtil.Collection<[app.dataSources.defaultDS.entities.LCAPRole]>() )
|
|
8
|
-
.WHERE(() => new app.dataSources.defaultDS.entities.LCAPRole().name == roleName)
|
|
9
|
-
.LIMIT(() => [new nasl.core.Integer(1), new nasl.core.Integer(2000)])
|
|
10
|
-
|
|
11
|
-
return;
|
|
12
|
-
})();
|
|
13
|
-
;
|
|
14
|
-
if (nasl.core.ensureBoolean(variable1.content.length > new nasl.core.Integer(0))) {
|
|
15
|
-
isExist = true;
|
|
16
|
-
} else {
|
|
17
|
-
isExist = false;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
return isExist;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
namespace app.logics {
|
|
2
|
-
export function LCAPLoadAddRoleUserSelectLCAPRole(page: nasl.core.Integer, size: nasl.core.Integer): nasl.collection.PageOf<app.structures.LoadAddRoleUserSelectLCAPRoleStructure>{
|
|
3
|
-
let result: nasl.collection.PageOf<app.structures.LoadAddRoleUserSelectLCAPRoleStructure>;
|
|
4
|
-
|
|
5
|
-
result = (function(): nasl.collection.PageOf< app.structures.LoadAddRoleUserSelectLCAPRoleStructure> {
|
|
6
|
-
nasl.langUtil.FROM(new nasl.langUtil.Collection<[app.dataSources.defaultDS.entities.LCAPRole]>() )
|
|
7
|
-
.LIMIT(() => [page, size])
|
|
8
|
-
|
|
9
|
-
return;
|
|
10
|
-
})();
|
|
11
|
-
;
|
|
12
|
-
return result;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
namespace app.logics {
|
|
2
|
-
export function LCAPLoadPermissionManagementTableView(page: nasl.core.Integer, size: nasl.core.Integer, sort: nasl.core.String, order: nasl.core.String, filter: app.dataSources.defaultDS.entities.LCAPPermission): nasl.collection.PageOf<app.structures.LoadPermissionManagementTableViewStructure>{
|
|
3
|
-
let result: nasl.collection.PageOf<app.structures.LoadPermissionManagementTableViewStructure>;
|
|
4
|
-
|
|
5
|
-
result = (function(): nasl.collection.PageOf< app.structures.LoadPermissionManagementTableViewStructure> {
|
|
6
|
-
nasl.langUtil.FROM(new nasl.langUtil.Collection<[app.dataSources.defaultDS.entities.LCAPPermission]>() )
|
|
7
|
-
.WHERE(() => nasl.langUtil.LIKE(new app.dataSources.defaultDS.entities.LCAPPermission().name, filter.name))
|
|
8
|
-
.ORDER_BY(() => [sort, order])
|
|
9
|
-
.LIMIT(() => [page, size])
|
|
10
|
-
|
|
11
|
-
return;
|
|
12
|
-
})();
|
|
13
|
-
;
|
|
14
|
-
return result;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
namespace app.logics {
|
|
2
|
-
export function LCAPLoadPermissionResourceListView(page: nasl.core.Integer, size: nasl.core.Integer): nasl.collection.PageOf<app.structures.LoadPermissionResourceListViewStructure>{
|
|
3
|
-
let result: nasl.collection.PageOf<app.structures.LoadPermissionResourceListViewStructure>;
|
|
4
|
-
|
|
5
|
-
result = (function(): nasl.collection.PageOf< app.structures.LoadPermissionResourceListViewStructure> {
|
|
6
|
-
nasl.langUtil.FROM(new nasl.langUtil.Collection<[app.dataSources.defaultDS.entities.LCAPResource]>() )
|
|
7
|
-
.LIMIT(() => [page, size])
|
|
8
|
-
|
|
9
|
-
return;
|
|
10
|
-
})();
|
|
11
|
-
;
|
|
12
|
-
return result;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
namespace app.logics {
|
|
2
|
-
export function LCAPLoadResourceTableView(page: nasl.core.Integer, size: nasl.core.Integer, sort: nasl.core.String, order: nasl.core.String): nasl.collection.PageOf<app.structures.LoadPermissionResourceTableViewStructure>{
|
|
3
|
-
let result: nasl.collection.PageOf<app.structures.LoadPermissionResourceTableViewStructure>;
|
|
4
|
-
|
|
5
|
-
result = (function(): nasl.collection.PageOf< app.structures.LoadPermissionResourceTableViewStructure> {
|
|
6
|
-
nasl.langUtil.FROM(new nasl.langUtil.Collection<[app.dataSources.defaultDS.entities.LCAPResource]>() )
|
|
7
|
-
.ORDER_BY(() => [sort, order])
|
|
8
|
-
.LIMIT(() => [page, size])
|
|
9
|
-
|
|
10
|
-
return;
|
|
11
|
-
})();
|
|
12
|
-
;
|
|
13
|
-
return result;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
namespace app.logics {
|
|
2
|
-
export function LCAPLoadRoleManagementTableView(page: nasl.core.Integer, size: nasl.core.Integer, sort: nasl.core.String, order: nasl.core.String, filter: app.dataSources.defaultDS.entities.LCAPRole): nasl.collection.PageOf<app.structures.LoadRoleManagementTableViewStructure>{
|
|
3
|
-
let result: nasl.collection.PageOf<app.structures.LoadRoleManagementTableViewStructure>;
|
|
4
|
-
|
|
5
|
-
result = (function(): nasl.collection.PageOf< app.structures.LoadRoleManagementTableViewStructure> {
|
|
6
|
-
nasl.langUtil.FROM(new nasl.langUtil.Collection<[app.dataSources.defaultDS.entities.LCAPRole]>() )
|
|
7
|
-
.WHERE(() => nasl.langUtil.LIKE(new app.dataSources.defaultDS.entities.LCAPRole().name, filter.name))
|
|
8
|
-
.ORDER_BY(() => [sort, order])
|
|
9
|
-
.LIMIT(() => [page, size])
|
|
10
|
-
|
|
11
|
-
return;
|
|
12
|
-
})();
|
|
13
|
-
;
|
|
14
|
-
return result;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
namespace app.logics {
|
|
2
|
-
export function LCAPLoadUserRoleMappingTableView(page: nasl.core.Integer, size: nasl.core.Integer, sort: nasl.core.String, order: nasl.core.String, filter: app.dataSources.defaultDS.entities.LCAPUserRoleMapping): nasl.collection.PageOf<app.structures.LoadURMTableViewStructure>{
|
|
3
|
-
let result: nasl.collection.PageOf<app.structures.LoadURMTableViewStructure>;
|
|
4
|
-
|
|
5
|
-
result = (function(): nasl.collection.PageOf< app.structures.LoadURMTableViewStructure> {
|
|
6
|
-
nasl.langUtil.FROM(new nasl.langUtil.Collection<[app.dataSources.defaultDS.entities.LCAPUserRoleMapping]>()
|
|
7
|
-
.LEFT_JOIN(new nasl.langUtil.Collection<[app.dataSources.defaultDS.entities.LCAPRole]>())
|
|
8
|
-
.ON(() => new app.dataSources.defaultDS.entities.LCAPUserRoleMapping().roleId == new app.dataSources.defaultDS.entities.LCAPRole().id)
|
|
9
|
-
)
|
|
10
|
-
.WHERE(() => nasl.core.and(new app.dataSources.defaultDS.entities.LCAPUserRoleMapping().roleId == filter.roleId,nasl.langUtil.LIKE(new app.dataSources.defaultDS.entities.LCAPUserRoleMapping().userName, filter.userName)))
|
|
11
|
-
.ORDER_BY(() => [sort, order])
|
|
12
|
-
.LIMIT(() => [page, size])
|
|
13
|
-
|
|
14
|
-
return;
|
|
15
|
-
})();
|
|
16
|
-
;
|
|
17
|
-
return result;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
namespace app.logics {
|
|
2
|
-
export function LCAPRoleBindUsers(roleBindUsersBody: app.structures.LCAPRoleBindUsersBody): nasl.core.Long{
|
|
3
|
-
let roleAndUserMappingBody: app.dataSources.defaultDS.entities.LCAPUserRoleMapping;
|
|
4
|
-
let roleIdVariable: nasl.core.Long;
|
|
5
|
-
let userIdListVariable: nasl.collection.List<nasl.core.String>;
|
|
6
|
-
let roleAlreadyBindUsers: nasl.collection.List<app.structures.GetRoleBindUserListStructure>;
|
|
7
|
-
let isAlreadyBind: nasl.core.Boolean;
|
|
8
|
-
let isExistRoleId: nasl.core.Boolean;
|
|
9
|
-
let resultBindNum: nasl.core.Long;
|
|
10
|
-
|
|
11
|
-
roleIdVariable = roleBindUsersBody.roleId;
|
|
12
|
-
isExistRoleId = app.logics.isExistRoleId( roleIdVariable);
|
|
13
|
-
;
|
|
14
|
-
if (nasl.core.ensureBoolean(isExistRoleId == true)) {
|
|
15
|
-
} else {
|
|
16
|
-
return resultBindNum;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
userIdListVariable = roleBindUsersBody.userIdList;
|
|
20
|
-
if (nasl.core.ensureBoolean(roleIdVariable == null)) {
|
|
21
|
-
return resultBindNum;
|
|
22
|
-
} else {
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
if (nasl.core.ensureBoolean(userIdListVariable == null)) {
|
|
26
|
-
return resultBindNum;
|
|
27
|
-
} else {
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
resultBindNum = userIdListVariable.length;
|
|
31
|
-
userIdListVariable.__slice( new nasl.core.Integer(0), userIdListVariable.length).__forEach((item, i) => {
|
|
32
|
-
roleAndUserMappingBody.userId = item;
|
|
33
|
-
roleAndUserMappingBody.roleId = roleIdVariable;
|
|
34
|
-
isAlreadyBind = app.logics.LCAPIsAlreadBindUserIdList( item, roleIdVariable);
|
|
35
|
-
;
|
|
36
|
-
if (nasl.core.ensureBoolean(isAlreadyBind == true)) {
|
|
37
|
-
resultBindNum = nasl.core.minus(resultBindNum,new nasl.core.Integer(1));
|
|
38
|
-
} else {
|
|
39
|
-
app.dataSources.defaultDS.entities.LCAPUserRoleMapping.logics.create( roleAndUserMappingBody);
|
|
40
|
-
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
})
|
|
44
|
-
|
|
45
|
-
return resultBindNum;
|
|
46
|
-
}
|
|
47
|
-
}
|
package/out/debug/apps/e576d732-d6d0-4b90-a542-c9be77f79527/embedded/zysnew/logics/isExistRoleId.ts
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
namespace app.logics {
|
|
2
|
-
export function isExistRoleId(roleId: nasl.core.Long): nasl.core.Boolean{
|
|
3
|
-
let variable1: nasl.collection.PageOf<app.structures.IsExistRoleIdStructure>;
|
|
4
|
-
let result: nasl.core.Boolean;
|
|
5
|
-
|
|
6
|
-
variable1 = (function(): nasl.collection.PageOf< app.structures.IsExistRoleIdStructure> {
|
|
7
|
-
nasl.langUtil.FROM(new nasl.langUtil.Collection<[app.dataSources.defaultDS.entities.LCAPRole]>() )
|
|
8
|
-
.LIMIT(() => [new nasl.core.Integer(1), new nasl.core.Integer(2000)])
|
|
9
|
-
|
|
10
|
-
return;
|
|
11
|
-
})();
|
|
12
|
-
;
|
|
13
|
-
result = false;
|
|
14
|
-
variable1.content.__slice( new nasl.core.Integer(0), variable1.content.length).__forEach((item, i) => {
|
|
15
|
-
if (nasl.core.ensureBoolean(roleId == item.lCAPRole.id)) {
|
|
16
|
-
result = true;
|
|
17
|
-
} else {
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
})
|
|
21
|
-
|
|
22
|
-
return result;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
namespace app.logics {
|
|
2
|
-
export function loadAddRoleUserTableView(page: nasl.core.Integer, size: nasl.core.Integer, sort: nasl.core.String, order: nasl.core.String, filter: app.dataSources.defaultDS.entities.LCAPUserRoleMapping): nasl.collection.PageOf<app.structures.LoadAddRoleUserTableViewStructure>{
|
|
3
|
-
let result: nasl.collection.PageOf<app.structures.LoadAddRoleUserTableViewStructure>;
|
|
4
|
-
|
|
5
|
-
result = (function(): nasl.collection.PageOf< app.structures.LoadAddRoleUserTableViewStructure> {
|
|
6
|
-
nasl.langUtil.FROM(new nasl.langUtil.Collection<[app.dataSources.defaultDS.entities.LCAPUserRoleMapping]>()
|
|
7
|
-
.LEFT_JOIN(new nasl.langUtil.Collection<[app.dataSources.defaultDS.entities.LCAPRole]>())
|
|
8
|
-
.ON(() => new app.dataSources.defaultDS.entities.LCAPUserRoleMapping().roleId == new app.dataSources.defaultDS.entities.LCAPRole().id)
|
|
9
|
-
)
|
|
10
|
-
.ORDER_BY(() => [sort, order])
|
|
11
|
-
.LIMIT(() => [page, size])
|
|
12
|
-
|
|
13
|
-
return;
|
|
14
|
-
})();
|
|
15
|
-
;
|
|
16
|
-
return result;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
namespace app.logics {
|
|
2
|
-
export function loadDashboardTableView(page: nasl.core.Integer, size: nasl.core.Integer, sort: nasl.core.String, order: nasl.core.String, filter: app.dataSources.defaultDS.entities.Entity1_123): nasl.collection.PageOf<app.structures.LoadDashboardTableViewStructure>{
|
|
3
|
-
let result: nasl.collection.PageOf<app.structures.LoadDashboardTableViewStructure>;
|
|
4
|
-
|
|
5
|
-
result = (function(): nasl.collection.PageOf<app.structures.LoadDashboardTableViewStructure> {
|
|
6
|
-
nasl.langUtil.FROM(new nasl.langUtil.Collection<[app.dataSources.defaultDS.entities.Entity1_123]>() )
|
|
7
|
-
.ORDER_BY(() => [sort, order])
|
|
8
|
-
.LIMIT(() => [page, size])
|
|
9
|
-
|
|
10
|
-
return;
|
|
11
|
-
})();
|
|
12
|
-
;
|
|
13
|
-
return result;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
namespace app.logics {
|
|
2
|
-
export function loadDashboardTableView1(page: nasl.core.Integer, size: nasl.core.Integer, sort: nasl.core.String, order: nasl.core.String, filter: app.dataSources.defaultDS.entities.Entity1_123): nasl.collection.PageOf<app.structures.LoadDashboardTableView1Structure>{
|
|
3
|
-
let result: nasl.collection.PageOf<app.structures.LoadDashboardTableView1Structure>;
|
|
4
|
-
|
|
5
|
-
result = (function(): nasl.collection.PageOf<app.structures.LoadDashboardTableView1Structure> {
|
|
6
|
-
nasl.langUtil.FROM(new nasl.langUtil.Collection<[app.dataSources.defaultDS.entities.Entity1_123]>() )
|
|
7
|
-
.WHERE(() => new app.dataSources.defaultDS.entities.Entity1_123().enum1 == filter.enum1)
|
|
8
|
-
.ORDER_BY(() => [sort, order])
|
|
9
|
-
.LIMIT(() => [page, size])
|
|
10
|
-
|
|
11
|
-
return;
|
|
12
|
-
})();
|
|
13
|
-
;
|
|
14
|
-
return result;
|
|
15
|
-
}
|
|
16
|
-
}
|