It's all about IAM

Get Catalog Details Associated With Request (Request ID)



Sample Code To Get Catalog Details For A Particular Request ID:


List requestBeneficiaryEntityList = beneficiary.getTargetEntities();
for(RequestBeneficiaryEntity requestBeneficiaryEntity : requestBeneficiaryEntityList){
String entityKey = requestBeneficiaryEntity.getEntityKey();
OIMType entityType = requestBeneficiaryEntity.getRequestEntityType();

Catalog catalog = catalogService.getCatalogItemDetails(null, entityKey, entityType, null);
System.out.println("Approver Role :: " + catalog.getApproverRole());                   
System.out.println("Tags :: " + catalog.getTags());
}



Usage: 


Upgrade from OIM 11g R1 to OIM 11g R2


It will be useful while creating Approval Workflow in OIM 11g R2 iff you want to make use of the attached Metadata in your Approval Workflow .


You can also use the New Partner Link given by Oracle but if someone doesn't want to use that and wants to go with the existing approval workflow developed in older versions (old 11g R1) then they can just change the code little bit and everything will work for them

Catalog API: How To Get Metadata Associated with Catalog Item



Sample Code to print extended Metadata for Catalog Item:


List catalogMetadataList = catalog.getMetadata();

 for(MetaData metadataObject : catalogMetadataList){
String valueStored = metadataObject.getValue();
MetaDataDefinition metdataDefinition = metadataObject.getMetaDataDefinition();
                

String columnName = metdataDefinition.getDbColumnName();
 String description = metdataDefinition.getDescription();
String displayName = metdataDefinition.getDisplayName();
long id = metdataDefinition.getId();
System.out.println("Display Name :: " + displayName + " Value :: " + valueStored);
System.out.println("Column Name :: " + columnName + " Description :: " + description);
System.out.println("ID :: " + id);



Usage: 


Upgrade from OIM 11g R1 to OIM 11g R2


It will be useful while creating Approval Workflow in OIM 11g R2 iff you want to make use of the attached Metadata in your Approval Workflow .

You can also use the New Partner Link given by Oracle but if someone doesn't want to use that and wants to go with the existing approval workflow developed in older versions (old 11g R1) then they can just change the code little bit and everything will work for them.