OIM 11G R2PS2 / R2PS3 Custom Pre-processor EventHandler Plugin Registration


    1. Write your custom ProcessHandler
            Sample Code :    AccessPreProcessHandler.java
            
     2. Set Classpath using $OIM_ORACLE_HOME/designConsole/lib and Set other jars if you need for your program.
    
     3. Compile Java class from $OIM_ORACLE_HOME/designConsole where you find all Jars
        javac -cp $CLASSPATH com/massiveGaze/provision/AccessPreProcessHandler.java
        
     4. Create Jar file using above .class
        jar -cvf AccessPreProcessHandler.jar com/massiveGaze/provision/AccessPreProcessHandler.class
        
     5. varify the jar file using decompiler.
    
     6. Create Dummy folder say 'plugin' folder and create below files.
            a) plugin.xml
                <oimplugins>
                 <plugins pluginpoint="oracle.iam.platform.kernel.spi.EventHandler">
                 <plugin pluginclass="com.massiveGaze.provision.AccessPreProcessHandler" version="1.0" name="AccessPreProcessHandler"/>
                 </plugins>
                 </oimplugins>
            b) lib
                Move above AccessPreProcessHandler.jar file to lib folder.
                
     7. Create plugin zip file using below command.
            zip -r plugins.zip ./plugin.xml ./lib/AccessPreProcessHandler.jar
            
     8. Export Specific EventHandlers.xml from EM console to specific location.
        Ex:/metadata/iam-features-provisioning/event-definition/EventHandlers.xml 
        Edit/modify action handler by adding the new tag.
            <action-handler class="com.massiveGaze.provision.AccessPreProcessHandler" entity-type="Entitlement" operation="PROVISION" name="AccessPreProcessHandler" stage="preprocess" order="FIRST" sync="TRUE"/>
        Import back to MDS using EM console.
    
     9. Register the plugin.
        From XL_HOME or OIM_ORACLE_HOME/server/plugin_utility edit the ant.properties with below env variables.
            wls.home=
            oim.home=
            login.config=
            mw.home=
            ex:            
                wls.home=$MW_HOME/wlserver_10.3
                oim.home=$OIM_HOME/server
                login.config=$OIM_HOME/designconsole/config/authwl.conf
                mw.home=$MW_HOME
                        
        execute below command    
         ant -f pluginregistration.xml register
            provide identity console userName,Password,Url and location of Zip file.
            Note : Varify jar is exist or not $MW_HOME/wlserver_10.3/server/lib/wlfullclient.jar
                    If not execute command : java -jar wljarbuilder.jar 
                   Set Ant home before executing above commad.                    

     10. Restrat the server
     11. Execute the testcase

Refrence :    
User Modifiable Metadata Files
    http://docs.oracle.com/cd/E27559_01/dev.1112/e27150/uploadutil.htm#OMDEV4859


Check the Oracle Identity Manager Review for other OIM 11g related posts

No comments:

Post a Comment