public class DataServiceAdmin
extends org.wso2.carbon.core.AbstractAdmin
| Constructor and Description |
|---|
DataServiceAdmin() |
| Modifier and Type | Method and Description |
|---|---|
String[] |
getAvailableDS()
Return data services
|
String[] |
getCarbonDataSourceNames() |
String[] |
getCarbonDataSourceNamesForTypes(String[] types) |
String |
getCarbonDataSourceType(String dsName) |
String |
getDataServiceContentAsString(String serviceId)
Returns data service content as a String.
|
protected String |
getDataServiceFileExtension() |
String[] |
getdbSchemaList(String datasourceId) |
String |
getDSService(String dataSourceId,
String dbName,
String[] schemas,
String[] tableNames,
boolean singleService,
String serviceName,
String serviceNamespace)
Return the generated service name
|
String[] |
getDSServiceList(String dataSourceId,
String dbName,
String[] schemas,
String[] tableNames,
boolean singleService,
String serviceNamespace)
Return the generated services name list
|
String[] |
getInputMappingNames(String sql) |
String[] |
getOutputColumnNames(String sql) |
PaginatedTableInfo |
getPaginatedSchemaInfo(int pageNumber,
String datasourceId) |
PaginatedTableInfo |
getPaginatedTableInfo(int pageNumber,
String datasourceId,
String dbName,
String[] schemas) |
String[] |
getTableList(String datasourceId,
String dbName,
String[] schemas) |
void |
saveDataService(String serviceName,
String serviceHierarchy,
String serviceContents)
Saves the data service in service repository.
|
String |
testGSpreadConnection(String user,
String password,
String visibility,
String documentURL,
String passwordAlias)
This will test the connection(retrieve CallFeed) of a Google spreadsheet
document.
|
String |
testJDBCConnection(String driverClass,
String jdbcURL,
String username,
String password,
String passwordAlias)
This will test a connection to a given database.
|
String |
validateJSONMapping(String jsonMapping) |
getAxisConfig, getConfigContext, getConfigSystemRegistry, getConfigUserRegistry, getGovernanceRegistry, getGovernanceSystemRegistry, getGovernanceUserRegistry, getHttpSession, getLocalRepo, getRegistry, getTenantDomain, getUsername, getUserRealm, setConfigurationContext, setPermissionUpdateTimestamppublic String getDataServiceContentAsString(String serviceId) throws org.apache.axis2.AxisFault
serviceId - The data service nameorg.apache.axis2.AxisFaultprotected String getDataServiceFileExtension()
public void saveDataService(String serviceName, String serviceHierarchy, String serviceContents) throws org.apache.axis2.AxisFault
serviceName - The name of the data service to be savedserviceHierarchy - The hierarchical path of the serviceserviceContents - The content of the serviceorg.apache.axis2.AxisFaultpublic String testJDBCConnection(String driverClass, String jdbcURL, String username, String password, String passwordAlias)
driverClass - Driver classjdbcURL - JDBC URLusername - User namepassword - Pass wordpublic String testGSpreadConnection(String user, String password, String visibility, String documentURL, String passwordAlias)
user - - user namepassword - - passwordvisibility - - Whether its private or publicdocumentURL - - Google spreadsheet URLpublic String[] getAvailableDS() throws org.apache.axis2.AxisFault
org.apache.axis2.AxisFault - AxisFaultpublic String[] getCarbonDataSourceNames()
public String[] getOutputColumnNames(String sql) throws Exception
Exceptionpublic String[] getInputMappingNames(String sql) throws Exception
Exceptionpublic String[] getdbSchemaList(String datasourceId) throws Exception
Exceptionpublic PaginatedTableInfo getPaginatedSchemaInfo(int pageNumber, String datasourceId) throws Exception
Exceptionpublic String[] getTableList(String datasourceId, String dbName, String[] schemas) throws org.apache.axis2.AxisFault
org.apache.axis2.AxisFaultpublic PaginatedTableInfo getPaginatedTableInfo(int pageNumber, String datasourceId, String dbName, String[] schemas) throws Exception
Exceptionpublic String[] getDSServiceList(String dataSourceId, String dbName, String[] schemas, String[] tableNames, boolean singleService, String serviceNamespace) throws Exception
Exceptionpublic String getDSService(String dataSourceId, String dbName, String[] schemas, String[] tableNames, boolean singleService, String serviceName, String serviceNamespace) throws Exception
ExceptionCopyright © 2015 WSO2. All rights reserved.