Skip to content

Instantly share code, notes, and snippets.

/*Parent Table*/
CREATE TABLE MY_BADGE_RE_FEED
(
LOGIN VARCHAR2(256 CHAR),
EMPLID VARCHAR2(256 CHAR)
);
INSERT INTO MY_BADGE_RE_FEED (LOGIN, EMPLID) VALUES ('JPROUDMOORE','100000');
INSERT INTO MY_BADGE_RE_FEED (LOGIN, EMPLID) VALUES ('AWINDRUNNER','100001');
INSERT INTO MY_BADGE_RE_FEED (LOGIN, EMPLID) VALUES ('MSTORMRAGE','100002');
@rayedchan
rayedchan / ReGenDBSrcMetadata.xml
Last active July 8, 2016 02:57
Scheduled Task Plugin: Reconciliation Event Generator Database Feed
<?xml version="1.0" encoding="UTF-8"?>
<scheduledTasks xmlns="http://xmlns.oracle.com/oim/scheduler">
<task>
<name>Recon Event Generator Database Source</name>
<class>com.blogspot.oraclestack.scheduledtasks.ReconEventsGeneratorDatabaseSource</class>
<description>Creates reconciliation events using data from a database</description>
<retry>5</retry>
<parameters>
<string-param required="true" encrypted="false" helpText="JNDI of WebLogic Datasource">Data Source</string-param>
<string-param required="true" encrypted="false" helpText="Name of Reconciliation Profile">Resource Object Name</string-param>
@rayedchan
rayedchan / FlatFileUserModification.java
Last active August 18, 2018 16:14
OIM Multi-threading Scheduled Task
package com.blogspot.oraclestack.scheduledtasks;
import com.blogspot.oraclestack.objects.UserProcessor;
import java.io.BufferedReader;
import java.io.FileReader;
import java.util.Arrays;
import java.util.HashMap;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import oracle.core.ojdl.logging.ODLLevel;
@rayedchan
rayedchan / SOAClientExample.java
Created January 3, 2016 05:09
SOA Workflow Service Client Example: Fetch and Reassign Request Tasks
package com.blogspot.oraclestack.testdriver;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import oracle.bpel.services.workflow.StaleObjectException;
import oracle.bpel.services.workflow.WorkflowException;
import oracle.bpel.services.workflow.client.IWorkflowServiceClient;
import oracle.bpel.services.workflow.client.IWorkflowServiceClientConstants;
package com.blogspot.oraclestack.testdriver;
import Thor.API.Exceptions.tcAPIException;
import Thor.API.Exceptions.tcBulkException;
import Thor.API.Exceptions.tcTaskNotFoundException;
import Thor.API.Operations.tcProvisioningOperationsIntf;
import Thor.API.Security.XLClientSecurityAssociation;
import com.thortech.xl.client.dataobj.tcDataBaseClient;
import com.thortech.xl.dataaccess.tcDataProvider;
import com.thortech.xl.dataaccess.tcDataSet;
@rayedchan
rayedchan / UserLifecyclePostprocessEH.java
Created December 22, 2015 04:57
Customizing User Lifecycle Events
package com.blogspot.oraclestack.eventhandlers;
import Thor.API.Exceptions.tcAPIException;
import Thor.API.Exceptions.tcColumnNotFoundException;
import Thor.API.Exceptions.tcInvalidLookupException;
import Thor.API.Exceptions.tcTaskNotFoundException;
import Thor.API.Operations.TaskDefinitionOperationsIntf;
import Thor.API.Operations.tcLookupOperationsIntf;
import Thor.API.Operations.tcProvisioningOperationsIntf;
import Thor.API.tcResultSet;
@rayedchan
rayedchan / UserLockPreprocessEH.java
Last active December 16, 2015 03:27
User Preprocess Event Handler Template
package com.blogspot.oraclestack.eventhandlers;
import java.io.Serializable;
import java.text.MessageFormat;
import java.util.HashMap;
import oracle.core.ojdl.logging.ODLLevel;
import oracle.core.ojdl.logging.ODLLogger;
import oracle.iam.identity.exception.NoSuchUserException;
import oracle.iam.identity.exception.SearchKeyNotUniqueException;
import oracle.iam.identity.exception.UserModifyException;
@rayedchan
rayedchan / CallProvisioningTaskTestDriver.java
Created November 20, 2015 05:10
OIM API: Calling Process Task Instance On User Resource Account
package com.blogspot.oraclestack.testdriver;
import Thor.API.Exceptions.tcAPIException;
import Thor.API.Exceptions.tcColumnNotFoundException;
import Thor.API.Operations.TaskDefinitionOperationsIntf;
import Thor.API.Operations.tcProvisioningOperationsIntf;
import Thor.API.tcResultSet;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Hashtable;
@rayedchan
rayedchan / AccountPasswordResetTestDriver.java
Last active December 7, 2016 18:30
OIM API: Change User Resource Account Password
package com.blogspot.oraclestack.testdriver;
import java.util.HashSet;
import java.util.Hashtable;
import java.util.List;
import java.util.Locale;
import oracle.core.ojdl.logging.ODLLevel;
import oracle.core.ojdl.logging.ODLLogger;
import oracle.iam.identity.usermgmt.api.UserManager;
import oracle.iam.identity.usermgmt.api.UserManagerConstants;
@rayedchan
rayedchan / ChangePasswordValidationEHMetadata.xml
Created September 1, 2015 11:59
OIM Validation Event Handler Example: Custom Error Message
<?xml version="1.0" encoding="UTF-8"?>
<eventhandlers xmlns="http://www.oracle.com/schema/oim/platform/kernel" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.oracle.com/schema/oim/platform/kernel orchestration-handlers.xsd">
<validation-handler
class="com.blogspot.oraclestack.eventhandlers.ChangePasswordValidationEH"
entity-type="User"
operation="CHANGE_PASSWORD"
name="ChangePasswordValidationEH"
order="1000"/>
</eventhandlers>