public interface SailPointContext extends PersistenceManager, RuleRunner, XMLReferenceResolver
PersistenceManager.LockParameters, PersistenceManager.LockPhaseLOCK_NAME, LOCK_TYPE, LOCK_TYPE_PERSISTENT, LOCK_TYPE_TRANSACTION| Modifier and Type | Method and Description |
|---|---|
Identity |
authenticate(java.lang.String accountId,
java.lang.String password)
Authenticate a user with the given accountId and password.
|
java.lang.String |
decrypt(java.lang.String src)
Decrypt an encrypted string.
|
java.lang.String |
encrypt(java.lang.String src)
Encrypt a string.
|
Configuration |
getConfiguration()
Retrieve the system configuration object.
|
java.sql.Connection |
getConnection()
Deprecated.
|
SailPointContext |
getContext()
Return a context derived from this one.
|
java.sql.Connection |
getJdbcConnection()
Return a JDBC Connection to the underlying database.
|
java.lang.Object |
getProperty(java.lang.String name)
Return the property with the given name.
|
boolean |
getScopeResults()
Returns true if query results are being scoped.
|
java.lang.String |
getUserName()
Return the name of the current user of this context.
|
void |
impersonate(Identity identity)
This can be used to impersonate the given identity with respect to the
scoping that is applied.
|
boolean |
isClosed()
Return true if this context has been closed and can no longer be used.
|
void |
prepare()
Method to be called by the SailPointFactory immediately after
creating a context from a prototype.
|
void |
sendEmailNotification(EmailTemplate template,
EmailOptions options)
Send an email notification.
|
void |
setProperty(java.lang.String name,
java.lang.Object value)
Set a context property.
|
void |
setScopeResults(boolean scopeResults)
Set whether the results from search and getObjects methods should
have scoping applied to them based on the controlled scopes of the
user set with
setUserName(String). |
void |
setUserName(java.lang.String name)
Set the name of the current user of this context.
|
attach, clearHighLevelCache, clone, close, commitTransaction, commitTransaction, countObjects, decache, decache, enableStatistics, getObjectById, getObjectByName, getObjects, getObjects, getPersistenceOptions, getPropertyIterator, getPropertyList, getUniqueObject, getUniqueObject, importObject, lockObject, lockObjectById, lockObjectByName, printStatistics, reconnect, releasePersistentLocks, removeObject, removeObjects, requiresJoin, rollbackTransaction, saveObject, search, search, search, search, setPersistenceOptions, startTransaction, unlockObject, updaterunRule, runRule, runScript, runScriptgetReferencedObjectSailPointContext getContext()
void prepare()
java.sql.Connection getJdbcConnection()
throws GeneralException
PersistenceManager.search(java.lang.Class<T>, sailpoint.object.QueryOptions).GeneralException@Deprecated
java.sql.Connection getConnection()
throws GeneralException
getJdbcConnection()GeneralExceptionboolean isClosed()
void setUserName(java.lang.String name)
java.lang.String getUserName()
void impersonate(Identity identity)
identity - The Identity to impersonate for scoping.void setScopeResults(boolean scopeResults)
setUserName(String). This can be
overridden by the QueryOptions that are passed into the searching
methods. Scoping results is disabled by default.scopeResults - Whether results from the search methods should
be scoped.boolean getScopeResults()
Configuration getConfiguration() throws GeneralException
GeneralExceptionjava.lang.String encrypt(java.lang.String src)
throws GeneralException
GeneralExceptionjava.lang.String decrypt(java.lang.String src)
throws GeneralException
GeneralExceptionvoid sendEmailNotification(EmailTemplate template, EmailOptions options) throws GeneralException
EmailException - If there is a problem sending the email.GeneralException - If there is a system error.Identity authenticate(java.lang.String accountId, java.lang.String password) throws GeneralException
Identity if
the following criteria are met:
Identity.accountId - A unique identifier for the user/account to
authenticate.password - The password to use in the authentication credentials.GeneralException - Can be thrown if authentication fails for some
reason (invalid password, account locked), if
an account/user with the given accountId cannot
was not found, or a problem occurs when
auto-creating a user.void setProperty(java.lang.String name,
java.lang.Object value)
java.lang.Object getProperty(java.lang.String name)