Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Editorial updates and clarifications

This article describes how to add custom class files in Smart ID a class patch mechanism for Identity Manager Docker containers. The patched classes need to be placed below the Docker Compose files of your installation, see the steps below.

Info
title<SMARTIDHOME>

In this article, <SMARTIDHOME> refers to /home/nexus, but this can be different depending on the setup.

  1. Add your custom class files

    to

    in <SMARTIDHOME>/docker/compose/identitymanager/<admin|operator|tenant>/classes.

note

  1. For example, if you want to update just Identity Manager Operator, see this example:

    Panel
    borderStylesolid
    titleExample: upload just Identity Manager Operator

    Place the class file(s) below <SMARTIDHOME>/docker/compose/identitymanager/operator/classes 


  2. The class files have to be put in the right folder structure in order to work. This folder structure corresponds to the package path of the class file being added.

For example, if
  1. Example:

    1. If the class file

is Foo
    1. CalendarAction.class has to be patched, which has the package

org.nexus.com.bar, then
    1. name de.vps.act.action.calendar, place the class file

will have
    1. in the following path inside the classes folder

: org/nexus/com/bar/Foo.class
    1. : de/vps/act/action/calendar/

    2. The full path in this example would then be:

      Panel
      titleExample: full path

      <SMARTIDHOME>/docker/compose/identitymanager/operator/classes/de/vps/act/action/calendar/CalendarAction.class


  1. After placing the patched classes, restart your Docker container in order to apply the change.
    1. If you are running Identity Manager Docker containers on multiple server nodes, you must apply the change on each of the nodes and restart the containers.

This article is valid for Smart ID 21.04 and later.