package sailpoint.rest;
import javax.ws.rs.GET; import javax.ws.rs.Path;
import sailpoint.rest.BaseResource; import sailpoint.tools.GeneralException; import sailpoint.object.ManagedAttribute; import java.util.ArrayList; import java.util.*; import sailpoint.api.SailPointContext; import sailpoint.api.SailPointFactory; import sailpoint.object.*; import sailpoint.tools.Util; import java.lang.*;
@Path(“custom”) public class EntitlementResource extends BaseResource{
public static SailPointContext context;
@GET @Path(“entitlementid”) public String getEntitlementId() throws GeneralException {
Application app = context.getObjectById(Application.class,”c0a80068798015e0817984cf7c610630″);
String name = app.getName();
return name; } }
/***********/ Please find the above code but instead of the Application name in return , I am getting the below response./**********/
if(window.PrimeFaces){PrimeFaces.settings.locale=’en’;}
SailPoint IdentityIQ – System Exception
ui-button
$(function(){PrimeFaces.cw(“CommandButton”,”widget_navigationForm_backBtn”,{id:”navigationForm:backBtn”});});
$(function(){PrimeFaces.cw(“CommandButton”,”widget_navigationForm_homeBtn”,{id:”navigationForm:homeBtn”});});
function skipNavigation() { $(‘#mainContent’).focus(); }
Skip to Content
Home
My Work
menu. Press ENTER or space to access submenu. To move through items press up or down arrow.
My Access Reviews
Access Requests
Policy Violations
Work Items
System Exception
The system has encountered a serious error while processing your request. Report the following incident code to your system administrator: 234
© Copyright 2020 SailPoint Technologies – All rights reserved.
Ext.onReady( function() { if (true) { Ext.defer(SailPoint.Utils.checkUnsupportedBrowser, 500); } });
It seems problem is in getting the context. Could you please try this inside the rest method
SailPointContext context = SailPointFactory.getCurrentContext();
Your email address will not be published. Required fields are marked *
Remember Me
Not a member yet? Register now
I accept the Terms of Service
Are you a member? Login now
Combo offer | Sailpoint IIQ & Okta courses in just Rs13400. Limited offer. Pay with razorpay link : https://rzp.io/i/J5Lh12nu contact us: cybercourses4u@gmail.com Dismiss
2 Comments
package sailpoint.rest;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import sailpoint.rest.BaseResource;
import sailpoint.tools.GeneralException;
import sailpoint.object.ManagedAttribute;
import java.util.ArrayList;
import java.util.*;
import sailpoint.api.SailPointContext;
import sailpoint.api.SailPointFactory;
import sailpoint.object.*;
import sailpoint.tools.Util;
import java.lang.*;
@Path(“custom”)
public class EntitlementResource extends BaseResource{
public static SailPointContext context;
@GET
@Path(“entitlementid”)
public String getEntitlementId() throws GeneralException {
Application app = context.getObjectById(Application.class,”c0a80068798015e0817984cf7c610630″);
String name = app.getName();
return name;
}
}
/***********/ Please find the above code but instead of the Application name in return , I am getting the below response./**********/
if(window.PrimeFaces){PrimeFaces.settings.locale=’en’;}
SailPoint IdentityIQ – System Exception
if(window.PrimeFaces){PrimeFaces.settings.locale=’en’;}
ui-button
$(function(){PrimeFaces.cw(“CommandButton”,”widget_navigationForm_backBtn”,{id:”navigationForm:backBtn”});});
ui-button
$(function(){PrimeFaces.cw(“CommandButton”,”widget_navigationForm_homeBtn”,{id:”navigationForm:homeBtn”});});
function skipNavigation() {
$(‘#mainContent’).focus();
}
Skip to Content
Home
My Work
menu. Press ENTER or space to access submenu. To move through items press up or down arrow.
My Access Reviews
Access Requests
Policy Violations
Work Items
System Exception
The system has encountered a serious error while
processing your request. Report the following incident code to your
system administrator: 234
© Copyright 2020 SailPoint Technologies – All rights reserved.
Ext.onReady( function() {
if (true) {
Ext.defer(SailPoint.Utils.checkUnsupportedBrowser, 500);
}
});
It seems problem is in getting the context. Could you please try this inside the rest method
SailPointContext context = SailPointFactory.getCurrentContext();