|
|
|
|
|
SaaSAdminConfigureSiteData (Function) In french: SaaSAdminModifieConnexionSite Configures the management of data for a SaaS site. Remarks: - To use this function, a SaaS management session must have been started previously with SaaSAdminConnect.
- The use of this function is reserved to the SaaS administrator. A manager of client accounts cannot use this function.
S is saasSite
CxSite is Connection
S.Name = "Forum"
IF SaaSAdminAddSite(S) = True THEN
CxSite.Server = "localhost"
CxSite.Provider = hAccessHFClientServer
CxSite.User = "admin"
CxSite.MotDePasse = "secret"
CxSite.Database = "BaseForum"
IF SaaSAdminConfigureSiteData(S, saasBaseClient, CxSite) = True THEN
Info("Le site a été créé et correctement configuré.")
END
END
Syntax
<Result> = SaaSAdminConfigureSiteData(<SaaS site> , <Data management mode> [, <Connection parameters>])
<Result>: Boolean - True if the modification was performed,
- False otherwise. To get more details on the error, use ErrorInfo.
<SaaS site>: saasSite variable or character string Site (or name of site) for which the data management must be configured. <Data management mode>: Integer constant Management mode of data, the possible values are: | | saasBaseClient | The site uses a single database shared between all client accounts. | saasBaseCommon | The site uses a database for each client account. This database is created by duplicating a default database. | saasBaseNone | The site is not using any database. |
<Connection parameters>: Optional Connection variable Depending on the management mode: | | No database | <Connection parameter> is not required; it will be ignored if it is specified. | Database for each client account | <Connection Parameter> indicates the parameters for connecting to the default database. | Common database | <Connection Parameter> indicates the parameters for connecting to the common database. |
Remarks If the site has already been configured with a base management system (e.g. one base per customer), it is not advisable to change this management system. Indeed, the configuration of data is not retroactive. The clients who are already subscribers will keep their database. To modify the connection parameters retroactively, the data management must be modified for each client by SaaSAdminModifyClientConnection. For a management mode with one database per client, the databases will be automatically created on the same server as the reference database. Their name will be built from the site name and the customer name (for example: ECommerce_Hybrid). A user dedicated to the use of the database by the client will be created.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|