Options
All
  • Public
  • Public/Protected
  • All
Menu

Class UserRoleService

Hierarchy

Index

Constructors

Methods

Constructors

constructor

Methods

detail

  • Parameters

    • entityOrId: string | number | IRole

    Returns Promise<IResult<IRole>>

    Returns promise object that is resolved with the IRole wrapped by IResult.

    Example

    
       const roleId: number = 1;
    
       (async () => {
         const {data, res} = await userRoleService.detail(roleId);
      })();
    

list

  • Parameters

    • Default value filter: object = {}

    Returns Promise<IResultList<IRole>>

    Returns promise object that is resolved with the IRole wrapped by IResultList.

    Example

    
     const filter: object = {
        severity: Severity.MAJOR,
        pageSize: 100,
        withTotalPages: true
      };
    
      (async () => {
        const {data, res, paging} = await userRoleService.list(filter);
      })();
    

list$

  • Parameters

    Returns Observable<IRole[]>

    Data wrapped as Observable.

    Example

    
      const list$ = userRoleService.list$();
      list$.subscribe((data) => console.log(data));
    

    Deprecated This function will be removed soon in favor of decoupling this library from rxjs. Use Realtime for realtime connection and rxjs defer() or from() to composite an observable on your own.

Generated using TypeDoc