Identity Management (MOSC)

MOSC Banner

My custom event handler does not show the warning in IOM interface

edited Sep 4, 2013 12:25PM in Identity Management (MOSC) 4 commentsAnswered
Hi all! 
I wrote a custom Event Handler that implements "ValidationHandler." After carrying out a check on the OIM database, if the class detects a problem, throw an exception of "ValidationFailedException" and it must show the warning on the screen IOM. That way I can block the user who wants to do the operation is not permitted. My code is as follows:

public class HandlerConQuery implements ValidationHandler {
    
    private String chiaveUtente;
    
    public void validate(long l, long l1, Orchestration orchestration) {
        
        try{
            Connection connessione = <method to connect to OIM db>  
            
            chiaveUtente = ContextManager.getUserPreference("usr_key").toString();
            
            HashMap<String, Serializable> parameters = orchestration.getParameters();

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center