Member Junction
    Preparing search index...

    Generic, framework-agnostic Sharing Center. Renders two tabs:

    • Shared with me — every resource the current user has direct (non-role) access to, grouped by permission domain. Each row is clickable and emits ResourceClicked so the embedding app can route to the resource. The Generic component never imports Angular Router / NavigationService — the parent decides how to navigate.

    • Shared by me — every permission record where the current user is the grantor. Each row has a Revoke button that deletes the underlying permission record through Metadata.GetEntityObject().Delete() (so audit captures the revoke and BaseEntity event-driven cache invalidation runs).

    Inputs / Outputs are designed so the component drops cleanly into a dialog, a side panel, an embedded widget, or a full-page route.

    <mj-user-sharing-center
    [ActiveTab]="tab"
    (ActiveTabChange)="tab = $event"
    (ResourceClicked)="OnResourceClicked($event)"
    (CloseRequested)="dialogRef.Close()">
    </mj-user-sharing-center>

    Hierarchy (View Summary)

    Implements

    • OnInit
    Index

    Constructors

    Properties

    ActiveTab: SharingCenterTab = 'shared-with-me'

    Which tab is shown initially. Two-way bindable via ActiveTabChange.

    ActiveTabChange: EventEmitter<SharingCenterTab> = ...

    Two-way binding partner for ActiveTab.

    CloseRequested: EventEmitter<void> = ...

    Fired when the user clicks the close button. Parent should close the host dialog/panel.

    ErrorMessage: string | null = null
    ErrorOccurred: EventEmitter<string> = ...

    Fired whenever an error is shown to the user. Useful for parent telemetry.

    IsLoadingByMe: boolean = false
    IsLoadingWithMe: boolean = false
    PermissionRevoked: EventEmitter<NormalizedPermission> = ...

    Fired after a permission has been successfully revoked.

    Provider: IMetadataProvider | null

    If specified, this provider will be used for communication and for all metadata purposes. By default, if not provided, the Metadata and RunView classes are used for this and the default GraphQLDataProvider is used which is connected to the same back-end MJAPI instance as the Metadata and RunView classes. If you want to have this component connect to a different MJAPI back-end, create an instance of a ProviderBase sub-class like GraphQLDataProvider/etc, and configure it as appropriate to connect to the MJAPI back-end you want to use, and then pass it in here.

    ResourceClicked: EventEmitter<NormalizedPermission> = ...

    Fired when a row in the "Shared with me" tab is clicked.

    RevokeConfirmTitle: string = 'Revoke access'

    Title text displayed in the confirm-revoke dialog.

    SharedByMe: SharingCenterDomainGroup[] = []
    SharedWithMe: SharingCenterDomainGroup[] = []
    SharingEntityResolver: (domainName: string) => string | null = DefaultSharingEntityResolver

    Maps a permission domain name (e.g. "Dashboard Permissions") to the entity name used to load and delete the underlying record on Revoke. Replace to add support for custom domains. Defaults to DefaultSharingEntityResolver.

    ShowCloseButton: boolean = true

    When true, the close button is rendered in the tab strip. Hide it when the embedding container provides its own close affordance.

    "ɵdir": unknown
    "ɵfac": unknown

    Accessors

    • get ProviderToUse(): IMetadataProvider

      Returns either the default Metadata provider or the one specified in the Provider property, if it was specified

      Returns IMetadataProvider

    • get RunQueryToUse(): IRunQueryProvider

      Returns either the default RunQuery provider or the one specified in the Provider property, if it was specified

      Returns IRunQueryProvider

    • get RunReportToUse(): IRunReportProvider

      Returns either the default RunReport provider or the one specified in the Provider property, if it was specified

      Returns IRunReportProvider

    • get RunViewToUse(): IRunViewProvider

      Returns either the default RunView provider or the one specified in the Provider property, if it was specified

      Returns IRunViewProvider

    Methods

    • A callback method that is invoked immediately after the default change detector has checked the directive's data-bound properties for the first time, and before any of the view or content children have been checked. It is invoked only once when the directive is instantiated.

      Returns Promise<void>