| Package | Description |
|---|---|
| org.wso2.carbon.appmgt.api | |
| org.wso2.carbon.appmgt.api.model |
| Modifier and Type | Method and Description |
|---|---|
void |
APIProvider.addAPIDefinitionContent(APIIdentifier identifier,
String documentationName,
String text)
This method used to update the WebApp definition content - Swagger
|
String |
APIConsumer.addApplication(Application application,
String userId)
Adds an application
|
void |
APIConsumer.addComment(APIIdentifier identifier,
String comment,
String user) |
void |
APIProvider.addDocumentation(APIIdentifier apiId,
Documentation documentation)
Adds Documentation to an WebApp
|
void |
APIProvider.addDocumentationContent(APIIdentifier identifier,
String documentationName,
String text)
This method used to save the documentation content
|
String |
APIManager.addIcon(String resourcePath,
Icon icon)
Associates the given icon image with the specified path.
|
void |
APIManager.addSubscriber(Subscriber subscriber)
Creates a new subscriber.
|
String |
APIConsumer.addSubscription(APIIdentifier identifier,
String subscriptionType,
String userId,
int applicationId,
String trustedIdp)
Add new Subscriber
|
void |
APIProvider.addTier(Tier tier) |
void |
APIProvider.addWebApp(WebApp api)
Adds a new WebApp to the Store
|
void |
APIProvider.changeAPIStatus(WebApp api,
APIStatus status,
String userId,
boolean updateGatewayConfig)
Change the lifecycle state of the specified WebApp
|
void |
APIManager.cleanup()
Cleans up any resources acquired by this APIManager instance.
|
void |
APIProvider.copyAllDocumentation(APIIdentifier apiId,
String toVersion)
Copies current Documentation into another version of the same WebApp.
|
void |
APIProvider.copyWebappDocumentations(WebApp api,
String newVersion)
Copy web applications documentations
|
boolean |
APIProvider.deleteApp(APIIdentifier identifier,
SSOProvider ssoProvider)
Delete an WebApp
|
boolean |
APIProvider.deleteEntitlementPolicyPartial(int policyPartialId,
String author)
Delete entitlement policy partial
|
void |
APIProvider.generateEntitlementPolicies(APIIdentifier apiIdentifier)
Generates entitlement policies for the given app.
|
APIKey |
APIManager.getAccessTokenData(String accessToken)
Return information related to a specific access token
|
List<WebApp> |
APIManager.getAllAPIs()
Returns a list of all existing APIs by all providers.
|
UserApplicationAPIUsage[] |
APIProvider.getAllAPIUsageByProvider(String providerId)
Returns usage details of all APIs published by a provider
|
List<Documentation> |
APIManager.getAllDocumentation(APIIdentifier apiId)
Returns a list of documentation attached to a particular WebApp
|
List<Documentation> |
APIManager.getAllDocumentation(APIIdentifier apiId,
String loggedUserName)
Returns a list of documentation attached to a particular WebApp
|
Map<String,Object> |
APIConsumer.getAllPaginatedPublishedAPIs(String tenantDomain,
int start,
int end)
Returns a paginated list of all published APIs.
|
Set<Provider> |
APIProvider.getAllProviders()
Returns a list of all #
org.wso2.carbon.apimgt.api.model.Provider available on the system. |
Set<WebApp> |
APIConsumer.getAllPublishedAPIs(String tenantDomain)
Returns a list of all published APIs.
|
Set<Tag> |
APIConsumer.getAllTags(String tenantDomain)
Get all tags of published APIs
|
List<WebApp> |
APIProvider.getAllWebApps()
Get the all web apps
|
List<WebApp> |
APIProvider.getAllWebApps(String tenantDomain)
Get the all web apps of tenant
|
WebApp |
APIManager.getAPI(APIIdentifier identifier)
Returns details of an WebApp
|
List<WebApp> |
APIProvider.getAPIsByProvider(String providerId)
Get a list of APIs published by the given provider.
|
long |
APIProvider.getAPISubscriptionCountByAPI(APIIdentifier identifier)
this method returns the Set
|
Set<WebApp> |
APIConsumer.getAPIsWithTag(String tag)
Returns a list of #
org.wso2.carbon.apimgt.api.model.API bearing the selected tag |
Set<String> |
APIManager.getAPIVersions(String providerName,
String apiName)
Returns a set of WebApp versions for the given provider and WebApp name
|
List<EntitlementPolicyPartial> |
APIProvider.getApplicationPolicyPartialList(int applicationId)
Get the list of policy partials of an given application
|
Application[] |
APIConsumer.getApplications(Subscriber subscriber)
Returns a list of applications for a given subscriber
|
List<WebApp> |
APIProvider.getAppsWithEndpoint(String tenantDomain) |
List<APIIdentifier> |
APIProvider.getAssociatedApps(int policyPartialId)
Get the apps which use the given policy partial
|
Comment[] |
APIConsumer.getComments(APIIdentifier identifier) |
List<String> |
APIProvider.getCustomInSequences()
Get the list of Custom InSequences.
|
List<String> |
APIProvider.getCustomOutSequences()
Get the list of Custom OutSequences.
|
Set<String> |
APIConsumer.getDeniedTiers()
Returns a list of Tiers denied for the current user
|
Documentation |
APIManager.getDocumentation(APIIdentifier apiId,
DocumentationType docType,
String docName)
Returns the specified document attached to the given WebApp
|
String |
APIManager.getDocumentationContent(APIIdentifier identifier,
String documentationName)
This method used to get the content of a documentation
|
Icon |
APIManager.getIcon(APIIdentifier identifier)
Retrieves the icon image associated with a particular WebApp as a stream.
|
List<LifeCycleEvent> |
APIProvider.getLifeCycleEvents(APIIdentifier apiId)
Returns the details of all the life-cycle changes done per WebApp.
|
Map<String,Object> |
APIConsumer.getPaginatedAPIsWithTag(String tag,
int start,
int end)
Returns a paginated list of #
org.wso2.carbon.apimgt.api.model.API bearing the selected tag |
List<EntitlementPolicyGroup> |
APIProvider.getPolicyGroupListByApplication(int appId)
Get Application wise policy group list
|
EntitlementPolicyPartial |
APIProvider.getPolicyPartial(int policyPartialId)
Get policyPartial content
|
Provider |
APIProvider.getProvider(String providerName)
get details of provider
|
Set<WebApp> |
APIConsumer.getPublishedAPIsByProvider(String providerId,
int limit)
/** Get a list of published APIs by the given provider.
|
Set<WebApp> |
APIConsumer.getPublishedAPIsByProvider(String providerId,
String loggedUser,
int limit)
Get a list of published APIs by the given provider.
|
Set<WebApp> |
APIConsumer.getRecentlyAddedAPIs(int limit,
String tenantDomain)
Get recently added APIs to the store
|
List<EntitlementPolicyPartial> |
APIProvider.getSharedPolicyPartialsList()
Get the list of shared policy partials
|
Set<SubscribedAPI> |
APIConsumer.getSubscribedAPIs(Subscriber subscriber)
Returns a set of SubscribedAPI purchased by the given Subscriber
|
Set<SubscribedAPI> |
APIConsumer.getSubscribedAPIs(Subscriber subscriber,
String applicationName)
Returns a set of SubscribedAPIs filtered by the given application name.
|
Map<String,List> |
APIProvider.getSubscribedAPPsByUsers(String fromDate,
String toDate)
This method returns the subscribed apps by users
|
Set<SubscribedAPI> |
APIConsumer.getSubscribedIdentifiers(Subscriber subscriber,
APIIdentifier identifier) |
Subscriber |
APIManager.getSubscriber(int subscriberId)
Returns the subscriber for the given subscriber id.
|
Subscriber |
APIConsumer.getSubscriber(String subscriberId) |
Set<WebApp> |
APIManager.getSubscriberAPIs(Subscriber subscriber)
Returns a set of APIs purchased by the given Subscriber
|
Set<Subscriber> |
APIProvider.getSubscribersOfAPI(APIIdentifier identifier)
Returns full list of Subscribers of an WebApp
|
Set<Subscriber> |
APIProvider.getSubscribersOfProvider(String providerId)
Get a list of all the consumers for all APIs
|
Subscription |
APIConsumer.getSubscription(APIIdentifier apiIdentifier,
int applicationId,
String subscriptionType)
Get the subscription for given search criteria.
|
Map<String,Long> |
APIProvider.getSubscriptionCountByAPPs(String provider,
String fromDate,
String toDate)
This method returns the subscription count of apps for given period.
|
Set |
APIProvider.getTierPermissions()
Get the list of Tier Permissions
|
Set<Tier> |
APIManager.getTiers()
Returns a list of pre-defined #
org.wso2.carbon.apimgt.api.model.Tier in the system. |
Set<Tier> |
APIManager.getTiers(String tenantDomain)
Returns a list of pre-defined #
org.wso2.carbon.apimgt.api.model.Tier in the system. |
Set<WebApp> |
APIConsumer.getTopRatedAPIs(int limit)
Returns top rated APIs
|
String |
APIProvider.getTrackingID(String uuid)
Retrieves TRACKING_CODE sequences from APM_APP Table
|
int |
APIConsumer.getUserRating(APIIdentifier apiId,
String user) |
int |
APIProvider.getWebAppId(String uuid)
Get web application id
|
boolean |
APIManager.isAPIAvailable(APIIdentifier identifier)
Checks the Availability of given APIIdentifier
|
boolean |
APIConsumer.isApplicationTokenExists(String accessToken)
Check whether an application access token is already persist in database.
|
boolean |
APIManager.isApplicationTokenExists(String accessToken)
Check whether an application access token is already persist in database.
|
boolean |
APIManager.isApplicationTokenRevoked(String accessToken)
Check whether an application access token is already revoked.
|
boolean |
APIManager.isContextExist(String context)
Checks whether the given WebApp context is already registered in the system
|
boolean |
APIConsumer.isSubscribed(APIIdentifier apiIdentifier,
String userId)
Returns true if a given user has subscribed to the WebApp
|
boolean |
APIConsumer.isTierDeneid(String tierName)
Check whether given Tier is denied for the user
|
int |
APIProvider.moveSubscriptions(APIIdentifier fromIdentifier,
APIIdentifier toIdentifier)
Moves subscriptions from one app (@{code fromApp}) to another app (
toApp) |
void |
APIConsumer.rateAPI(APIIdentifier apiId,
APIRating rating,
String user)
Rate a particular WebApp.
|
void |
APIConsumer.removeAPIRating(APIIdentifier apiId,
String user)
Remove an user rating of a particular WebApp.
|
void |
APIConsumer.removeAPISubscription(APIIdentifier identifier,
String userId,
String applicationName) |
void |
APIProvider.removeDocumentation(APIIdentifier apiId,
String docType,
String docName)
Removes a given documentation
|
void |
APIConsumer.removeSubscriber(APIIdentifier identifier,
String userId)
Remove a Subscriber
|
void |
APIConsumer.removeSubscription(APIIdentifier identifier,
String userId,
int applicationId)
Unsubscribe the specified user from the specified WebApp in the given application
|
void |
APIProvider.removeTier(Tier tier) |
int |
APIProvider.saveEntitlementPolicyPartial(String policyPartialName,
String policyPartial,
boolean isSharedPartial,
String policyAuthor,
String policyPartialDescription)
Save the entitlement policy partial
|
Map<Integer,APIKey> |
APIManager.searchAccessToken(String searchType,
String searchTerm,
String loggedInUser)
/**
Return information related to access token by a searchTerm and searchType *
|
Set<WebApp> |
APIConsumer.searchAPI(String searchTerm,
String searchType,
String tenantDomain) |
List<WebApp> |
APIProvider.searchAPIs(String searchTerm,
String searchType,
String providerId)
Search WebApp
|
Map<String,Object> |
APIConsumer.searchPaginatedAPIs(String searchTerm,
String searchType,
String tenantDomain,
int start,
int end) |
void |
APIProvider.updateAPI(WebApp api)
Updates an existing WebApp.
|
void |
APIConsumer.updateApplication(Application application)
Updates the details of the specified user application.
|
void |
APIProvider.updateDocumentation(APIIdentifier apiId,
Documentation documentation)
Updates a given documentation
|
void |
APIProvider.updateEntitlementPolicies(List<EntitlementPolicy> policies)
Updates given entitlement policies.
|
boolean |
APIProvider.updateEntitlementPolicyPartial(int policyPartialId,
String policyPartial,
String author,
boolean isShared,
String policyPartialDescription)
Update the policy partial
|
void |
APIManager.updateSubscriber(Subscriber subscriber)
Updates the details of the given subscriber.
|
void |
APIProvider.updateSubscription(APIIdentifier apiId,
String subStatus,
int appId)
Update the subscription status
|
void |
APIConsumer.updateSubscriptions(APIIdentifier identifier,
String userId,
int applicationId)
This method is to update the subscriber.
|
void |
APIProvider.updateTier(Tier tier) |
void |
APIProvider.updateTierPermissions(String tierName,
String permissionType,
String roles)
Update the Tier Permissions
|
void |
APIProvider.updateWebAppSynapse(WebApp api)
redeploy the synapse when webapp is being edited
|
EntitlementPolicyValidationResult |
APIProvider.validateEntitlementPolicyPartial(String policyPartial)
Validates the given entitlement policy partial.
|
| Constructor and Description |
|---|
APIIdentifier(String apiId) |
Copyright © 2016 WSO2. All rights reserved.