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,
ThingAccessUtilsrequires 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.SailPointContextgetContext()Deprecated.Returns the context previously passed to the contructorprotected String[]getCredentials()Deprecated.LocalegetLocale()Deprecated.Returns the default system Localesailpoint.object.IdentitygetLoggedInUser()Deprecated.List<sailpoint.object.Capability>getLoggedInUserCapabilities()Deprecated.StringgetLoggedInUserName()Deprecated.Collection<String>getLoggedInUserRights()Deprecated.StringgetPluginName()Deprecated.Returns the name of the real plugin we are simulatingjavax.servlet.http.HttpServletRequestgetRequest()Deprecated.Not implementedjavax.servlet.http.HttpSessiongetSession()Deprecated.Not implementedTimeZonegetUserTimeZone()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:
 getContextin interfacesailpoint.web.UserContext- Overrides:
 getContextin classsailpoint.rest.BaseResource- Returns:
 - The context
 
 
- 
getCredentials
protected String[] getCredentials()
Deprecated.- Overrides:
 getCredentialsin classsailpoint.rest.BaseResource
 
- 
getLocale
public Locale getLocale()
Deprecated.Returns the default system Locale- Specified by:
 getLocalein interfacesailpoint.web.UserContext- Overrides:
 getLocalein classsailpoint.rest.BaseResource- Returns:
 - The default system locale
 
 
- 
getLoggedInUser
public sailpoint.object.Identity getLoggedInUser()
Deprecated.- Specified by:
 getLoggedInUserin interfacesailpoint.web.UserContext- Overrides:
 getLoggedInUserin classsailpoint.rest.BaseResource
 
- 
getLoggedInUserCapabilities
public List<sailpoint.object.Capability> getLoggedInUserCapabilities()
Deprecated.- Specified by:
 getLoggedInUserCapabilitiesin interfacesailpoint.web.UserContext- Overrides:
 getLoggedInUserCapabilitiesin classsailpoint.rest.BaseResource
 
- 
getLoggedInUserName
public String getLoggedInUserName()
Deprecated.- Specified by:
 getLoggedInUserNamein interfacesailpoint.web.UserContext- Overrides:
 getLoggedInUserNamein classsailpoint.rest.BaseResource
 
- 
getLoggedInUserRights
public Collection<String> getLoggedInUserRights()
Deprecated.- Specified by:
 getLoggedInUserRightsin interfacesailpoint.web.UserContext- Overrides:
 getLoggedInUserRightsin classsailpoint.rest.BaseResource
 
- 
getPluginName
public String getPluginName()
Deprecated.Returns the name of the real plugin we are simulating- Specified by:
 getPluginNamein interfacesailpoint.plugin.PluginContext- Specified by:
 getPluginNamein 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:
 getRequestin classsailpoint.rest.BaseResource- Throws:
 UnsupportedOperationException- on any invocation
 
- 
getSession
public javax.servlet.http.HttpSession getSession()
Deprecated.Not implemented- Overrides:
 getSessionin classsailpoint.rest.BaseResource- Throws:
 UnsupportedOperationException- on any invocation
 
- 
getUserTimeZone
public TimeZone getUserTimeZone()
Deprecated.Returns the default system time zone- Specified by:
 getUserTimeZonein interfacesailpoint.web.UserContext- Overrides:
 getUserTimeZonein classsailpoint.rest.BaseResource- Returns:
 - The default system time zone
 
 
 - 
 
 -