Previous Topic: Calling Sequence

Next Topic: Sample Logical Attribute Handlers

Custom Messages

After a user submits a task, CA Identity Manager can display the following user-defined messages:

Informational messages

A logical attribute handler can define a custom informational message, such as an acknowledgement, to display to the user after the user successfully submits a task.

To display a custom informational message for the task, specify the message in an addMessageObject() method inherited by LogicalAttributeContext.

Exception messages

If validation errors occur after a user submits a task, the task screen is redisplayed with the appropriate exception messages. This message gives the user the opportunity to correct the errors and resubmit the task.

To enable CA Identity Manager to display custom exception messages on a task screen, add the messages to an IMSException object.

CA Identity Manager supports localized exception messages, which you store in a family of resource bundles. Each resource bundle in the family contains the same messages, but in a different language. You specify the current user’s locale and the base name of the resource bundles, and CA Identity Manager selects the appropriate resource bundle from which to retrieve exception messages.

Note: For more information, see the IMSException class in the Javadoc Reference.

More Information:

IMSException