public class ConnectionProcessor
extends com.labvantage.sapphire.BaseAccessor
| Constructor and Description |
|---|
ConnectionProcessor()
Default constructor
|
ConnectionProcessor(java.io.File rakFile)
Constructor for a client application with an existing connection
|
ConnectionProcessor(java.io.File rakFile,
java.lang.String connectionid)
Constructor for a client application with an existing connection
|
ConnectionProcessor(javax.servlet.jsp.PageContext pageContext)
Constructor for a client web application with a page Context and existing connectionid
|
ConnectionProcessor(java.lang.String connectionid)
Constructor for creating an accessor from components
|
ConnectionProcessor(java.lang.String nameserverlist,
java.lang.String connectionid)
Deprecated.
As of version 4.6 replaced by
ConnectionProcessor(String) and ConnectionProcessor(File, String) |
| Modifier and Type | Method and Description |
|---|---|
void |
changePassword(java.lang.String userid,
java.lang.String oldpassword,
java.lang.String newpassword)
Changes a user's password with remote access
|
void |
changePassword(java.lang.String databaseid,
java.lang.String userid,
java.lang.String oldpassword,
java.lang.String newpassword)
Changes a user's password with local access
|
int |
changePassword(java.lang.String nameserverlist,
java.lang.String databaseid,
java.lang.String userid,
java.lang.String oldpassword,
java.lang.String newpassword)
Deprecated.
As of version 4.6 replaced by
changePassword(String, String, String, String) and changePassword(String, String, String) |
boolean |
checkConnection(java.lang.String connectionid)
Returns true if the connection is valid
|
boolean |
checkUser(java.lang.String sysuserid,
java.lang.String password)
Returns true if it is a valid username/password combination
|
void |
clearConnection(java.lang.String connectionid)
Returns a connection id
|
int |
clearRSets(java.lang.String rsetlist) |
void |
disableUser(java.lang.String sysuserid,
java.lang.String reason)
Disables a user account
|
void |
enableUser(java.lang.String sysuserid)
Enables a user account
|
void |
forceChangePassword(java.lang.String sysuserid)
Forces a user to change password the next time they log in
|
java.lang.String |
getConfigProperty(java.lang.String propertyid)
Returns a system-wide configuration property
|
java.lang.String |
getConfigProperty(java.lang.String propertyid,
java.lang.String defaultValue)
Returns a system-wide configuration property
|
java.lang.String |
getConnectionid(java.io.File rakFile,
java.lang.String userid,
java.lang.String password)
Returns a connection id
|
java.lang.String |
getConnectionid(java.lang.String userid,
java.lang.String password)
Generates and returns a new connectionid with RemoteAccess
|
java.lang.String |
getConnectionid(java.lang.String databaseid,
java.lang.String userid,
java.lang.String password)
Returns a connection id
|
java.lang.String |
getConnectionid(java.lang.String databaseid,
java.lang.String userid,
java.lang.String password,
java.util.HashMap options)
Returns a connection id
|
java.lang.String |
getConnectionid(java.lang.String nameserverlist,
java.lang.String databaseid,
java.lang.String userid,
java.lang.String password)
Deprecated.
As of version 4.6 replaced by
getConnectionid(String, String, String) and getConnectionid(String, String) |
java.lang.String |
getConnectionid(java.lang.String nameserverlist,
java.lang.String databaseid,
java.lang.String userid,
java.lang.String password,
java.util.HashMap options)
Deprecated.
As of version 4.6 replaced by
getConnectionid(String, String, String) and getConnectionid(String, String) |
ConnectionInfo |
getConnectionInfo(java.lang.String connectionid)
Returns the connectioninformation associated with the current user
|
java.lang.String[] |
getDatabaseList()
Returns a list active databases
|
java.lang.String |
getLanguage()
Returns the languageid associated with the current user
|
java.lang.String |
getLicenseProperty(java.lang.String propertyid)
Returns a CCIDHolder class
|
java.util.List |
getModuleList()
Returns a semi-colon separated list of modules the current user has access to
|
java.lang.String |
getProfileProperty(java.lang.String propertyid)
Deprecated.
As of version R5.1 replaced by methods in the ConfigurationProcessor
|
java.util.List |
getRoleList()
Returns a semi-colon separated list of roles for the current user
|
com.labvantage.sapphire.services.SapphireConnection |
getSapphireConnection() |
java.lang.String |
getSysConfigProperty(java.lang.String propertyid)
Returns a system-wide configuration property
|
java.lang.String |
getSysConfigProperty(java.lang.String propertyid,
java.lang.String defaultValue)
Returns a system-wide configuration property
|
boolean |
isMSS()
Returns whether the current connection uses an Microsoft SQLServer
|
boolean |
isOra()
Returns whether the current connection uses an Oracle database
|
boolean |
isValidPassword(java.lang.String userid,
java.lang.String password)
Checks a user's password against the current password policy
|
boolean |
isValidPassword(java.lang.String databaseid,
java.lang.String userid,
java.lang.String password)
Checks a user's password against the current password policy
|
int |
isValidPassword(java.lang.String nameserverlist,
java.lang.String databaseid,
java.lang.String userid,
java.lang.String password)
Deprecated.
As of version 4.6 replaced by
isValidPassword(String, String, String, String) and isValidPassword(String, String, String) |
void |
prepareToDeleteConnection(java.lang.String connectionid) |
createRemoteAccessKey, getAttachmentManager, getAutomationManager, getConfigurationManager, getConnectionid, getErrorCodeList, getErrorCodeStack, getErrorHandler, getErrorStack, getErrorStack, getErrorString, getInfoErrorString, getLastError, getLastErrorCode, getLastErrorMessage, getLastException, getLocalAccessManager, getNameserverlist, getQueryManager, getRemoteAccessManager, getRequestManager, getStatusManager, getWebAdminManager, hasErrors, hasInfoErrors, parseServiceExceptionMsg, resetConnectionid, resetErrorStack, setConnectionDetails, setConnectionid, setError, setError, setErrorString, setInfoErrorString, setJNDIPrefix, setLocal, setLocalJNDIPrefix, setRakFilepublic ConnectionProcessor()
public ConnectionProcessor(java.lang.String connectionid)
connectionid - The connection to use for component callspublic ConnectionProcessor(java.lang.String nameserverlist,
java.lang.String connectionid)
ConnectionProcessor(String) and ConnectionProcessor(File, String)nameserverlist - list of the application sever namesconnectionid - A valid connectionidpublic ConnectionProcessor(java.io.File rakFile)
throws SapphireException
rakFile - A remote access key fileSapphireExceptionpublic ConnectionProcessor(java.io.File rakFile,
java.lang.String connectionid)
rakFile - A remote access key fileconnectionid - A valid connectionidpublic ConnectionProcessor(javax.servlet.jsp.PageContext pageContext)
pageContext - The current page contextpublic int changePassword(java.lang.String nameserverlist,
java.lang.String databaseid,
java.lang.String userid,
java.lang.String oldpassword,
java.lang.String newpassword)
changePassword(String, String, String, String) and changePassword(String, String, String)nameserverlist - List of name serversdatabaseid - Sapphire database to connect touserid - Sapphire usernameoldpassword - Old sapphire passwordnewpassword - New sapphire passwordpublic void changePassword(java.lang.String databaseid,
java.lang.String userid,
java.lang.String oldpassword,
java.lang.String newpassword)
throws SapphireException
databaseid - Sapphire database to connect touserid - Sapphire usernameoldpassword - Old sapphire passwordnewpassword - New sapphire passwordSapphireExceptionpublic void changePassword(java.lang.String userid,
java.lang.String oldpassword,
java.lang.String newpassword)
throws SapphireException
userid - Sapphire usernameoldpassword - Old sapphire passwordnewpassword - New sapphire passwordSapphireExceptionpublic int isValidPassword(java.lang.String nameserverlist,
java.lang.String databaseid,
java.lang.String userid,
java.lang.String password)
isValidPassword(String, String, String, String) and isValidPassword(String, String, String)nameserverlist - List of name serversdatabaseid - Sapphire database to connect touserid - Sapphire usernamepassword - Sapphire passwordpublic boolean isValidPassword(java.lang.String databaseid,
java.lang.String userid,
java.lang.String password)
throws SapphireException
databaseid - Sapphire database to connect touserid - Sapphire usernamepassword - Sapphire passwordSapphireExceptionpublic boolean isValidPassword(java.lang.String userid,
java.lang.String password)
throws SapphireException
userid - Sapphire usernamepassword - Sapphire passwordSapphireExceptionpublic java.lang.String getConnectionid(java.lang.String userid,
java.lang.String password)
throws SapphireException
userid - Sapphire usernamepassword - Sapphire passwordSapphireExceptionpublic java.lang.String getConnectionid(java.lang.String nameserverlist,
java.lang.String databaseid,
java.lang.String userid,
java.lang.String password)
getConnectionid(String, String, String) and getConnectionid(String, String)nameserverlist - List of name serversdatabaseid - Sapphire database to connect touserid - Sapphire usernamepassword - Sapphire passwordpublic java.lang.String getConnectionid(java.io.File rakFile,
java.lang.String userid,
java.lang.String password)
throws SapphireException
rakFile - A remote access key fileuserid - Sapphire usernamepassword - Sapphire passwordSapphireExceptionpublic java.lang.String getConnectionid(java.lang.String nameserverlist,
java.lang.String databaseid,
java.lang.String userid,
java.lang.String password,
java.util.HashMap options)
getConnectionid(String, String, String) and getConnectionid(String, String)nameserverlist - List of name serversdatabaseid - Sapphire database to connect touserid - Sapphire usernamepassword - Sapphire passwordoptions - Extended options for connectingpublic java.lang.String getConnectionid(java.lang.String databaseid,
java.lang.String userid,
java.lang.String password)
databaseid - Sapphire database to connect touserid - Sapphire usernamepassword - Sapphire passwordpublic java.lang.String getConnectionid(java.lang.String databaseid,
java.lang.String userid,
java.lang.String password,
java.util.HashMap options)
databaseid - Sapphire database to connect touserid - Sapphire usernamepassword - Sapphire passwordoptions - Extended options for connectingpublic void clearConnection(java.lang.String connectionid)
connectionid - Sapphire connectionidpublic void prepareToDeleteConnection(java.lang.String connectionid)
public java.lang.String[] getDatabaseList()
public boolean checkUser(java.lang.String sysuserid,
java.lang.String password)
sysuserid - Sapphire userpassword - The password for the userpublic boolean checkConnection(java.lang.String connectionid)
connectionid - Sapphire connectionidpublic int clearRSets(java.lang.String rsetlist)
rsetlist - public java.lang.String getLicenseProperty(java.lang.String propertyid)
propertyid - Sapphire connectionidpublic void disableUser(java.lang.String sysuserid,
java.lang.String reason)
sysuserid - User to disablereason - Reason for user being disabledpublic void enableUser(java.lang.String sysuserid)
sysuserid - User to disablepublic void forceChangePassword(java.lang.String sysuserid)
sysuserid - User to request password change forpublic java.lang.String getProfileProperty(java.lang.String propertyid)
propertyid - Profile property to look forpublic boolean isOra()
public boolean isMSS()
public java.util.List getRoleList()
public java.util.List getModuleList()
public java.lang.String getLanguage()
public com.labvantage.sapphire.services.SapphireConnection getSapphireConnection()
public ConnectionInfo getConnectionInfo(java.lang.String connectionid)
connectionid - Conenctionidpublic java.lang.String getConfigProperty(java.lang.String propertyid)
propertyid - the propertyidpublic java.lang.String getConfigProperty(java.lang.String propertyid,
java.lang.String defaultValue)
propertyid - the propertyiddefaultValue - the default valuepublic java.lang.String getSysConfigProperty(java.lang.String propertyid)
propertyid - the propertyidpublic java.lang.String getSysConfigProperty(java.lang.String propertyid,
java.lang.String defaultValue)
propertyid - the propertyiddefaultValue - the default value