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.SailPointContext
getContext()
sailpoint.object.Identity
getLoggedInUser()
List<sailpoint.object.Capability>
getLoggedInUserCapabilities()
String
getLoggedInUserName()
Collection<String>
getLoggedInUserRights()
String
getPluginName()
boolean
getSettingBool(String settingName)
int
getSettingInt(String settingName)
String
getSettingString(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:
getContext
in interfacesailpoint.web.UserContext
- Overrides:
getContext
in classsailpoint.rest.BaseResource
- See Also:
BaseResource.getContext()
-
getLoggedInUser
public sailpoint.object.Identity getLoggedInUser() throws sailpoint.tools.GeneralException
- Specified by:
getLoggedInUser
in interfacesailpoint.web.UserContext
- Overrides:
getLoggedInUser
in classsailpoint.rest.BaseResource
- Throws:
sailpoint.tools.GeneralException
- See Also:
BaseResource.getLoggedInUser()
-
getLoggedInUserCapabilities
public List<sailpoint.object.Capability> getLoggedInUserCapabilities()
- Specified by:
getLoggedInUserCapabilities
in interfacesailpoint.web.UserContext
- Overrides:
getLoggedInUserCapabilities
in classsailpoint.rest.BaseResource
- See Also:
BaseResource.getLoggedInUserCapabilities()
-
getLoggedInUserName
public String getLoggedInUserName() throws sailpoint.tools.GeneralException
- Specified by:
getLoggedInUserName
in interfacesailpoint.web.UserContext
- Overrides:
getLoggedInUserName
in classsailpoint.rest.BaseResource
- Throws:
sailpoint.tools.GeneralException
- See Also:
BaseResource.getLoggedInUserName()
-
getLoggedInUserRights
public Collection<String> getLoggedInUserRights()
- Specified by:
getLoggedInUserRights
in interfacesailpoint.web.UserContext
- Overrides:
getLoggedInUserRights
in classsailpoint.rest.BaseResource
- See Also:
BaseResource.getLoggedInUserRights()
-
getPluginName
public String getPluginName()
- Specified by:
getPluginName
in interfacesailpoint.plugin.PluginContext
- Specified by:
getPluginName
in classsailpoint.rest.plugin.BasePluginResource
- See Also:
BasePluginResource.getPluginName()
-
getSettingBool
public boolean getSettingBool(String settingName)
- Specified by:
getSettingBool
in interfacesailpoint.plugin.PluginContext
- See Also:
PluginContext.getSettingBool(String)
-
getSettingInt
public int getSettingInt(String settingName)
- Specified by:
getSettingInt
in interfacesailpoint.plugin.PluginContext
- See Also:
PluginContext.getSettingInt(String)
-
getSettingString
public String getSettingString(String settingName)
- Specified by:
getSettingString
in interfacesailpoint.plugin.PluginContext
- See Also:
PluginContext.getSettingString(String)
-
-