业务用户管理

在开启安全配置情况下,需要对应的权限才可以执行, 如对业务用户进行增删改需要 '管理业务用户', 查看需要 '查看业务用户'

interface Manager {
    addProfilesById: ((id, profiles) => void);
    checkPassword: ((username, password) => boolean);
    creatPortalUser: ((portalUser) => PortalUser);
    deleteById: ((id) => void);
    getByExtIdentityID: ((extIdentityID) => Dict);
    getById: ((id) => PortalUser);
    getByUsername: ((username) => PortalUser);
    getByUsernames: ((usernames) => PortalUser[]);
    getList: ((offset, limit) => PortalUser[]);
    setProfilesById: ((id, profiles) => void);
    setTimezoneById: ((id, timezone) => void);
}

Properties

addProfilesById: ((id, profiles) => void)

add profiles to portal user

Type declaration

    • (id, profiles): void
    • Parameters

      • id: string
      • profiles: string[]

        profile id list

      Returns void

checkPassword: ((username, password) => boolean)

检查业务用户密码是否正确

Type declaration

    • (username, password): boolean
    • Parameters

      • username: string

        业务用户名

      • password: string

        业务用户密码

      Returns boolean

creatPortalUser: ((portalUser) => PortalUser)

create portal user

Type declaration

    • (portalUser): PortalUser
    • Parameters

      • portalUser: {
            [key: string]: any;
        }
        • [key: string]: any

      Returns PortalUser

deleteById: ((id) => void)

delete portaluser by id

Type declaration

    • (id): void
    • Parameters

      • id: string

      Returns void

getByExtIdentityID: ((extIdentityID) => Dict)

get portal user by extIdentityID

Type declaration

    • (extIdentityID): Dict
    • Parameters

      • extIdentityID: string

      Returns Dict

getById: ((id) => PortalUser)

get portal user by id

Type declaration

getByUsername: ((username) => PortalUser)

get portal user by username

Type declaration

getByUsernames: ((usernames) => PortalUser[])

get portal users by usernames

Type declaration

getList: ((offset, limit) => PortalUser[])

get portal user list

Type declaration

    • (offset, limit): PortalUser[]
    • Parameters

      • offset: number
      • limit: number

        total count, max limit is 5000

      Returns PortalUser[]

setProfilesById: ((id, profiles) => void)

set profiles by id

Type declaration

    • (id, profiles): void
    • Parameters

      • id: string
      • profiles: string[]

        profile id list

      Returns void

setTimezoneById: ((id, timezone) => void)

set timezone for portal user by id

Type declaration

    • (id, timezone): void
    • Parameters

      • id: string
      • timezone: string

        timezone id

      Returns void