IM Developer Guide – Policy Filter

About this guide

This document gives an overview of the installation of PhenixID Identity Manager. Additional information is found on PhenixID web site or through PhenixID support.

Summary

This document explains Policy Filter in PhenixID Identity Manager. It is assumed reader is familiar with both the Identity Manager and Identity Manager Configurator. The document is a part of a collection of documents explaining how to extend and customize Identity Manager. In addition there is also Javadoc and sample code.

Mentioning of abstract base class assumes these are used when developing custom code.
First time readers are recommended to read overview document, IM Developer Overview.

Definition

A Policy Filter is executed the moment after an administrator is authenticated and all standard policies are loaded.

By developing a Policy Filter one can manipulate with the administrator’s IM policies. For instance additional forms could be added.

Developing Search Filter

A search filter is a Java class. Required source level is version 8. A search must implement se.nordicedge.interfaces.CustomPolicyLoader

A base class is provided through:

se.nordicedge.misc.tab.filter.BaseCustomPolicyLoader

Flow of Execution

After the administrator is authenticated and standard policies are loaded IM checks for a Policy Filter. If configured, method loadPolicies is executed.

Configuration

Configuration is done by setting policy CustomPolicyLoader in the file DSEditor.properties.

CustomPolicyLoader=mypackage.MyPolicyFilter

There can only be one Policy Filter configured in every DSEditor.properties.