public class ApplicationImportExportManager extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
addApplicationKey(String username,
org.wso2.carbon.apimgt.api.model.Application application,
org.wso2.carbon.apimgt.api.model.APIKey apiKey)
Adds a key to a given Application
|
org.wso2.carbon.apimgt.api.model.Application |
getApplicationDetails(String appName,
String username)
Retrieve all the details of an Application by name for a given user.
|
List<org.wso2.carbon.apimgt.api.model.APIIdentifier> |
importSubscriptions(org.wso2.carbon.apimgt.api.model.Application appDetails,
String userId,
int appId,
Boolean update)
Import and add subscriptions of a particular application for the available APIs
|
boolean |
isOwnerAvailable(String userId)
Check whether a provided userId corresponds to a valid Application Owner
|
void |
validateOwner(String userId,
String groupId)
Check whether a provided userId corresponds to a valid consumer of the store and subscribe if valid
|
public org.wso2.carbon.apimgt.api.model.Application getApplicationDetails(String appName, String username) throws org.wso2.carbon.apimgt.api.APIManagementException
appName - name of the applicationApplication instanceorg.wso2.carbon.apimgt.api.APIManagementException - if an error occurs while retrieving Application detailspublic void validateOwner(String userId, String groupId) throws org.wso2.carbon.apimgt.api.APIManagementException
userId - username of the OwnergroupId - the groupId to which the target subscriber belongs toorg.wso2.carbon.apimgt.api.APIManagementException - if an error occurs while checking the validity of userpublic boolean isOwnerAvailable(String userId) throws org.wso2.carbon.apimgt.api.APIManagementException
userId - username of the Ownerorg.wso2.carbon.apimgt.api.APIManagementException - if an error occurs while checking the availability of userpublic List<org.wso2.carbon.apimgt.api.model.APIIdentifier> importSubscriptions(org.wso2.carbon.apimgt.api.model.Application appDetails, String userId, int appId, Boolean update) throws org.wso2.carbon.apimgt.api.APIManagementException, org.wso2.carbon.user.api.UserStoreException
appDetails - details of the imported applicationuserId - username of the subscriberappId - application Idorg.wso2.carbon.apimgt.api.APIManagementException - if an error occurs while importing and adding subscriptionsorg.wso2.carbon.user.api.UserStoreExceptionpublic void addApplicationKey(String username, org.wso2.carbon.apimgt.api.model.Application application, org.wso2.carbon.apimgt.api.model.APIKey apiKey) throws org.wso2.carbon.apimgt.api.APIManagementException
username - User for import applicationapplication - Application used to add keyapiKey - API key for adding to applicationorg.wso2.carbon.apimgt.api.APIManagementExceptionCopyright © 2019 WSO2. All rights reserved.