Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The merged configurations (forms, widgets) have one quite specific characteristic. If no configuration is present at all, then a default configuration will be used (all default tabs, all default widgets). However if only a single form or widget is defined then the default configuration is not applied. All forms/widgets need to be explicitly defined. The forms have additional setting that includes all the default forms (includeDefaultForms) if that is needed. However, there is no such setting for widgets. Any number of forms can be combined together as each form is in a separate tab. But there is only a limited number of widgets and they all are built to have their fixed place. This may change in the future and the dashboards may become more flexible. But they are not that flexible yet. Therefore all the widgets need to be explicitly defined in order to appear in a customized dashboard.

The default (built-in) forms has their URIs that can be used to refer to them (see an example below). These are the URIs:

Form (tab)URI
Basic
http://midpoint.evolveum.com/xml/ns/public/gui/component-3#focusTabBasic
Projections
http://midpoint.evolveum.com/xml/ns/public/gui/component-3#focusTabProjections
Assignments
http://midpoint.evolveum.com/xml/ns/public/gui/component-3#focusTabAssignments
Tasks
http://midpoint.evolveum.com/xml/ns/public/gui/component-3#focusTabTasks
Request a role
http://midpoint.evolveum.com/xml/ns/public/gui/component-3#focusTabRequestRole
History
http://midpoint.evolveum.com/xml/ns/public/gui/component-3#focusTabObjectHistory
Inducements
http://midpoint.evolveum.com/xml/ns/public/gui/component-3#focusTabInducements
Delegations
http://midpoint.evolveum.com/xml/ns/public/gui/component-3#focusTabDelegations
Delegated to me
http://midpoint.evolveum.com/xml/ns/public/gui/component-3#focusTabDelegatedToMe
Policy constraints
http://midpoint.evolveum.com/xml/ns/public/gui/component-3#focusTabPolicyConstraints
Members
http://midpoint.evolveum.com/xml/ns/public/gui/component-3#focusTabMembers

Examples

Show Only Some Default Forms

Suppose you want to show only "Basic" and "Assignment" tabs in the user details page. The you can define a role like this:

Code Block
languagexml
<role>
     ...
     <adminGuiConfiguration>
        <objectForms>
            <objectForm>
                <type>UserType</type>
                <formSpecification>
                    <panelUri>http://midpoint.evolveum.com/xml/ns/public/gui/component-3#focusTabBasic</panelUri>
                </formSpecification>
            </objectForm>
            <objectForm>
                <type>UserType</type>
                <formSpecification>
                    <panelUri>http://midpoint.evolveum.com/xml/ns/public/gui/component-3#focusTabAssignments</panelUri>
                </formSpecification>
            </objectForm>
        </objectForms>
    </adminGuiConfiguration>
</role>

If user has this role the he will see only basic tab and assignments. The projections, history and other tabs will be hidden. Of course, if the user has more roles that gives access to more tabs that he will see these tabs as well.

New Custom Form in a Role

...