Skip to content

Instantly share code, notes, and snippets.

@rayedchan
rayedchan / ChangePasswordValidationEH.java
Last active November 19, 2016 17:53
OIM11gR2P3: Change Password Validation Event Handler
package com.blogspot.oraclestack.eventhandlers;
import java.io.Serializable;
import java.util.HashMap;
import oracle.core.ojdl.logging.ODLLevel;
import oracle.core.ojdl.logging.ODLLogger;
import oracle.iam.platform.context.ContextAware;
import oracle.iam.platform.kernel.ValidationFailedException;
import oracle.iam.platform.kernel.spi.ValidationHandler;
import oracle.iam.platform.kernel.vo.BulkOrchestration;
@rayedchan
rayedchan / WORKFORCE_SYNC_SAMPLE.xml
Created August 28, 2015 12:25
PeopleSoft ER Connector: WORKFORCE_SYNC message
<?xml version="1.0"?>
<WORKFORCE_SYNC>
<FieldTypes>
<PER_ORG_ASGN class="R">
<EMPLID type="CHAR"/>
<EMPL_RCD type="NUMBER"/>
<PER_ORG type="CHAR"/>
<ORG_INSTANCE_ERN type="NUMBER"/>
<POI_TYPE type="CHAR"/>
<BENEFIT_RCD_NBR type="NUMBER"/>
@rayedchan
rayedchan / PERSON_BASIC_SYNC_SAMPLE.xml
Created August 27, 2015 12:28
PeopleSoft: Sample PERSON_BASIC_SYNC Message
<?xml version="1.0"?>
<PERSON_BASIC_SYNC>
<FieldTypes>
<PERSON class="R">
<EMPLID type="CHAR"/>
</PERSON>
<ADDRESSES class="R"/>
<NAMES class="R">
<EMPLID type="CHAR"/>
<NAME_TYPE type="CHAR"/>
@rayedchan
rayedchan / ReconciliationEventDataTelephoneNumberValidation.java
Created August 12, 2015 12:06
OIM Reconciliation Event Data Validation Example
package com.blogspot.oraclestack.validation;
import java.util.HashMap;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import oracle.core.ojdl.logging.ODLLevel;
import oracle.core.ojdl.logging.ODLLogger;
/**
* Reconciliation Event Data Validation Example
@rayedchan
rayedchan / OpenLDAPReconciliationEventDataTransformer.java
Created August 8, 2015 01:09
OIM Reconciliation Data Transformation Example
package com.blogspot.oraclestack.transformation;
import java.util.HashMap;
import oracle.core.ojdl.logging.ODLLevel;
import oracle.core.ojdl.logging.ODLLogger;
/**
* Reconciliation Transformation Example
* Uses First Name and Last Name values from the target system
* and constructs Display Name by concatenate both values.
@rayedchan
rayedchan / ResourceServiceAccountTestDriver.java
Created June 25, 2015 02:59
OIM API: Change regular account to be a service account
package com.blogspot.oraclestack.testdriver;
import Thor.API.Exceptions.tcAPIException;
import Thor.API.Operations.tcUserOperationsIntf;
import java.util.HashMap;
import java.util.Hashtable;
import java.util.List;
import javax.security.auth.login.LoginException;
import oracle.core.ojdl.logging.ODLLevel;
import oracle.core.ojdl.logging.ODLLogger;
@rayedchan
rayedchan / BadgeAccessChild.csv
Created June 24, 2015 12:30
OIM Bulk Load Utility: Sample CSV Files For Accounts
UD_BAD3805_ACCOUNTID UD_BACCESS_NAME UD_BACCESS_DESCRIPTION
TSWIFT 21~Science Room Bulk Load
KCHESTER 21~Quad III Bulk Load
KCHESTER Core Bulk Load
KCHESTER Gym
MSANTIAGO Computer Department
@rayedchan
rayedchan / LoadAccounts
Last active August 29, 2015 14:23
OIM Bulk Load Utility: Loading Accounts
***************************************
M A I N M E N U
***************************************
Select the operation to perform:
1) Load User Data
2) Load Account Data
3) Load Role Data
4) Load Role Hierarchy
5) Load Role Membership
@rayedchan
rayedchan / FetchFromCredentialStore.java
Created June 19, 2015 04:28
Credential Store Framework (CSF) API Example
package com.blogspot.oraclestack.scheduledtasks;
import java.security.AccessController;
import java.security.PrivilegedActionException;
import java.security.PrivilegedExceptionAction;
import java.util.HashMap;
import java.util.Map;
import oracle.core.ojdl.logging.ODLLevel;
import oracle.core.ojdl.logging.ODLLogger;
import oracle.iam.scheduler.vo.TaskSupport;
@rayedchan
rayedchan / ProvAppInstPreEHMetadata.xml
Created June 16, 2015 02:54
Event Handler Example: Application Instance
<?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">
<action-handler
entity-type="ApplicationInstance"
operation="PROVISION"
class="com.blogspot.oraclestack.eventhandlers.ProvisionAppInstancePreProcess"
name="ProvisionAppInstancePreProcess"
stage="preprocess"
order="1"
sync="TRUE"/>