Implements

  • OnDestroy

Constructors

Properties

_anonymousService: AnonymousService
_anonymousUserChange$: ReplaySubject<User>
_authService: AuthenticationService
_loginCalled: boolean
_session: SessionService
_subAnonym: Subscription
_subAuth: Subscription
_user: User
_userChange$: ReplaySubject<User>
_userResource: UserResourceService
_userTransform: UserTransformer
GLOBAL_ROLE_PREFIX: "global_" = 'global_'

Accessors

Methods

  • Check if user has specified authority.

    Parameters

    • authority: string | string[]

      If provided authority is array of authorities. Method make intersection of the provided authorities and user's authorities. If calculated intersection isn't empty returns true, otherwise false.

    Returns boolean

  • Checks whether the user has a role with the specified identifier in a process with the specified identifier (any version), or if the role is global (with prefix 'global_').

    Parameters

    • roleIdentifier: string

      identifier (import ID) of the role we want to check

    • netIdentifier: string

      identifier (import ID) of the process the role is defined in

    Returns boolean

  • Checks whether the user has role with the specified name in a process with the specified identifier (any version)

    Parameters

    • roleName: string

      name of the role we want to check

    • netIdentifier: string

      identifier (import ID) of the process the role is defined in

    Returns boolean