cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

IdentityIQ context and testing API using IntelliJ

IdentityIQ context and testing API using IntelliJ

Create the Java Project as per the structure given below:

  • Make sure to create the "resource" directory under the project
  • Within resource create another directory "sailpoint.object" directory
  • Copy the latest updated object .hbm files (from identityiq\WEB-INF\classes\sailpoint\object\) to resource Directory.
  • Copy the iiq.properties files to src Directory
  • Press Ctrl + Shift + Alt + S / Files-> Project Structure
    • Modules -> Dependencies -> Click on "+", choose Jars or Directories
    • Select All Jars from (identityiq\WEB-INF\lib\)
    • Change the name to lib

Capture.PNG

Capture1.PNG

Labels (1)
Comments
package com.iiq;

import sailpoint.api.SailPointContext;
import sailpoint.api.SailPointFactory;
import sailpoint.object.Identity;
import sailpoint.spring.SpringStarter;
import sailpoint.tools.GeneralException;

public class Main {
    public static SailPointContext context;

    public static void main(String[] args) throws GeneralException {
        SpringStarter starter = new SpringStarter("iiqBeans");
        starter.start();
        SailPointContext context = SailPointFactory.createContext();
        Identity identity = context.getObject(Identity.class, "spadmin");
        String displayName=identity.getDisplayName();
        System.out.println("Identity Details " + identity.getFirstname() + identity.getLastname());
        starter.close();
    }
}

I am getting this error, please help

Error occurred during initialization of boot layer
java.lang.module.FindException: Module format not recognized: <CODE_PATH>\eclipse-workspace\SailpointIIQTests\resources\sailpoint.objects\AlertExtended.hbm.xml

Version history
Revision #:
5 of 5
Last update:
‎Mar 24, 2023 09:36 PM
Updated by: