Documentum’s out of box Webtop allows for its administrative users to manage groups, and the users that belong to each group, while within Webtop’s user management section. As a default, the groups and its users are presented in a datagrid along with individual descriptions, if provided. Sometimes, however, clients will find it useful to expose additional user information on the datagrid (such as an email) to accompany the name and description columns already implemented. Such a task is possible with a few tweaks to the GroupList component and its dependent files.
Webtop gathers Documentum group and user attribute data in its GroupResultSet class, which pulls attributes from the repository based upon the query you provide. As should be implied, to grab the information you want to appear on both the groups and member pages, you must extend the class and modify the appropriate query so that the GroupList component files are able to retrieve and display the information you’d like to appear on the datagrid. It should be noted there are multiple queries within the GroupResultSet, one for the members portion of the datagrid and a few for the groups portion. You must ensure that you are modifying the correct query so that you are accurately pulling the data that you require (as user and groups have some differing attributes).
Once you have modified your GroupResultSet class so that it returns the data you need, you must then extend the GroupList class to include the column names of the information you’d like to appear on the datagrid. This is a fairly easy customization requiring an override the m_columnNames class attribute and adding the new columns you queried for to the array that is already defined. By doing so, you allow the GroupList.jsp access to your query results.
With the desired data queried for and ready to be utilized, the last step in the process is to modify the GroupList.jsp by adding columns and column headers that will be used to display the new attributes you queried for. Once created, you can pass in the information you want displayed by databinding your newly created columns in the jsp to the column you added to the m_columnName array like so: <dmf:label datafield=’description’ />. In this case, the .jsp is pulling data from the description column of your result set and displaying the returned results.
A similar and more simple modifications can also be made to display group and/or user attributes within the container that appears when assigning users to groups. Override the userormembergrouplocator and set the appropriate attribute column to true to make it visible, and like magic, the column you set to true should appear in the container.