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
Comments
Mar 09, 2021
02:40 AM
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Content to Moderator
Mar 09, 2021
02:40 AM
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();
}
}
Sep 27, 2021
09:12 PM
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Content to Moderator
Sep 27, 2021
09:12 PM
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: