|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.wso2.carbon.core.AbstractAdmin
org.wso2.carbon.mediation.initializer.AbstractServiceBusAdmin
org.wso2.carbon.rest.api.service.RestApiAdmin
public class RestApiAdmin
| Field Summary |
|---|
| Fields inherited from class org.wso2.carbon.core.AbstractAdmin |
|---|
axisConfig, configurationContext |
| Constructor Summary | |
|---|---|
RestApiAdmin()
|
|
| Method Summary | |
|---|---|
boolean |
addApi(APIData apiData)
|
boolean |
addApiForTenant(String apiData,
String tenantDomain)
Set the tenant domain when a publisher publishes his API in MT mode. |
boolean |
addApiFromString(String apiData)
|
void |
deleteAllApi()
Delete All API in the synapse configuration |
boolean |
deleteApi(String apiName)
|
boolean |
deleteApiForTenant(String apiName,
String tenantDomain)
Set the tenant domain when a publisher deletes his API in MT mode. |
void |
deleteSelectedApi(String[] apiNames)
Delete Selected API |
APIData |
getApiByName(String apiName)
|
int |
getAPICount()
|
APIData |
getApiForTenant(String apiName,
String tenantDomain)
Set the tenant domain when a publisher tries to retrieve API his API in MT mode. |
String[] |
getApiNames()
|
APIData[] |
getAPIsForListing(int pageNumber,
int itemsPerPage)
|
String |
getApiSource(APIData apiData)
|
protected org.apache.axis2.engine.AxisConfiguration |
getAxisConfig()
Override the AbstarctAdmin.java's getAxisConfig() to create the CarbonContext from ThreadLoaclContext. |
protected org.apache.axis2.context.ConfigurationContext |
getConfigContext()
|
String |
getResourceSource(ResourceData resourceData)
|
String[] |
getSequences()
|
String |
getServerContext()
|
protected org.apache.synapse.config.SynapseConfiguration |
getSynapseConfiguration()
Override the parent's getSynapseconfig() method to retrieve the Synapse configuration from the relevant axis configuration |
boolean |
updateApi(String apiName,
APIData apiData)
|
boolean |
updateApiForTenant(String apiName,
String apiData,
String tenantDomain)
Set the tenant domain when a publisher updates his API in MT mode. |
boolean |
updateApiFromString(String apiName,
String apiData)
|
| Methods inherited from class org.wso2.carbon.mediation.initializer.AbstractServiceBusAdmin |
|---|
getLock, getMediationPersistenceManager, getServerConfigurationInformation, getServerContextInformation, getSynapseEnvironment, getSynapseEnvironment, lockSynapseConfiguration, unlockSynapseConfiguration |
| Methods inherited from class org.wso2.carbon.core.AbstractAdmin |
|---|
getConfigSystemRegistry, getConfigUserRegistry, getGovernanceRegistry, getGovernanceSystemRegistry, getGovernanceUserRegistry, getHttpSession, getLocalRepo, getRegistry, getTenantDomain, getUsername, getUserRealm, setConfigurationContext, setPermissionUpdateTimestamp |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RestApiAdmin()
| Method Detail |
|---|
public boolean addApi(APIData apiData)
throws APIException
APIException
public boolean addApiFromString(String apiData)
throws APIException
APIException
public boolean addApiForTenant(String apiData,
String tenantDomain)
throws APIException
apiData - tenantDomain -
APIException
public boolean updateApi(String apiName,
APIData apiData)
throws APIException
APIException
public boolean updateApiFromString(String apiName,
String apiData)
throws APIException
APIException
public boolean updateApiForTenant(String apiName,
String apiData,
String tenantDomain)
throws APIException
apiName - apiData -
APIException
public boolean deleteApi(String apiName)
throws APIException
APIException
public void deleteSelectedApi(String[] apiNames)
throws APIException
apiNames -
APIException
public void deleteAllApi()
throws APIException
APIException
public boolean deleteApiForTenant(String apiName,
String tenantDomain)
throws APIException
apiName - tenantDomain -
APIException
public APIData[] getAPIsForListing(int pageNumber,
int itemsPerPage)
public int getAPICount()
public String getServerContext()
throws APIException
APIExceptionpublic String[] getApiNames()
public APIData getApiByName(String apiName)
public APIData getApiForTenant(String apiName,
String tenantDomain)
throws APIException
apiName - tenantDomain -
APIExceptionpublic String[] getSequences()
public String getApiSource(APIData apiData)
public String getResourceSource(ResourceData resourceData)
protected org.apache.synapse.config.SynapseConfiguration getSynapseConfiguration()
getSynapseConfiguration in class org.wso2.carbon.mediation.initializer.AbstractServiceBusAdminprotected org.apache.axis2.engine.AxisConfiguration getAxisConfig()
getAxisConfig in class org.wso2.carbon.core.AbstractAdminprotected org.apache.axis2.context.ConfigurationContext getConfigContext()
getConfigContext in class org.wso2.carbon.core.AbstractAdmin
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||