- package com.oimacademy.scheduler;
- import com.oimacademy.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) is the Provisioning Solution from oracle. This page contains an index with references to all OIM related posts in the oracle identity manager Academy blog. The posts included herein are intended to provide oracle identity management customers and developers with technical information about best practices for implementing OIM based solutions.
OIM Code Update Job Info Using LookupSchedulerTask API
Subscribe to:
Post Comments (Atom)
-
Connection Related API's : OIM DB Connection/ Data Source connection OIMClient API / OIMConnection API OIM Platform API to getSer...
-
Error : Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory at org.springframewor...
-
In this post, we set the middle name as “MiddleName” if user does not provide middle name during user create operation. Below are high...
No comments:
Post a Comment