XpressUtils - Helping Sun Identity Management Professionals
   
 
Utilities
Tech Talk
Tip of the day
WF_ACTION_ERROR is available only to actions within an activity of a workflow.

Current Poll
Are you planning to switch (or have already switched) to Oracle IDM (OIM)?

We have already implemented OIM
We are planning to switch in the next year
We are waiting for Oracle's directions before switching
We do not plan to move to OIM
We haven't decided

Comments:

View previous poll results

Config Editor - View or Modify any Configuration Object

Anyone who has worked with IDM knows about "Config-urator". Here's introducing Config-Editor - a utility to view and modify any type of configuration object.

Many times the values for these options need to be tweaked by the administrator or end-user. How do they do it? Do they edit the configuration object xml manually? Not only this involves tutoring them how to edit the xml's in the repository, which in turn requires exposing the debug/session pages, but also introduces the possibilities of errors.

Config-Editor solves these issues by offering a simple front-end to edit any type of configuration object. It is able to do this by employing a complex, but generic recursion process of traversing through a configuration object, thus generating a tree-based structure representing each element of the object. The result is a simple, user-friendly UI that is a breeze to work with.

So go ahead.. download this utility and try it out! Happy editing! Download Config-Editor  Download now!

Why use Config-Editor?
  • Simple to install (just import the xml files and optionally copy a jsp).
  • Offers a simple GUI to view or modify any configuration object in a collapsable tree-based format.
  • Eliminates the need to access secured areas such as the debug session pages.
  • Reduces the possibility of errors by not requiring manual edits to configuration xml.
  • Audits the detailed information on the changes made (old and new values) to the individual elements, changes-made-by and the time of update
  • 508-compliant by eliminating the need to use DHTML for tree-structure generation.
  • It is open-source, completely written in Xpress, hence further customizable (terms apply).
Config-Editor

zoom A larger screenshot
Requirements:
  • Sun Identity Manager version 5.0 or higher
Instructions: Config-Editor - Include file

  • Click here to download the zip file. It contains 2 xml's to be imported and 1 jsp that must be extracted within the IDM installation.
  • Extract the files into the "task" directory of your IDM installation directory
  • If you wish to provide a clickable sub-tab within the IDM administration console, modify the file: includes/bodyStart.jsp to include the downloaded file: bodyStart_tab_config_editor.jsp
    Add the following line above the line for <% String navBar = p.getMainNavigation(); (see image on right):

    <%@ include file="../task/bodyStart_tab_config_editor.jsp" %>

  • Restart your application server
  • Click on the "Server Tasks" tab → "Config-Editor" or run the task - TaskDefinition-ConfigEditor
Technical yada yada:
  • From the technical perspective, the code needed to achieve this functionality involves some of the most complex xpress-code-constructs. It requires parsing through a configuration object recursively from the root to the 'leaves' of the object-tree. As you see through the source code of the UserForm, you will find numerous field-references calling each other in circular loops with the perfect terminating conditions.
  • The UI is generated by leveraging the fact that each configuration object in IDM consists of simple data elements such as String, Integer or Boolean, and complex data structures such as List, Map and Object. Each complex data structure can contain any other complex data structure and/or simple data elements. Recursion is the only way to build a generic solution to read such objects in their entirety.
  • While attempts have been made to enforce datatype constraints, the functionality is only available if the configuration object is designed so. For example:


    <Attribute name='maxRetries'>
         <Integer>10</Integer>
    </Attribute>

    can have better datatype-enforcement compared to:

    <Attribute name='maxRetries' value='10' />

  • Similar case is true for boolean (true/false) values:


    <Attribute name='enableAccount'>
         <Boolean>true</Boolean>
    </Attribute>

    can have better datatype-enforcement compared to:

    <Attribute name='enableAccount' value='true' />

    So, we suggest while creating a new configuration object, you design it in a way that better enforces the datatype-validity of its elements.
  • There are some settings that can be tweaked to customize the functionality as per requirement. Please find the same under a variable "options" defined in the Xpress UserForm. It includes settings such as the list of configuration objects to make available to the user to edit, whether to always expand the tree-nodes, always collapse the tree-nodes, the max-length for textboxes in edit mode, etc.
If you have any comments or feedback, please use the form below or feel free to contact us here.


Feedback

Feedback / Comments:

We value comments from XpressUtils users! We strive to make this site better for you each day, so all constructive comments are appreciated.
Please feel free to send us your feedback!
 
From: ajay nalawade Jul 29, 08:43 AM
Comment i want information about how to call java from expree boolean isConnectionSuccessful=connectDB.co ...
From: Carrie Cain Jul 24, 05:22 AM
Comment Want more clients and customers? We will help them find you by putting you on the 1st page of Google ...
From: nimish Jul 20, 12:53 AM
Comment In Handy Tools, Test Regular Expressions is not working. anybody used it?
From: nimish Jul 13, 02:18 AM
Comment hi team, I have some problem related to configure openSSO. Can I ask you for this or should I go to ...
From: Anirudha Jul 13, 01:41 AM
Comment Wish you all the best...
From: hussain Jun 05, 06:59 AM
Comment Could u please provide an ebook for Sun Certified Integrator for Identity Manager 7.1
From: docsnyder May 07, 05:52 AM
Comment Hi! I have downloaded the rule tester JSP file and followed the instructions, but the following err ...
From: jagadisham Mar 21, 12:48 PM
Comment day by day it is improving...all the best!!!
From: agus Mar 04, 01:47 AM
Comment sss
From: Chellappan S Mar 04, 01:32 AM
Comment idm developer
View all comments >>

Submit a comment:

Name: required
E-mail: required
Comments: required
Submit Comments
Tip: If you have a question related to programming in Xpress or some functionality in IDM, please post it as a new article in the Articles section.

It's quick, easy and does not require you to sign-up too!
 
    Home | Terms of use | Contact us | Help    
  Copyright © 2008-2009 XpressUtils.com. All rights reserved.