XpressUtils - Helping Sun Identity Management Professionals
   
 
Utilities
Tech Talk
Tip of the day
The <Disable> tag is evaluated during all stages of UserForm processing (such as Default, Derivation, Expansion, Confirmation, HTML generation, etc).

Current Poll
Is your organization willing/planning to move to Identity Management in the cloud?

We have already moved
Yes, we are planning to
May be, after a ROI analysis
Certainly not!
We are not yet sure

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: vjmom Jan 20, 11:52 PM
Comment wish you a happy and prosperous new year 2012 to you. May God fulfill all ur wishes and dreams come ...
From: bala Nov 05, 05:46 AM
Comment how to call a powershell script via a resource action
From: Mike Oct 18, 12:56 PM
Comment I have a job opportunity for a Java Developer who needs SUN IDM and Xpress experience in NJ. I was w ...
From: Lakshmanrao Jun 29, 06:26 AM
Comment hi if i create one flat file but i can not provide the security(uneditable) to that flat file. H ...
From: bala Jun 27, 09:26 AM
Comment Hi Friends, Please help me to avoid "Error : Create View id or Please login again" I am getting th ...
From: sunny Jun 16, 04:42 AM
Comment hi, this site is very use full to all identity manager developers. one more concern here is please ...
From: K S Jun 14, 06:46 AM
Comment How to remove the system generated ID's from xml files of Sun IDM Setup automatically and which does ...
From: Gustavo May 17, 12:56 PM
Comment Hi I'm trying to read a value from a csv file the file goes like this: command,user,FolioUsd,reso ...
From: Karan May 06, 12:32 AM
Comment Hi all, I have a situation where in a form the user has to select a .csv file from harddrive which ...
From: Tutu Apr 19, 08:55 AM
Comment Thanks
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.