Class MockPluginContext
- java.lang.Object
-
- sailpoint.rest.BaseResource
-
- sailpoint.rest.BaseListResource
-
- sailpoint.rest.plugin.BasePluginResource
-
- com.identityworksllc.iiq.common.plugin.MockPluginContext
-
- All Implemented Interfaces:
sailpoint.plugin.PluginContext
,sailpoint.web.UserContext
@Deprecated public class MockPluginContext extends sailpoint.rest.plugin.BasePluginResource
Deprecated.A mock plugin resource to use in any situation where an API requires one but your code is not running in a plugin context.This must be associated with a real plugin (by name).
In particular,
ThingAccessUtils
requires a plugin context, which this can provide.
-
-
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 MockPluginContext(sailpoint.api.SailPointContext context, sailpoint.object.Identity loggedInUser, String pluginName)
Deprecated.Constructor for the mock plugin context
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description sailpoint.api.SailPointContext
getContext()
Deprecated.Returns the context previously passed to the contructorprotected String[]
getCredentials()
Deprecated.Locale
getLocale()
Deprecated.Returns the default system Localesailpoint.object.Identity
getLoggedInUser()
Deprecated.List<sailpoint.object.Capability>
getLoggedInUserCapabilities()
Deprecated.String
getLoggedInUserName()
Deprecated.Collection<String>
getLoggedInUserRights()
Deprecated.String
getPluginName()
Deprecated.Returns the name of the real plugin we are simulatingjavax.servlet.http.HttpServletRequest
getRequest()
Deprecated.Not implementedjavax.servlet.http.HttpSession
getSession()
Deprecated.Not implementedTimeZone
getUserTimeZone()
Deprecated.Returns the default system time zone-
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, getHandler, getHandler, getLoggedInUserDynamicScopeNames, getMatchedUri, getNotary, getQueryParamMap, getSignature, getSignatureAccountId, isAuthorized, isMobileLogin, isObjectInUserScope, isObjectInUserScope, isPreAuth, isScopingEnabled, isSsoAuthenticated, localize, makeJsonSafeKeys, parseDateRange, reportDetailedLoginErrors, saveSignatureAccountId, setPreAuth, throwWebApplicationException
-
-
-
-
Constructor Detail
-
MockPluginContext
public MockPluginContext(sailpoint.api.SailPointContext context, sailpoint.object.Identity loggedInUser, String pluginName) throws sailpoint.tools.GeneralException
Deprecated.Constructor for the mock plugin context- Parameters:
context
- The Sailpoint context to useloggedInUser
- The logged in user to simulatepluginName
- The plugin name, which must be real- Throws:
sailpoint.tools.GeneralException
- if any failures occur finding the plugin
-
-
Method Detail
-
getContext
public sailpoint.api.SailPointContext getContext()
Deprecated.Returns the context previously passed to the contructor- Specified by:
getContext
in interfacesailpoint.web.UserContext
- Overrides:
getContext
in classsailpoint.rest.BaseResource
- Returns:
- The context
-
getCredentials
protected String[] getCredentials()
Deprecated.- Overrides:
getCredentials
in classsailpoint.rest.BaseResource
-
getLocale
public Locale getLocale()
Deprecated.Returns the default system Locale- Specified by:
getLocale
in interfacesailpoint.web.UserContext
- Overrides:
getLocale
in classsailpoint.rest.BaseResource
- Returns:
- The default system locale
-
getLoggedInUser
public sailpoint.object.Identity getLoggedInUser()
Deprecated.- Specified by:
getLoggedInUser
in interfacesailpoint.web.UserContext
- Overrides:
getLoggedInUser
in classsailpoint.rest.BaseResource
-
getLoggedInUserCapabilities
public List<sailpoint.object.Capability> getLoggedInUserCapabilities()
Deprecated.- Specified by:
getLoggedInUserCapabilities
in interfacesailpoint.web.UserContext
- Overrides:
getLoggedInUserCapabilities
in classsailpoint.rest.BaseResource
-
getLoggedInUserName
public String getLoggedInUserName()
Deprecated.- Specified by:
getLoggedInUserName
in interfacesailpoint.web.UserContext
- Overrides:
getLoggedInUserName
in classsailpoint.rest.BaseResource
-
getLoggedInUserRights
public Collection<String> getLoggedInUserRights()
Deprecated.- Specified by:
getLoggedInUserRights
in interfacesailpoint.web.UserContext
- Overrides:
getLoggedInUserRights
in classsailpoint.rest.BaseResource
-
getPluginName
public String getPluginName()
Deprecated.Returns the name of the real plugin we are simulating- Specified by:
getPluginName
in interfacesailpoint.plugin.PluginContext
- Specified by:
getPluginName
in classsailpoint.rest.plugin.BasePluginResource
- Returns:
- The name of the plugin provided in the constructor
-
getRequest
public javax.servlet.http.HttpServletRequest getRequest()
Deprecated.Not implemented- Overrides:
getRequest
in classsailpoint.rest.BaseResource
- Throws:
UnsupportedOperationException
- on any invocation
-
getSession
public javax.servlet.http.HttpSession getSession()
Deprecated.Not implemented- Overrides:
getSession
in classsailpoint.rest.BaseResource
- Throws:
UnsupportedOperationException
- on any invocation
-
getUserTimeZone
public TimeZone getUserTimeZone()
Deprecated.Returns the default system time zone- Specified by:
getUserTimeZone
in interfacesailpoint.web.UserContext
- Overrides:
getUserTimeZone
in classsailpoint.rest.BaseResource
- Returns:
- The default system time zone
-
-