public class DataServiceAdmin
extends org.wso2.carbon.core.AbstractAdmin
| Constructor and Description |
|---|
DataServiceAdmin() |
| Modifier and Type | Method and Description |
|---|---|
String[] |
getAllRoles(String authProviderConfig)
Service method to get all the user roles for use in role based filtering when creating data services.
|
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) |
boolean |
isDSNameAvailable(String dataService)
This method check whether data service name is already available.
|
void |
saveDataService(String serviceName,
String serviceHierarchy,
String serviceContents)
Saves the data service in service repository.
|
String |
testGSpreadConnection(String clientId,
String clientSecret,
String refreshToken,
String visibility,
String documentURL)
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 clientId, String clientSecret, String refreshToken, String visibility, String documentURL)
clientId - from developer consoleclientSecret - from developer consolerefreshToken - generated refresh tokenvisibility - Whether its private or publicdocumentURL - Google spreadsheet URLpublic String[] getAvailableDS() throws org.apache.axis2.AxisFault
org.apache.axis2.AxisFault - AxisFaultpublic boolean isDSNameAvailable(String dataService) throws org.apache.axis2.AxisFault
dataService - Data Service Nameorg.apache.axis2.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
Exceptionpublic String[] getAllRoles(String authProviderConfig) throws org.apache.axis2.AxisFault
authProviderConfig - xml config of the authentication providerorg.apache.axis2.AxisFaultCopyright © 2017 WSO2. All rights reserved.