OIM API to find Child Requests details


  1. package com.oimacademy.request;
  2. import java.util.List;
  3. import oracle.iam.request.api.RequestService;
  4. import oracle.iam.request.exception.NoRequestPermissionException;
  5. import oracle.iam.request.exception.RequestServiceException;
  6. import oracle.iam.request.vo.Request;
  7. import com.oimacademy.connection.Platform;
  8. public class ChildRequests {
  9.  public static void main(String args[] ) throws RequestServiceException, NoRequestPermissionException{ 
  10.  RequestService requestService= Platform.getService(RequestService.class);
  11.  List<Request>  childRequests = requestService.getChildRequests("65");
  12.  for (int k = 0; k < childRequests.size(); k++) {   
  13.   System.out.println("Request ID - >"+childRequests.get(k).getRequestID());
  14.   System.out.println("Request Status - >"+childRequests.get(k).getRequestStatus());  
  15.  }
  16.  } 
  17. }

No comments:

Post a Comment