Class DummyPluginResource
- java.lang.Object
 - 
- sailpoint.rest.BaseResource
 - 
- sailpoint.rest.BaseListResource
 - 
- sailpoint.rest.plugin.BasePluginResource
 - 
- com.identityworksllc.iiq.common.auth.DummyPluginResource
 
 
 
 
 
- 
- All Implemented Interfaces:
 sailpoint.plugin.PluginContext,sailpoint.web.UserContext
public class DummyPluginResource extends sailpoint.rest.plugin.BasePluginResource implements sailpoint.web.UserContext, sailpoint.plugin.PluginContext
Creates a fake plugin context for use outside of a plugin. 
- 
- 
Field Summary
- 
Fields inherited from class sailpoint.rest.BaseListResource
CALCULATED_COLUMN_PREFIX, colKey, exclude, excludedIds, filters, groupBy, limit, PARAM_COL_KEY, PARAM_DIR, PARAM_EXCLUDED_IDS, PARAM_GROUP_BY, PARAM_LIMIT, PARAM_QUERY, PARAM_SELECT_ALL, PARAM_SELECTED, PARAM_SORT, PARAM_START, query, selectAll, selectedIds, sortBy, sortDirection, STANDARD_PARAMS, start 
 - 
 
- 
Constructor Summary
Constructors Constructor Description DummyPluginResource(sailpoint.api.SailPointContext context, sailpoint.object.Identity loggedInUser, String pluginName)Constructs a new DummyPluginResource with the given auth data 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description sailpoint.api.SailPointContextgetContext()sailpoint.object.IdentitygetLoggedInUser()List<sailpoint.object.Capability>getLoggedInUserCapabilities()StringgetLoggedInUserName()Collection<String>getLoggedInUserRights()StringgetPluginName()booleangetSettingBool(String settingName)intgetSettingInt(String settingName)StringgetSettingString(String settingName)- 
Methods inherited from class sailpoint.rest.plugin.BasePluginResource
authorize, getConnection, prepareStatement 
- 
Methods inherited from class sailpoint.rest.BaseListResource
calculateColumn, calculateColumns, convertColumn, convertObject, convertObject, convertRow, convertRow, countResults, fixSortBy, getColKey, getColumnKey, getColumns, getExcludedIds, getFilters, getGroupBy, getLimit, getListResult, getListResultFromObjects, getListResultFromObjects, getOtherQueryParams, getProjectionColumns, getQuery, getQueryOptions, getQueryOptions, getRawResults, getResults, getSelectAll, getSelectedIds, getSelectionQuery, getSingleFormValue, getSortBy, getSortDirection, getSorters, getStart, handleOrdering, init, objectToMap, parseSorters, processForm, setColKey, setExcludedIds, setFilters, setGroupBy, setLimit, setQuery, setSelectAll, setSelectedIds, setSortBy, setSortDirection, setStart, trimAndSortResults 
- 
Methods inherited from class sailpoint.rest.BaseResource
convertIdentity, createListResult, createListResult, decodeRestUriComponent, decodeRestUriComponent, fixCSV, getContext, getCredentials, getHandler, getHandler, getLocale, getLoggedInUserDynamicScopeNames, getMatchedUri, getNotary, getQueryParamMap, getRequest, getSession, getSignature, getSignatureAccountId, getUserTimeZone, isAuthorized, isMobileLogin, isObjectInUserScope, isObjectInUserScope, isPreAuth, isScopingEnabled, isSsoAuthenticated, localize, makeJsonSafeKeys, parseDateRange, reportDetailedLoginErrors, saveSignatureAccountId, setPreAuth, throwWebApplicationException 
- 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait 
 - 
 
 - 
 
- 
- 
Constructor Detail
- 
DummyPluginResource
public DummyPluginResource(sailpoint.api.SailPointContext context, sailpoint.object.Identity loggedInUser, String pluginName)
Constructs a new DummyPluginResource with the given auth data- Parameters:
 context- The SailPointContext to return fromBaseResource.getContext()loggedInUser- The Identity to return from various getLoggedIn… methodspluginName- The name of the plugin
 
 - 
 
- 
Method Detail
- 
getContext
public sailpoint.api.SailPointContext getContext()
- Specified by:
 getContextin interfacesailpoint.web.UserContext- Overrides:
 getContextin classsailpoint.rest.BaseResource- See Also:
 BaseResource.getContext()
 
- 
getLoggedInUser
public sailpoint.object.Identity getLoggedInUser() throws sailpoint.tools.GeneralException
- Specified by:
 getLoggedInUserin interfacesailpoint.web.UserContext- Overrides:
 getLoggedInUserin classsailpoint.rest.BaseResource- Throws:
 sailpoint.tools.GeneralException- See Also:
 BaseResource.getLoggedInUser()
 
- 
getLoggedInUserCapabilities
public List<sailpoint.object.Capability> getLoggedInUserCapabilities()
- Specified by:
 getLoggedInUserCapabilitiesin interfacesailpoint.web.UserContext- Overrides:
 getLoggedInUserCapabilitiesin classsailpoint.rest.BaseResource- See Also:
 BaseResource.getLoggedInUserCapabilities()
 
- 
getLoggedInUserName
public String getLoggedInUserName() throws sailpoint.tools.GeneralException
- Specified by:
 getLoggedInUserNamein interfacesailpoint.web.UserContext- Overrides:
 getLoggedInUserNamein classsailpoint.rest.BaseResource- Throws:
 sailpoint.tools.GeneralException- See Also:
 BaseResource.getLoggedInUserName()
 
- 
getLoggedInUserRights
public Collection<String> getLoggedInUserRights()
- Specified by:
 getLoggedInUserRightsin interfacesailpoint.web.UserContext- Overrides:
 getLoggedInUserRightsin classsailpoint.rest.BaseResource- See Also:
 BaseResource.getLoggedInUserRights()
 
- 
getPluginName
public String getPluginName()
- Specified by:
 getPluginNamein interfacesailpoint.plugin.PluginContext- Specified by:
 getPluginNamein classsailpoint.rest.plugin.BasePluginResource- See Also:
 BasePluginResource.getPluginName()
 
- 
getSettingBool
public boolean getSettingBool(String settingName)
- Specified by:
 getSettingBoolin interfacesailpoint.plugin.PluginContext- See Also:
 PluginContext.getSettingBool(String)
 
- 
getSettingInt
public int getSettingInt(String settingName)
- Specified by:
 getSettingIntin interfacesailpoint.plugin.PluginContext- See Also:
 PluginContext.getSettingInt(String)
 
- 
getSettingString
public String getSettingString(String settingName)
- Specified by:
 getSettingStringin interfacesailpoint.plugin.PluginContext- See Also:
 PluginContext.getSettingString(String)
 
 - 
 
 -