|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IReportLogon
The IReportLogon interface contains logon information for a database the report must retrieve
data from. It consists of the following methods that provide such information. The
IReportLogon interface is most frequently used with the IReportProcessingInfo
interface.
IReportProcessingInfo| Nested Class Summary | |
|---|---|
static interface |
IReportLogon.CeReportLogonMode
Specifies the report logon mode |
static interface |
IReportLogon.CeReportServerType
Specifies the Report Database Server Type. |
| Method Summary | |
|---|---|
ConnectionInfo |
getConnectionInfo()
Returns an equivalent ConnectionInfo object that is compatible with the Crystal
Reports Web viewer. |
java.lang.String |
getCustomDatabaseDLLName()
Returns the custom database dll name required for logon. |
java.lang.String |
getCustomDatabaseName()
Returns the custom database name. |
java.lang.String |
getCustomServerName()
Returns the custom name of the server which hosts the database. |
int |
getCustomServerType()
Returns custom database server type from the report. |
java.lang.String |
getCustomUserName()
Returns the custom user name required to logon to the database server. |
java.lang.String |
getDatabaseDLLName()
Returns original database dll name from the report. |
java.lang.String |
getDatabaseName()
Returns the name of the database. |
java.lang.String |
getDatabaseServerType()
Returns the type of the database server, when the Connection Server is used. |
java.lang.String |
getEncryptedCustomPassword()
Returns the custom password required to logon to the database server. |
java.lang.String |
getEncryptedPassword()
Returns the password required to logon to the database server. |
java.lang.String |
getNetworkLayer()
Returns the network layer that is used to communication with the database, when the Connection Server is used. |
int |
getReportLogonMode()
Returns the report logon mode to be used for this connection |
ISDKSet |
getReportTablePrefixes()
Returns a collection of table prefix mappings that allows the user to define a new table location prefix for every table in the custom DB section. |
java.lang.String |
getServerName()
Returns the name of the server which hosts the database. |
int |
getServerType()
Returns original database server type from the report. |
java.lang.String |
getSubReportName()
Returns the sub report name that this logon information applies to. |
java.lang.String |
getUserName()
Returns the user name required to logon to the database server. |
boolean |
isCustomizable()
Indicates whether this logon's database information is customizable or not. |
boolean |
isCustomPasswordNotEmpty()
Returns a boolean indicating whether the custom password is set and not empty. |
boolean |
isCustomPasswordSet()
Returns a boolean indicating whether the custom password is set. |
boolean |
isOLAPDataSource()
Returns whether or not original data source is a OLAP data source. |
boolean |
isOriginalDataSource()
Returns whether or not original data source should be used. |
boolean |
isPasswordNotEmpty()
Returns a boolean indicating whether the password is set and not empty. |
boolean |
isPasswordSet()
Returns a boolean indicating whether the password is set. |
boolean |
isPromptOnDemandViewing()
Returns whether the logon information should be prompted for when viewing on-demand reports. |
boolean |
isSSOEnabled()
Returns a boolean that indicates whether single sign-on authentication (SSO) is enabled. |
void |
setCustomDatabaseDLLName(java.lang.String DllName)
Sets the custom database dll name required for logon. |
void |
setCustomDatabaseName(java.lang.String DatabaseName)
Sets the custom database name. |
void |
setCustomPassword(java.lang.String Password)
Sets the custom password needed to logon to the database server. |
void |
setCustomServerName(java.lang.String ServerName)
Sets the custom server name required to logon to the database server. |
void |
setCustomServerType(int serverType)
Sets the custom server type for the report. |
void |
setCustomUserName(java.lang.String UserName)
Sets the custom user name required to logon to the database server. |
void |
setDatabaseName(java.lang.String DatabaseName)
Sets the name of the database. |
void |
setDatabaseServerType(java.lang.String databaseServerType)
Sets the type of the database server, when the Connection Server is used. |
void |
setNetworkLayer(java.lang.String networkLayer)
Sets the network layer that is used to communication with the database, when the Connection Server is used. |
void |
setOriginalDataSource(boolean bUseOriginalDS)
Sets whether or not the original data source should be used. |
void |
setPassword(java.lang.String Password)
Sets the password needed to logon to the database server. |
void |
setPromptOnDemandViewing(boolean promptOnDemand)
Sets whether the logon information should be prompted for when viewing on-demand reports. |
void |
setReportLogonMode(int value)
Sets the report logon mode to be used for this connection |
void |
setServerName(java.lang.String ServerName)
Sets the name of the server which hosts the database. |
void |
setSSOEnabled(boolean value)
Sets a boolean that indicates whether single sign-on authentication (SSO) is enabled. |
void |
setSubReportName(java.lang.String SubRptName)
Deprecated. |
void |
setUserName(java.lang.String UserName)
Sets the user name required to logon to the database server. |
boolean |
shouldDisplayOriginalConfiguration()
For internal use only |
| Method Detail |
|---|
java.lang.String getDatabaseName()
throws SDKException
Returns the name of the database.
String containing the database name.
SDKException - This is thrown if the process is unsuccessful.void setDatabaseName(java.lang.String DatabaseName)
Sets the name of the database. This property is part of the key that maps an IReportLogon to a connection in the report. Changing this property is dangerous and not recommended.
DatabaseName - A String containing the database name.void setPassword(java.lang.String Password)
Sets the password needed to logon to the database server.
Password - A String specifying the password needed to logon to the database
server.
boolean isPromptOnDemandViewing()
throws SDKException
Returns whether the logon information should be prompted for when viewing on-demand reports.
true if logon information should be prompted when viewing on demand.
SDKException - This is thrown if the process is unsuccessful.void setPromptOnDemandViewing(boolean promptOnDemand)
Sets whether the logon information should be prompted for when viewing on-demand reports.
promptOnDemand - true if logon information should be prompted for when viewing on demand.
java.lang.String getServerName()
throws SDKException
Returns the name of the server which hosts the database.
String containing the server name.
SDKException - This is thrown if the process is unsuccessful.void setServerName(java.lang.String ServerName)
Sets the name of the server which hosts the database. This property is part of the key that maps an IReportLogon to a connection in the report. Changing this property is dangerous and not recommended.
ServerName - A String specifying the server name.
java.lang.String getSubReportName()
throws SDKException
Returns the sub report name that this logon information applies to. Note, this is not the name of the main report. It is the name of the subreport that the logon information applies to.
Note: If the logon information applies to the main report, the return value will be an empty string.
String containing the sub report name.
SDKException - This is thrown if the process is unsuccessful.void setSubReportName(java.lang.String SubRptName)
Sets the sub report name that this logon information applies to. Note, this is not the name of the main report.
SubRptName - A String containing the sub report name.
java.lang.String getUserName()
throws SDKException
Returns the user name required to logon to the database server.
String containing the user name required to logon to the database
server.
SDKException - This is thrown if the process is unsuccessful.void setUserName(java.lang.String UserName)
Sets the user name required to logon to the database server.
bstrUserName - A String containing the user name required to logon to
the database.
int getServerType()
throws SDKException
Returns original database server type from the report.
int containing original database server type, this will be of type CeReportServerType
SDKException - This is thrown if the process is unsuccessful.IReportLogon.CeReportServerType
java.lang.String getDatabaseDLLName()
throws SDKException
Returns original database dll name from the report.
String containing the original database dll name from the report.
SDKException - This is thrown if the process is unsuccessful.IReportLogon.CeReportServerType
java.lang.String getCustomServerName()
throws SDKException
Returns the custom name of the server which hosts the database.
String containing the custom server name.
SDKException - This is thrown if the process is unsuccessful.
void setCustomServerName(java.lang.String ServerName)
throws SDKException
Sets the custom server name required to logon to the database server.
ServerName - A String containing the custom server name required to logon to
the database.
SDKException - This is thrown if data source is not customizable.
java.lang.String getNetworkLayer()
throws SDKException
Returns the network layer that is used to communication with the database, when the Connection Server is used.
String representing the network layer.
SDKException - This is thrown if the process is unsuccessful.com.crystaldecisions.sdk.plugin.desktop.common.IReportLogon.CeNetworkLayer
void setNetworkLayer(java.lang.String networkLayer)
throws SDKException
Sets the network layer that is used to communication with the database, when the Connection Server is used.
networkLayer - A String representing the network layer.
SDKException - This is thrown if the process is unsuccessful.com.crystaldecisions.sdk.plugin.desktop.common.IReportLogon.CeNetworkLayer
java.lang.String getDatabaseServerType()
throws SDKException
Returns the type of the database server, when the Connection Server is used.
String representing the database server type.
SDKException - This is thrown if the process is unsuccessful.com.crystaldecisions.sdk.plugin.desktop.common.IReportLogon.CeDatabaseServerType
void setDatabaseServerType(java.lang.String databaseServerType)
throws SDKException
Sets the type of the database server, when the Connection Server is used.
databaseServerType - A String representing the database server type.
SDKException - This is thrown if the process is unsuccessful.com.crystaldecisions.sdk.plugin.desktop.common.IReportLogon.CeDatabaseServerType
java.lang.String getCustomDatabaseName()
throws SDKException
Returns the custom database name.
String containing the custom database name.
SDKException - This is thrown if the process is unsuccessful.
void setCustomDatabaseName(java.lang.String DatabaseName)
throws SDKException
Sets the custom database name.
DatabaseName - A String containing database name.
SDKException - This is thrown if data source is not customizable.
java.lang.String getCustomUserName()
throws SDKException
Returns the custom user name required to logon to the database server.
String containing the custom user name required to
logon to the database server.
SDKException - This is thrown if the process is unsuccessful.
void setCustomUserName(java.lang.String UserName)
throws SDKException
Sets the custom user name required to logon to the database server.
UserName - A int containing the custom user name required
to logon to the database.
SDKException - This is thrown if data source is not customizable.
void setCustomPassword(java.lang.String Password)
throws SDKException
Sets the custom password needed to logon to the database server.
Password - A String specifying the custom password needed
to logon to the database server.
SDKException - This is thrown if data source is not customizable.
int getCustomServerType()
throws SDKException
Returns custom database server type from the report.
CeReportServerType containing database server type for the report.
SDKException - This is thrown if the process is unsuccessful.IReportLogon.CeReportServerType
ConnectionInfo getConnectionInfo()
throws SDKException
Returns an equivalent ConnectionInfo object that is compatible with the Crystal
Reports Web viewer.
ConnectionInfo object.
SDKException - This is thrown if the process is unsuccessful.
void setCustomServerType(int serverType)
throws SDKException
Sets the custom server type for the report.
serverType - A int containing the custom server for the report.
SDKException - This is thrown if any error occurs during the data translation process.
java.lang.String getCustomDatabaseDLLName()
throws SDKException
Returns the custom database dll name required for logon.
String containing the custom database dll name required to logon.
SDKException - This is thrown if the data source is not customizable.IReportLogon.CeReportServerType
void setCustomDatabaseDLLName(java.lang.String DllName)
throws SDKException
Sets the custom database dll name required for logon.
DllName - A String containing the custom database dll name
required for logon.
SDKException - This is thrown if data source is OLAP.
boolean isOriginalDataSource()
throws SDKException
Returns whether or not original data source should be used.
true original data source should be used.
SDKException - This is thrown if the process is unsuccessful.
void setOriginalDataSource(boolean bUseOriginalDS)
throws SDKException
Sets whether or not the original data source should be used.
bUseOriginalDS - true if original data source should be used.
SDKException - This is thrown if data source is not customizable.
boolean isOLAPDataSource()
throws SDKException
Returns whether or not original data source is a OLAP data source.
true if original data source is OLAP data source.
SDKException - This is thrown if the process is unsuccessful.
ISDKSet getReportTablePrefixes()
throws SDKException
Returns a collection of table prefix mappings that allows the user to define a new table location prefix for every table in the custom DB section.
IReportTablePrefix objects, each of which contain database mapping information.
SDKException - This is thrown if the process is unsuccessful.IReportTablePrefix
boolean isCustomizable()
throws SDKException
Indicates whether this logon's database information is customizable or not. Logon information is customizable if it does not refer to an OLAP data source or a metadata data source.
true if this logon database info is customizable. false otherwise.
SDKException - if the property SI_ISCUSTOMIZABLE is not found in the bag
boolean isPasswordSet()
throws SDKException
Returns a boolean indicating whether the password is set.
true if the password is set, false otherwise.
SDKException - This is thrown if the process is unsuccessful.
boolean isPasswordNotEmpty()
throws SDKException
Returns a boolean indicating whether the password is set and not empty.
true if the password is set and not empty, false otherwise.
SDKException - This is thrown if the process is unsuccessful.
boolean isCustomPasswordSet()
throws SDKException
Returns a boolean indicating whether the custom password is set.
true if the password is set, false otherwise.
SDKException - This is thrown if the process is unsuccessful.
boolean isCustomPasswordNotEmpty()
throws SDKException
Returns a boolean indicating whether the custom password is set and not empty.
true if the custom password is set and not empty, false otherwise.
SDKException - This is thrown if the process is unsuccessful.
boolean isSSOEnabled()
throws SDKException
Returns a boolean that indicates whether single sign-on authentication (SSO) is enabled.
true if SSO is enabled, and false otherwise.
SDKException - This is thrown if the process is unsuccessful.void setSSOEnabled(boolean value)
Sets a boolean that indicates whether single sign-on authentication (SSO) is enabled.
Set to true to enable SSO.
value - A boolean that indicates whether SSO is enabled.
java.lang.String getEncryptedPassword()
throws SDKException
Returns the password required to logon to the database server.
String containing the (encrypted) password required to
logon to the database server.
SDKException - This is thrown if the process is unsuccessful.
java.lang.String getEncryptedCustomPassword()
throws SDKException
Returns the custom password required to logon to the database server.
String containing the (encrypted) custom password required to
logon to the database server.
SDKException - This is thrown if the process is unsuccessful.int getReportLogonMode()
Returns the report logon mode to be used for this connection
int containing the report logon mode
void setReportLogonMode(int value)
throws SDKException
Sets the report logon mode to be used for this connection
value - An int containing the report logon mode
SDKException - This is thrown if the process is unsuccessful.boolean shouldDisplayOriginalConfiguration()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||