Skip to Main Content

Security Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Request Data Validator is not working

Oracle.QuestJan 9 2013 — edited Feb 14 2013
Hi Guys,

I am trying to invoke a plugin while submitting a request through CATALOG in OIM 11gR2. The user case i am trying to achieve is - (1) User/Admin login to OIM and go to CATALOG option (2) Select an Application instance, fill the values in the form and checkout (3) While submitting this validator should invoke which will validate the request data and throw exception if any.

For this i was thinking to utilize the plugin for oracle.iam.request.plugins.RequestDataValidator "This is used for custom validation of request data after submission"

My plugin.xml looks like
<?xml version="1.0" encoding="UTF-8"?>
<oimplugins>
<plugins pluginpoint="oracle.iam.request.plugins.RequestDataValidator">
<plugin pluginclass="com.test.oim.TestRequestValidator" version="1.0" name="TestReqValidator">
</plugin>
</plugins>
</oimplugins>

And i am using simple code as below
package com.test.oim;

import oracle.iam.request.exception.InvalidRequestDataException;
import oracle.iam.request.plugins.RequestDataValidator;
import oracle.iam.request.vo.RequestData;

+public class TestRequestValidator implements RequestDataValidator {+
+public TestRequestValidator() {+
super();
+}+

+public void validate (RequestData reqDta) throws InvalidRequestDataException{+
System.out.println("************************************************");
System.out.println("***Justification***" reqDta.getJustification());+
throw new InvalidRequestDataException(new Exception("Invalid User"));
+}+
+}+

My plugin directory contains the plugin.xml file and the jar file (with above class) under lib directory. I placed the zip file under OIM_HOME/Plugin directory and even restarted the servers.

However this code is not invoking and i can successfully create the request (i tried from user and admin both). Please advise if anyone has any idea. Thanks

Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Mar 14 2013
Added on Jan 9 2013
10 comments
815 views