package com.massiveGaze.scheduler; import com.massiveGaze.connection.Platform; import java.util.logging.Level; import java.util.logging.Logger; import oracle.iam.scheduler.api.SchedulerService; import oracle.iam.scheduler.exception.IncorrectScheduleTaskDefinationException; import oracle.iam.scheduler.exception.LastModifyDateNotSetException; import oracle.iam.scheduler.exception.ParameterValueTypeNotSupportedException; import oracle.iam.scheduler.exception.RequiredParameterNotSetException; import oracle.iam.scheduler.exception.SchedulerAccessDeniedException; import oracle.iam.scheduler.exception.SchedulerException; import oracle.iam.scheduler.impl.util.SchedulerUtil; import oracle.iam.scheduler.vo.JobDetails; import oracle.iam.scheduler.vo.ScheduledTask; /** * * */ public class LookupSchedulerTask { private static SchedulerService schedulerService = Platform.getService(SchedulerService.class); public void updateJob(JobDetails job) throws SchedulerException, RequiredParameterNotSetException, ParameterValueTypeNotSupportedException, IncorrectScheduleTaskDefinationException, LastModifyDateNotSetException, SchedulerAccessDeniedException { schedulerService.updateJob(job); } public static void main(String[] args) throws IncorrectScheduleTaskDefinationException{ try { JobDetails[] job =schedulerService.getJobsOfSchedulerTask("LDAP Role Membership Reconciliation"); new LookupSchedulerTask().updateJob(job[0]); } catch (SchedulerException ex) { Logger.getLogger(LookupSchedulerTask.class.getName()).log(Level.SEVERE, null, ex); } catch (RequiredParameterNotSetException ex) { Logger.getLogger(LookupSchedulerTask.class.getName()).log(Level.SEVERE, null, ex); } catch (ParameterValueTypeNotSupportedException ex) { Logger.getLogger(LookupSchedulerTask.class.getName()).log(Level.SEVERE, null, ex); } catch (LastModifyDateNotSetException ex) { Logger.getLogger(LookupSchedulerTask.class.getName()).log(Level.SEVERE, null, ex); } catch (SchedulerAccessDeniedException ex) { Logger.getLogger(LookupSchedulerTask.class.getName()).log(Level.SEVERE, null, ex); } } }
Oracle Identity Manager (OIM R2PS2/PS3/12C) is a highly flexible and scalable enterprise identity administration system that provides operational and business efficiency by providing centralized administration & complete automation of identity and user provisioning events across enterprise as well as extranet applications.
OIM Code Update Job Info Using LookupSchedulerTask API
Subscribe to:
Posts (Atom)
About OIM
Oracle Identity Management enables organizations to effectively manage the end - to - end life - cycle of user ide...
Popular Posts
-
OIM API's Sample Code : Videos: Massive Gaze Videos Connection Related API's : OIM DB Connection/ Data Source connection ...
-
Videos: Massive Gaze Videos 1. Basic OIM Information 2. MDS Export/Import 3. Steps For R2PS2 / R2PS3 Custom Pre-processor Ev...
-
Videos: Massive Gaze Videos 1. Query to get OIM Provsioned/provisioning Account details 2. Query to get usr keys For Rejected / ...
No comments:
Post a Comment