|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
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.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 |
getDatabaseName()
Returns the name of the database. |
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)
Deprecated. |
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 |
setServerName(java.lang.String ServerName)
Deprecated. |
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. |
| Method Detail |
public 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.public void setDatabaseName(java.lang.String DatabaseName)
Sets the name of the database.
DatabaseName - A String containing the database name.public 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.
public 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.public 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.
public 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.public void setServerName(java.lang.String ServerName)
Sets the name of the server which hosts the database.
ServerName - A String specifying the server name.
public 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.public 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.
public 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.public void setUserName(java.lang.String UserName)
Sets the user name required to logon to the database server.
public 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
public 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.
public 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.
public 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.
public 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.
public 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.
public 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.
public 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.
public 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
public 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.
public 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.
public 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
public 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.
public 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.
public 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.
public 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.
public 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
public 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
public 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.
public 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.
public 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.
public 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.
public 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.public 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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||