Package com.jalios.jcms.ajax
Class JcmsJSONUtil
- java.lang.Object
-
- com.jalios.jcms.ajax.JcmsJSONUtil
-
public class JcmsJSONUtil extends java.lang.ObjectThis class provides AJAX access for utility methods.- Since:
- jcms-6.0.0
- Author:
- Olivier Dedieu
-
-
Constructor Summary
Constructors Constructor Description JcmsJSONUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StringcheckDataSourceConnection(java.lang.String jcmsdb, java.lang.String dataSource)Check a DataSource connection.static java.lang.StringcheckJDBCConnection(java.lang.String jcmsdb, java.lang.String url, java.lang.String user, java.lang.String password)Check a JDBC connection.static booleancheckLDAPConnection(java.lang.String hostname, java.lang.String port, java.lang.String isSSL, java.lang.String bindDN, java.lang.String bindPassword)Check a LDAP connection.static voidtrackRss(java.lang.String channelSource, java.lang.String itemId)process rss tracking event
-
-
-
Method Detail
-
checkJDBCConnection
public static java.lang.String checkJDBCConnection(java.lang.String jcmsdb, java.lang.String url, java.lang.String user, java.lang.String password)Check a JDBC connection.- Parameters:
jcmsdb- the database model (eg mysql, oracle, ...)url- a database url of the form jdbc:subprotocol:subnameuser- the database user on whose behalf the connection is being madepassword- the user's password- Returns:
- true if the connection has succeeded.
- Since:
- jcms-6.0.0
-
checkDataSourceConnection
public static java.lang.String checkDataSourceConnection(java.lang.String jcmsdb, java.lang.String dataSource)Check a DataSource connection.- Parameters:
jcmsdb- the database model (eg mysql, oracle, ...)dataSource- the Data Source- Returns:
- true if the connection has succeeded.
- Since:
- jcms-7.0.0
-
trackRss
public static void trackRss(java.lang.String channelSource, java.lang.String itemId)process rss tracking event- Parameters:
channelSource- the url of the channelitemId- the item ID
-
checkLDAPConnection
public static boolean checkLDAPConnection(java.lang.String hostname, java.lang.String port, java.lang.String isSSL, java.lang.String bindDN, java.lang.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
-
-