com.jalios.jcms.ajax
Class JcmsJSONUtil

java.lang.Object
  extended by com.jalios.jcms.ajax.JcmsJSONUtil

public class JcmsJSONUtil
extends Object

This class provides AJAX access for utility methods.

Since:
jcms-6.0.0
Author:
Olivier Dedieu

Field Summary
static String REVISION
           
 
Constructor Summary
JcmsJSONUtil()
           
 
Method Summary
static String checkJDBCConnection(String jcmsdb, String url, String user, String password)
          Check a JDBC connection.
static boolean checkLDAPConnection(String hostname, String port, String isSSL, String bindDN, String bindPassword)
          Check a LDAP connection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REVISION

public static final String REVISION
See Also:
Constant Field Values
Constructor Detail

JcmsJSONUtil

public JcmsJSONUtil()
Method Detail

checkJDBCConnection

public static String checkJDBCConnection(String jcmsdb,
                                         String url,
                                         String user,
                                         String password)
Check a JDBC connection.

Parameters:
jcmsdb - the database model (eg mysql, oracle, ...)
url - a database url of the form jdbc:subprotocol:subname
user - the database user on whose behalf the connection is being made
password - the user's password
Returns:
true if the connection has succeeded.
Since:
jcms-6.0.0

checkLDAPConnection

public static boolean checkLDAPConnection(String hostname,
                                          String port,
                                          String isSSL,
                                          String bindDN,
                                          String bindPassword)
Check a LDAP connection.

Parameters:
hostname - the hostname of the ldap server to connect to.
port - the port of the ldap server to connect to.
isSSL - whether the connection should be made using SSL.
bindDN - the Distinguished Name to use to bind to the ldap server to connect to.
bindPassword - the password to use to bind to the ldap server to connect to.
Returns:
true if the connection was successful, false if an error occured
Since:
jcms-6.0.0


Copyright © 2001-2007 Jalios SA. All Rights Reserved.