Skip to content

IAdmReportPinning

The IAdmReportPinning interface is used to manage reports pinned for the currently logged on user.

Inheritance: The IAdmReportPinning interface inherits from the IUnknown interface.

Note

To use the IAdmReportPinning interface, you need to bind to a report.

Methods

  • Method

  • Description

  • Pin()

  • Adds the report to the list of reports pinned by the currently logged on user.

  • Unpin()

  • Removes the report from the list of reports pinned by the currently logged on user.

  • IsPinned()

  • Returns a value indicating whether the report is pinned by the currently logged on user.

Details

Pin()

Adds the report to the list of reports pinned by the currently logged on user.

void Pin(String displayName, IAdmReportArguments arguments)

Parameters

  • displayName - Specifies an optional display name of the pinned report.
  • arguments - Specifies optional arguments for generation of the pinned report.

Examples

The following code sample adds a report to the list of reports pinned by the currently logged on user.

[Reflection.Assembly]::LoadWithPartialName("Softerra.Adaxes.Adsi")

# Connect to the Adaxes service
$admNS = New-Object "Softerra.Adaxes.Adsi.AdmNamespace"
$admService = $admNS.GetServiceDirectly("localhost")

# Bind to a report
$reportDN = "CN=My Report,CN=Reports,CN=Reports Root,CN=Configuration Objects,"+
    "CN=Adaxes Configuration,CN=Adaxes"
$report = $admService.OpenObject("Adaxes://$reportDN", $NULL, $NULL, 0)

# Pin the report
$arguments = $NULL # Use default arguments specified for the report
$report.Pin("My Pinned Report", $arguments)
using System;
using Softerra.Adaxes.Adsi;
using Softerra.Adaxes.Interop.Adsi.PersistentObjects;
using Softerra.Adaxes.Interop.Adsi.Reports;

class Program
{
    static void Main(string[] args)
    {
        // Connect to the Adaxes service
        AdmNamespace adsNS = new AdmNamespace();
        IAdmService admService = adsNS.GetServiceDirectly("localhost");

        // Bind to a report
        const String reportDN = "CN=My Report,CN=Reports,CN=Reports Root,CN=Configuration Objects," +
                                "CN=Adaxes Configuration,CN=Adaxes";
        IAdmReport report =
            (IAdmReport)admService.OpenObject("Adaxes://" + reportDN, null, null, 0);

        // Pin the report
        IAdmReportArguments arguments = null; // Use default arguments specified for the report
        report.Pin("My Pinned Report", arguments);
    }
}

Unpin()

Removes the report from the list of reports pinned by the currently logged on user.

void Unpin()

Examples

The following code sample removes a report from the list of reports pinned by the currently logged on user.

[Reflection.Assembly]::LoadWithPartialName("Softerra.Adaxes.Adsi")

# Connect to the Adaxes service
$admNS = New-Object "Softerra.Adaxes.Adsi.AdmNamespace"
$admService = $admNS.GetServiceDirectly("localhost")

# Bind to a report
$reportDN = "CN=My report,CN=Reports,CN=Reports Root,CN=Configuration Objects,CN=Adaxes Configuration,CN=Adaxes"
$report = $admService.OpenObject("Adaxes://$reportDN", $NULL, $NULL, 0)

# Unpin the report
$report.Unpin()
using System;
using Softerra.Adaxes.Adsi;
using Softerra.Adaxes.Interop.Adsi.PersistentObjects;
using Softerra.Adaxes.Interop.Adsi.Reports;

class Program
{
    static void Main(string[] args)
    {
        // Connect to the Adaxes service
        AdmNamespace adsNS = new AdmNamespace();
        IAdmService admService = adsNS.GetServiceDirectly("localhost");

        // Bind to a report
        const String reportDN = "CN=My report,CN=Reports,CN=Reports Root," +
                                "CN=Configuration Objects,CN=Adaxes Configuration,CN=Adaxes";
        IAdmReportPinning report =
            (IAdmReportPinning)admService.OpenObject("Adaxes://" + reportDN, null, null, 0);

        // Unpin the report
        report.Unpin();
    }
}

IsPinned()

Returns a value indicating whether the report is pinned by the currently logged on user.

Boolean IsPinned()

Requirements

Minimum required version: 2018.1

See also