import java.util.Hashtable;
import com.oimacademy.connection.Platform;
import oracle.iam.request.api.RequestService;
import oracle.iam.request.exception.AccessDeniedException;
import oracle.iam.request.exception.RequestServiceException;
import oracle.iam.request.vo.Request;
public class CloseRequestAPI {
RequestService reqManager;
public CloseRequestAPI() {
super();
}
public static void main(String[] arg) throws RequestServiceException, AccessDeniedException
{
CloseRequestAPI oim=new CloseRequestAPI();
oim.OIMConnection();
oim.closeReq("20541");
}
public void OIMConnection(){
reqManager = Platform.getService(RequestService.class);
}
public void closeReq(String userId) throws RequestServiceException,
AccessDeniedException {
reqManager.closeRequest(userId);
}
}
import com.oimacademy.connection.Platform;
import oracle.iam.request.api.RequestService;
import oracle.iam.request.exception.AccessDeniedException;
import oracle.iam.request.exception.RequestServiceException;
import oracle.iam.request.vo.Request;
public class CloseRequestAPI {
RequestService reqManager;
public CloseRequestAPI() {
super();
}
public static void main(String[] arg) throws RequestServiceException, AccessDeniedException
{
CloseRequestAPI oim=new CloseRequestAPI();
oim.OIMConnection();
oim.closeReq("20541");
}
public void OIMConnection(){
reqManager = Platform.getService(RequestService.class);
}
public void closeReq(String userId) throws RequestServiceException,
AccessDeniedException {
reqManager.closeRequest(userId);
}
}
No comments:
Post a Comment