NSD1041 Create a URL link to an object

Fact

How to create a URL link to any object

Situation

Creating a URL link to an object is not an out of the box feature of NordicEdge Identity Manager version 3

It can however be easily done with a simple filter

Solution

The object's DN must be both Base64 and URL encoded before putting into the URL.

This can be done by calling the method:

B64andURLencodeString in the class se.nordicedge.servlets.NEIDMgmtUtils.

Put the encoded link in the parameter browseToAndOpenDN then use the parameter action=browseFrame, example:

https://www.myneimmachine.com/nordicedge/NEIDMgmt?action=browseFrame&browseToAndOpenDN=aswq1wed22s2s2s

Filter example: 

    /**

     * Generate URL to the an Object DN

     * @param host The im host name

     * @param isSSL If https is being used

     * @param webApp The tomcat webapp name (usually nordicedge)

     * @param objectDN The DN to encode

     * @return the full URL

     */

    public String getURLToObjectDN(String host, boolean isSSL, String webApp, String objectDN){

        String url="http://";

        if(isSSL)

            url="https://";

        url=url+host+"/"+webApp+"/NEIDMgmt?action=browseFrame&browseToAndOpenDN=";

        se.nordicedge.servlets.NEIDMgmtUtils encoder = new se.nordicedge.servlets.NEIDMgmtUtils();       

        objectDN=encoder.B64andURLencodeString(objectDN, false);

        return url+objectDN;        

    }

Disclaimer

The origin of this information may be internal or external to Nordic Edge™. Nordic Edge™ makes all reasonable efforts to verify this information. However, the information provided in this document is for your information only. Nordic Edge™ makes no explicit or implied claims to the validity of this information. Any trademarks referenced in this document are the property of their respective owners.
Nordic Edge Support – www.nordicedge.se

Comments are closed.